Age (or Duration) in Weeks and Months

Excel Formulas › Date & Time

All versionsDATEDIF

Sometimes you need an age in weeks or total months, not years — a baby’s age, a subscription length, a project span. Simple division and DATEDIF give each unit.


Quick formula: weeks and total months between B1 and today:
=(TODAY() - B1) / 7 // weeks =DATEDIF(B1, TODAY(), "m") // total months
Divide the day difference by 7 for weeks; use DATEDIF with "m" for whole months elapsed.

Functions used (tap for the full reference guide):

The example

A start date measured in weeks and months.

AB
1UnitValue
2Weeks34.3
3Total months7

The formula

Weeks by division, months by DATEDIF:

=(TODAY()-B1)/7 // weeks (decimal) =DATEDIF(B1, TODAY(), "m") // whole months

How it works

Pick the unit that fits:

  1. Weeks: (end − start) / 7 — the day gap divided by 7. Wrap with INT or ROUNDDOWN for whole weeks.
  2. Total months: DATEDIF(start, end, "m") counts complete months.
  3. Years as a decimal: YEARFRAC(start, end) gives e.g. 7.5 years.
  4. Combine units for a label: weeks for infants, months for tenure, years for anniversaries.

Whole weeks plus leftover days: =INT((end-start)/7)"w "&MOD(end-start,7)&"d". For a precise years-months-days breakdown, see the exact-age recipe with DATEDIF’s y/ym/md codes.

Try it: interactive demo

Live demo

Pick a start date.

Weeks · Months

Variations

Whole weeks

Round down:

=INT((TODAY()-B1)/7)

Years (decimal)

YEARFRAC:

=YEARFRAC(B1, TODAY())

Weeks + days

Combined label:

=INT(d/7)&"w "&MOD(d,7)&"d"

Pitfalls & errors

Weeks are decimal. /7 gives a fraction; use INT/ROUNDDOWN for whole weeks if needed.

DATEDIF "m" is whole months. It ignores leftover days — pair with "md" for the remainder.

YEARFRAC basis. The default day-count basis affects the decimal slightly; set the basis argument for financial precision.

Practice workbook

📊
Download the free Age (or Duration) in Weeks and Months practice workbook
A weeks/months age calculator with whole-weeks, YEARFRAC, and weeks+days variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I calculate age in weeks in Excel?
Divide the day difference by 7: =(TODAY()-birth)/7. Use INT for whole weeks.
How do I get total months between two dates?
Use =DATEDIF(start, end, "m") for complete months elapsed.
How do I get age as a decimal number of years?
Use =YEARFRAC(start, end), which returns e.g. 7.5 years.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Exact age (y/m/d) · Calculate age · Months between dates

Function references: DATEDIF · YEARFRAC