Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

 How to calculate the length of service from hire date in Excel?

If you have a range of data including employee names and their date of joining your company in a worksheet, now, you may want to calculate their length of service, it means to get how many years and months an employee has worked for your company. This article, I will talk about quick method to solving this job for you.

Calculate the length of service from the hire date with Formula


Add a number of years / months / days / weeks to date:

Kutools for Excel’s Formula Helper utility contains some commonly-used formulas, such as add years to date, calculate age based on birthday and so on. With these usual formulas, you can quickly get the result that you want without remembering any formulas.

doc add days months to date 1

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


arrow blue right bubble Calculate the length of service from the hire date with Formula


For example, I have the following data of names and their hire date and end date, with a formula, you can finish it quickly.

doc calculate length service 1

Please enter this formula: =DATEDIF(B2,C2,"y") & " years " & DATEDIF(B2,C2,"ym") & " months " into a blank cell beside your data range, E2, for instance, and then drag the fill handle down to the cells that you want to apply this formula, and all years and months which employees have worked in a company are calculated at once, see screenshot:

doc calculate length service 2

Note: In the above formula, B2 is the start date cell and C2 is the end date cell, you can change them to your need.


Related articles:

How to calculate retirement date from date of birth in Excel?

How to calculate days hours and minutes between two dates in Excel?

How to count / calculate quarters between two dates in Excel?


Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Eve · 1 years ago
    Ive tried this formula and it comes up with #value!


    Please help
    • To post as a guest, your comment is unpublished.
      skyyang · 11 months ago
      Hello, Eve,
      The above formula works well in my worksheet, which Excel version do you use?
      Or you can insert your error screenshot here.
      Thank you!
  • To post as a guest, your comment is unpublished.
    AB · 1 years ago
    How can I calculate years of service from the date or hire to today?
    • To post as a guest, your comment is unpublished.
      skyyang · 1 years ago
      Hello, AB,
      To calculate years of service from the hire date to today, you just need to apply the following formula: (Note: A2 is the hire date, change it to your need)
      =DATEDIF(A2,TODAY(),"y") & " years " & DATEDIF(A2,TODAY(),"ym") & " months "

      Please try it, hope it can help you!