Calculate Length of Experience

aasher1

New Member
Joined
Jan 25, 2017
Messages
9
Start Date
End Date
Experience
Job 1
04/04/89
09/30/97
8 years, 5 months, 26 days
Job 2
06/16/97
06/27/97
11 days
Job 3
07/07/97
06/24/16
18 years, 11 months, 17 days
Job 5
06/27/16
01/03/19
2 years, 6 months, 6 days
Total

<tbody>
</tbody>

I would like to be able to calculate the total number of years, months, and days experience a person has from individual jobs. I have the DATEDIF function to calculate the time elapsed between dates for each job, but can't figure out how to get them to add together.

Thank you.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
You could figure out the total duration using

=(C2-B2)+(C3-B3)+(C4-B4)+(C5-B5)

Then use your DATEDIF formula using 0 as the start date, and that amount as the end date.
 
Upvote 0
That's a pretty strange way to show experience.

Q: Which is longer, 1 month and 1 day, or 30 days?

A: It depends.

Why not just ...

A​
B​
C​
D​
E​
1​
Job
Start Date
End Date
Experience [yrs]
2​
Job 1
4/4/1989​
9/30/1997​
8.49​
D2: =(C2-B2)/365.25
3​
Job 2
6/16/1997​
6/27/1997​
0.03​
4​
Job 3
7/7/1997​
6/24/2016​
18.97​
5​
Job 5
6/27/2016​
1/3/2019​
2.52​
6​
Total
30.0​
D6: =SUM(D2:D5)
 
Upvote 0
Thank you so much Eric W. It's always easier then what I try do.This is what I did.

=IF(DATEDIF(0,(C2-B2)+(C3-B3)+(C4-B4)+(C5-B5),"y")=0,"",DATEDIF(0,(C2-B2)+(C3-B3)+(C4-B4)+(C5-B5),"y")&"years,")&IF(DATEDIF(0,(C2-B2)+(C3-B3)+(C4-B4)+(C5-B5),"ym")=0,"",DATEDIF(0,(C2-B2)+(C3-B3)+(C4-B4)+(C5-B5),"ym")&"months, ")& IF(DATEDIF(0,(C2-B2)+(C3-B3)+(C4-B4)+(C5-B5),"md")=0,"",DATEDIF(0,(C2-B2)+(C3-B3)+(C4-B4)+(C5-B5),"md")&"days")


I thought it funny though, if using last date of 01/02/19 it gives me “29 years,11 months, 31 days” instead of just 30 years. Then using the last date of 01/03/19 it gives me “30 years, 1 days”
 
Last edited:
Upvote 0
First, here's a slightly shorter version of the formula:

=SUMPRODUCT(C2:C5-B2:B5)

Next, I've seen similar DATEDIF formulas to get the years/months/days. I'm not going to worry about why it generates "31 days" as part of it. After all, after 30 years, does it really matter if it's plus or minus a day or two? I think shg's approach has a lot of validity to it.

In any case, I'm glad we could help.
 
Upvote 0

Forum statistics

Threads
1,214,588
Messages
6,120,409
Members
448,959
Latest member
camelliaCase

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top