Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Formula: How to Calculate How Many Days Old

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To find out how many days old someone or something is in Excel, subtract the birth date (or start date) from today's date using =TODAY()-A2, then format the result cell as General or Number. If you want the answer to lock in and stop changing tomorrow, subtract the two dates directly and skip TODAY, or paste the result as a value. That single subtraction is the whole trick: Excel stores dates as sequential serial numbers, so taking one away from another gives you a plain count of days between them.

A quick note before you start: the exact wording of ribbons, menus and dialog boxes can differ slightly depending on your Excel version, platform (Windows, Mac, web) and region, but the functions and date logic below are the same everywhere.

What You'll Need

  • A version of Excel that supports the TODAY function (desktop Excel for Windows or Mac, or Excel for the web).
  • A cell containing a valid date of birth or start date. This must be a real Excel date, not text that just looks like a date.
  • A spare cell for the result, and ideally a heading row so you can tell the columns apart.
  • Optional: the DATEDIF function (built into every modern Excel) if you want whole years and months as well.

Step-by-Step

  1. Enter the birth date in a proper date format. Click a cell such as A2 and type the date in a form your region recognises, for example 3/14/1990 or 14/03/1990. Press Enter. If Excel right-aligns the value, it has recognised it as a date. If it sits on the left, Excel treated it as text and the formula will fail.
  2. Add a label in the next column. In B1 type something like Days Old so you know what the column means when you come back to the sheet later.
  3. Click the result cell. Put the cursor in B2, next to the birth date.
  4. Write the subtraction formula. Type =TODAY()-A2 and press Enter. TODAY returns the current date, Excel subtracts the older date, and the answer is the number of days elapsed. This is the shortest working version and works for any date in the past.
  5. Fix the formatting if the answer looks like a date. If B2 displays something like 1/15/1900 instead of a number, the cell picked up a date format. Select the cell, open the formatting dropdown on the Home tab, and choose General or Number. You can also press Ctrl+1 (Cmd+1 on Mac) and pick Number in the Format Cells dialog. The underlying value was always correct; only the display was wrong.
  6. Copy the formula down. Drag the small fill handle at the bottom-right corner of B2 down the column, or double-click it if there is data beside it. Use a relative reference so each row points at its own A column.
  7. Round the result if you need whole days. TODAY updates at midnight, so if A2 contains a date and time you may get a decimal such as 12345.5. Wrap the formula in INT: =INT(TODAY()-A2). Use =ROUND(TODAY()-A2,0) if you prefer standard rounding.
  8. Make the answer permanent when you need to. Because TODAY is volatile, the result changes daily and the workbook recalculates on open. To freeze a snapshot, select the result cells, copy, then use Paste Special and choose Values. The numbers stay put but the live formula is gone.
  9. Optional: show years, months and days together. Use DATEDIF for a fuller age: =DATEDIF(A2,TODAY(),"Y") for whole years, "M" for whole months, or "D" for days. You can concatenate them into one label, for example =DATEDIF(A2,TODAY(),"Y")&"y "&DATEDIF(A2,TODAY(),"YM")&"m "&DATEDIF(A2,TODAY(),"MD")&"d".
  10. Save the workbook. Use Ctrl+S (Cmd+S on Mac). If you plan to open the file in another spreadsheet app, check that the format you save in supports the functions you used.

Common Mistakes

  • The date is stored as text. Imported or typed dates, especially from CSV files, often arrive as text and give a #VALUE! error. Use Data > Text to Columns on the column and set it to a date format, or retype the date in your regional format.
  • The result is formatted as a date. A serial number like 12500 looks like a date if the cell inherits a date format. Switch the format to General or Number as described above.
  • Reversing the subtraction. =A2-TODAY() gives a negative number for a past date. The later date always goes first if you want a positive day count.
  • Forgetting the TODAY parentheses. =TODAY-A2 fails because TODAY needs the empty brackets to run.
  • Expecting an exact answer across time zones or devices. TODAY uses your device's clock, so a machine set to another time zone or region may show a day's difference.
  • Counting the start day twice. Subtraction measures elapsed full days. If you need to include both the start date and today, add 1: =TODAY()-A2+1.

Tips

  • Use =TODAY()-A2+1 when you want an inclusive count, such as day numbers in a countdown.
  • For future dates, the same subtraction still works but returns a negative number. Flip it to =A2-TODAY() to count days remaining.
  • Reference a fixed date cell (like a project start) with an absolute reference such as $A$2 so the formula keeps pointing at the same cell when copied.
  • Name the column clearly and keep one date per row; mixing text notes into a date cell is the most common cause of later errors.
  • If you are calculating for a one-off answer, type the two dates into two cells and subtract them. It avoids the recalculation trap entirely.

Troubleshooting

If you see #VALUE!, the date cell is text. Check the alignment (left-aligned means text) and convert the column to real dates.

If you see a large number like 45000 instead of a date-like result, that is exactly right: the number is the day count. Excel is not displaying it as a date unless you applied that format.

If the number never changes between days, the cell is a pasted value, not a formula. Rewrite the formula or accept it as a snapshot.

If the whole workbook shows the wrong today, check your system clock and date settings, then press F9 to recalculate. If TODAY still looks stale, close and reopen the file.

If the result changes when you open it on another computer, the other machine's clock or time zone differs; TODAY is evaluated at that machine's current date.

Frequently Asked Questions

Can I calculate age in days without TODAY?

Yes. Subtract the two date cells directly, for example =B2-A2. This gives a fixed day count that will never change.

Why does my formula return a date instead of a number?

The cell has a date format applied. Change it to General or Number and the day count shows correctly.

How do I get whole days only?

Wrap the formula in INT, for example =INT(TODAY()-A2), to drop any decimal time fraction.

Does the formula work for dates in the future?

Yes, but it returns a negative value. Swap the order so the future date comes first.

Can I count days between two fixed dates instead of today?

Yes. Use =end_date-start_date with two date cells. This is the most reliable approach when you do not want a rolling result.

Why does DATEDIF sometimes give an error?

DATEDIF needs a start date earlier than the end date, and it is a compatibility function that is not offered in the autocomplete list. Make sure your syntax is exact: =DATEDIF(start,end,"unit").