How to Calculate Age in Excel

beginnerProductivity Apps2 minSystems & Environment
Independently tested and verified on Sep 27, 2024. Commands reproduced exactly as run.

Prerequisites

    This tutorial takes about 2 minutes to complete.

    Before you start

    This tutorial shows how to calculate someone's age in years from a birthdate stored in Column A of an Excel spreadsheet. You'll use Excel's built-in DATEDIF function — it works on any version of Excel that supports date functions.

    No installation is needed if you already have Excel (desktop or web). If you don't, the free Excel for the Web version works just as well for this tutorial.

    Step 1: Format your dates

    Before Excel can calculate anything with your dates, it needs to know they're actually dates — not plain text. If you typed them in manually, Excel often treats them as text by default.

    Highlight Column A (click the A header at the top of the sheet), then right-click and choose Format Cells. In the dialog that opens, select the Date category on the left, then pick the date format that matches how your dates are currently written (e.g., 14/03/2025 or March 14, 2025). Click OK.

    Excel Format Cells dialog open to the Date tab

    Once you click OK, Excel will re-interpret your column as real dates. You can verify this by checking that the dates shift right-aligned (text stays left-aligned in Excel).

    Step 2: Enter the DATEDIF formula

    Now let's calculate the age. Click on cell B1 and type a heading like Age so you know what each column shows. Then click on cell B2 — this is where the first calculation will go.

    In B2, enter this formula exactly:

    =DATEDIF(A2,TODAY(),"Y")
    

    Here's what each part does:

    • A2 — the birthdate you want to calculate from (the cell in Column A on the same row)
    • TODAY() — Excel's built-in function that returns today's date, so your result stays current without manual updates
    • "Y" — tells DATEDIF to return the result in full years

    Press Enter. The cell will display a number — that's the age in completed years as of today.

    Excel cell B2 displaying calculated age value 2 from DATEDIF formula

    Step 3: Fill down to all rows

    Your formula only works for one row right now. To apply it to every record in your list, click on cell B2 (the one with the formula), then look at the bottom-right corner of the selected cell — you'll see a small black plus sign (called the fill handle).

    Double-click that fill handle, and Excel will automatically copy the formula down to match the last row that has data in Column A. Every row now shows the calculated age.

    Excel fill handle (plus sign) at corner of cell B2 with calculated ages filled down column B

    That's it — your entire list now has ages calculated from birthdates, and they'll update automatically every day because TODAY() always returns the current date.

    FAQ

    This almost always means Excel doesn't recognize your dates as real date values. Go back to Step 1 and format the column as Date (right-click → Format Cells → Date). Once Excel sees them as dates, DATEDIF will work correctly.
    Yes — change the third argument from "Y" to "M" for full months, or "D" for total days. You can also combine multiple DATEDIF calls to get a precise "X years, Y months, Z days" result.
    Yes — DATEDIF works identically in Excel for the Web, Excel Mobile, and all desktop versions of Excel going back many years. The function has been part of Excel since version 5.0 (1993).

    Never miss an issue

    One email a week on local LLMs, DIY AI hardware, and the tools that power them. No spam — unsubscribe anytime.

    Subscribe free

    Products used in this tutorial

    AMD Ryzen 9 3900X
    cpu

    AMD Ryzen 9 3900X

    12-core, 24-thread AMD Ryzen 9 3900X desktop processor (Zen 2, AM4) with 4.6 GHz max boost for high-end content creation and multitasking.

    3 retailers
    Asus TUF Gaming X570
    motherboard

    Asus TUF Gaming X570

    AMD X570 ATX motherboard for AM4 with PCIe 4.0, DDR4 memory support and USB 3.2 Gen 2 ports - a durable foundation for Ryzen 3000-series desktop builds

    3 retailers
    TEAMGROUP T-Force Vulcan Z 64GB DDR4
    memory

    TEAMGROUP T-Force Vulcan Z 64GB DDR4

    TEAMGROUP T-Force Vulcan Z 64GB DDR4 UDIMM kit - reliable overclocking memory with Intel XMP 2.0 profiles for AM4 desktop builds and Ryzen 3000-series

    3 retailers
    Windows 11 Pro
    operating-system

    Windows 11 Pro

    Microsoft Windows 11 Pro - the professional edition of Windows 11 with advanced security, remote desktop, and enterprise management features.

    4 retailers
    Kingston A2000 1TB NVMe SSD
    storage

    Kingston A2000 1TB NVMe SSD

    Kingston A2000 1TB PCIe 3.0 x4 NVMe M.2 SSD - reliable budget-friendly storage for everyday computing on desktops and laptops with fast sequential performance

    2 retailers
    WDC WD10EZEX-08WN4A0 1TB SATA HDD
    storage

    WDC WD10EZEX-08WN4A0 1TB SATA HDD

    Western Digital Blue WD10EZEX 1TB 3.5" desktop hard drive with SATA III interface - reliable high-capacity storage for everyday computing needs.

    2 retailers
    HGST HTS721010A9E620 1TB SATA HDD
    storage

    HGST HTS721010A9E620 1TB SATA HDD

    HGST Travelstar Z5K1000 1TB 2.5" laptop hard drive - reliable energy-efficient storage for desktops and workstations with SATA III interface

    2 retailers
    fanxiang S880R 1TB PCIe 4.0 NVMe SSD
    storage

    fanxiang S880R 1TB PCIe 4.0 NVMe SSD

    fanxiang S880R 1TB PCIe 4.0 NVMe M.2 SSD with built-in heatsink — up to 7300MB/s reads and 3D TLC NAND for high-performance desktop and console storage.

    2 retailers