Smart Systems for Home

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

Excel Formula for Tenure: Step-by-Step Guide

· 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 calculate tenure in Excel, subtract the start date from today's date and convert the result to years: =YEARFRAC(start_date, TODAY()) gives the exact fraction of a year, while =DATEDIF(start_date, TODAY(), "Y") returns completed whole years. Both formulas work in any modern version of Excel, including Microsoft 365, Excel 2019, 2021, and Excel for the web. The only thing you need is a column of start dates formatted as real Excel dates, not text.

Tenure is simply how long someone or something has been active—an employee's time with a company, a customer's subscription length, or a piece of equipment's service life. Excel handles the math cleanly once the dates are stored correctly. The guide below walks through the formulas, shows how to combine years and months into a readable label, and covers the errors that trip people up most often.

What You'll Need

  • Excel 2016 or later, Microsoft 365, or Excel for the web (the functions used here are available in all of them).
  • A column of start dates entered as real dates—for example, 15/03/2019 or 3/15/2019 depending on your regional settings. If Excel left-aligns the entry, it is probably text, not a date.
  • An optional end date column if you want tenure as of a specific date rather than today.

Step-by-Step

  1. Set up your data. Put start dates in column A, starting at A2. If you have an end date (such as a termination date or a reporting cutoff), put it in column B. Leave row 1 for headers like "Start Date" and "End Date."
  2. Check that the dates are real dates. Click a date cell and look at the formula bar. If it shows something like 43539, Excel recognizes it as a date. If it shows the text you typed, the cell is text and the formulas below will fail. To convert text dates, use Data > Text to Columns and finish the wizard with the Date option selected, or re-enter them in a format Excel accepts.
  3. Enter the basic whole-years formula. In C2, type =DATEDIF(A2, TODAY(), "Y") and press Enter. This returns completed years only—someone who started 11 months ago shows 0. DATEDIF is a legacy function, so Excel will not suggest it as you type, but it works in every current version.
  4. Or use YEARFRAC for a decimal result. In C2, type =YEARFRAC(A2, TODAY()). This returns a number like 4.62, which is useful when you want to sort by exact tenure or feed the value into another calculation. Wrap it in ROUND if you want a fixed number of decimals: =ROUND(YEARFRAC(A2, TODAY()), 1).
  5. Use a fixed end date when needed. Replace TODAY() with a cell reference, for example =DATEDIF(A2, B2, "Y"). This is the right approach for historical reporting, because TODAY() recalculates every time the file opens and will change your numbers tomorrow.
  6. Build a years-and-months label. To show tenure as "4 years, 7 months," use =DATEDIF(A2, TODAY(), "Y") & " years, " & DATEDIF(A2, TODAY(), "YM") & " months". The "YM" argument returns the leftover months after whole years are counted, so the two parts never overlap.
  7. Add days if you need precision. Extend the same pattern with "MD" for remaining days: =DATEDIF(A2, TODAY(), "Y") & "y " & DATEDIF(A2, TODAY(), "YM") & "m " & DATEDIF(A2, TODAY(), "MD") & "d". This is handy for probation tracking or warranty windows.
  8. Copy the formula down. Drag the fill handle from C2 to the last row. Relative references adjust automatically, so each row calculates its own tenure.
  9. Format the result. For YEARFRAC output, set the cell to Number with one or two decimals. For the text labels, no formatting is needed—they are already readable strings.
  10. Sort or filter by tenure. Select the whole table, then use Data > Sort and choose the tenure column. Numeric results from YEARFRAC sort correctly; text labels like "4 years, 7 months" sort alphabetically, so keep a numeric helper column if you plan to sort often.

Common Mistakes

  • Dates stored as text. This is the single most common cause of #VALUE! errors. If a date is left-aligned by default, Excel is treating it as text. Fix it with Text to Columns or by re-entering it.
  • Using TODAY() in historical reports. TODAY() is volatile—it updates daily. For a fixed reporting period, always point to an end-date cell instead.
  • Expecting DATEDIF to appear in autocomplete. It will not. Type the full function name manually; it is still supported.
  • Reversing the arguments. DATEDIF requires the start date first and the end date second. If the start date is later than the end date, you get #NUM!.
  • Forgetting that DATEDIF counts completed units. A person with 11 months and 29 days of service shows 0 years, not 1. Use YEARFRAC if you need a rounded or decimal figure.
  • Mixing date systems. If you import data from another system, dates may arrive in a different format. Check a few cells against the formula bar before trusting the output.

Tips

  • Name your date column (Formulas > Define Name) so formulas read like =YEARFRAC(StartDate, TODAY())—easier to audit and less error-prone when copying across sheets.
  • Use conditional formatting to flag tenures over a threshold, such as highlighting employees past a five-year milestone.
  • For anniversary-based calculations, combine DATEDIF with EDATE to find the next anniversary date: =EDATE(A2, 12*DATEDIF(A2, TODAY(), "Y")+12).
  • If you need tenure in months only, use =DATEDIF(A2, TODAY(), "M"). This counts total completed months and is useful for billing cycles.
  • Keep a static "as of" date in a single cell and reference it everywhere, so a whole report can be refreshed by changing one value.

Troubleshooting

#VALUE! error. One of the arguments is not a valid date. Check both the start date cell and the end date or TODAY() reference. If the start date is text, convert it as described in Step 2.

#NUM! error. The start date is later than the end date. Swap the arguments or correct the date entry.

Result shows 0 when you expect years. DATEDIF counts only completed years. If the person started less than 12 months ago, 0 is correct. Use YEARFRAC or the years-and-months label instead.

Result is a strange five-digit number. The cell is formatted as a date rather than a number. Select it and apply Number format. This happens most often with YEARFRAC output.

Formula returns #NAME?. DATEDIF is misspelled or the function name was typed with a space. Re-enter it exactly as DATEDIF.

Tenure changes every day. That is TODAY() doing its job. If you need a fixed snapshot, replace TODAY() with a date cell.

Frequently Asked Questions

What is the simplest Excel formula for tenure in years?

Use =DATEDIF(A2, TODAY(), "Y") for completed years, or =YEARFRAC(A2, TODAY()) for a decimal value. Both are single-line formulas and work in all current Excel versions.

Why doesn't DATEDIF show up in Excel's function list?

DATEDIF is a legacy function kept for compatibility with older spreadsheets. It is not listed in the function wizard or autocomplete, but it still calculates correctly when typed manually.

How do I calculate tenure in months instead of years?

Change the third argument to "M": =DATEDIF(A2, TODAY(), "M"). This returns total completed months since the start date.

Can I calculate tenure between two specific dates rather than today?

Yes. Replace TODAY() with a cell containing the end date, for example =DATEDIF(A2, B2, "Y"). This keeps the result fixed even when the file is reopened later.

How do I show tenure as "X years and Y months"?

Combine two DATEDIF calls with text: =DATEDIF(A2, TODAY(), "Y") & " years, " & DATEDIF(A2, TODAY(), "YM") & " months". The "YM" argument returns only the leftover months after whole years.

Why does my tenure formula return #VALUE!?

Almost always because the start date is stored as text rather than a real date. Check the formula bar—if it shows the typed text instead of a date serial number, convert the column using Data > Text to Columns with the Date option.