Calculate Combined Service History Across Multiple Periods in Excel
Question details
Calculate the total combined service duration (tenure) for an employee who has left and subsequently returned to the company across multiple distinct employment periods.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking and combining employee tenure where the employee has multiple periods of service, requiring an exact summation of total days instead of individual duration reports.
- Observed behavior
- Using separate duration formulas calculates each period individually in years and months but fails to provide a single, combined total duration.
Ensure that all your start date and end date cells are formatted as valid Dates in Excel rather than plain text, as text entries will cause calculation errors.
Calculate Total Combined Days First
The most accurate method is to calculate the total number of days across all service periods and then format them into a readable duration.
By subtracting the start date from the end date for each period, you get the total days. If the departure or final date is blank, you can use the TODAY() function to account for ongoing service.
Organize your data with specific columns. For example: C3 for Original Start Date, D3 for Departure Date, E3 for Return Date, and F3 for Final/Current Date.
Select the cell where you want the total days to appear and enter the formula: =IF(C3="","",(IF(D3="",TODAY(),D3)-C3)+IF(E3="",0,IF(F3="",TODAY(),F3)-E3))
Press Enter to display the total combined days of service across both employment periods.
Use mathematical formulas to convert this raw number of days into years, months, and days based on your specific company reporting standards, such as dividing the total by 365.25 for years.

Calculate Individual Service Periods Using DATEDIF
If you need to view each employment period separately to review historical tenure breakdowns before combining them, use the DATEDIF function.
Calculate Employee Service History Easily in WPS Spreadsheet
WPS Spreadsheet fully supports advanced date formulas, including IF, TODAY, and DATEDIF. You can effortlessly manage employee records, sum combined tenures, and format dates with high precision using familiar spreadsheet features.
- 1. Open WPS Spreadsheet: Launch WPS Office and open your employee records workbook.
- 2. Apply the tenure formula: Select your target cell and input the combined days formula utilizing the IF and TODAY functions.
- 3. Calculate results instantly: Press Enter to execute the formula and instantly view the combined service duration for your personnel.

Frequently Asked Questions
Why is my service history formula returning a #VALUE! error?
This typically occurs when one or more of your date cells contain text instead of valid Excel date formats. Select your date cells, right-click, choose 'Format Cells', and ensure they are assigned to the 'Date' category.
How do I convert the total days into a 'Years, Months, Days' format?
Since months have varying lengths, converting exact combined dates can be complex. A common approximation is to divide the total days by 365.25 to find the years, and use the INT and MOD functions to calculate the remaining months and days.
Will the TODAY() function update my data automatically?
Yes, the TODAY() function updates dynamically. It will automatically recalculate to the current date based on your computer's system clock every time you open or refresh the workbook.




