Adding two DatedIF statements

techgirl

Board Regular
Joined
Sep 16, 2002
Messages
178
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have already calculated one field (J1) correctly and works Total Years of Employee: =DATEDIF(G1,H1,"y")&" years "&DATEDIF(G1,H1,"ym")&" months " &DATEDIF(G1,H1,"md")&" days ". 35 years, 11 months, 27 days.
The second field (K1) is correct and working...=DATEDIF(G6,H6,"y")&" years "&DATEDIF(G6,H6,"ym")&" months " &DATEDIF(G6,H6,"md")&" days ". 59 Years, 5 months, 7 days.

I want to create a third field (L1) and add both of these together to determine a TOTAL number of years between them. I get an "#VALUE error. is this possible ??
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Excel Formula:
=DATEDIF(G1+G6,H1+H6,"y")&" years "&DATEDIF(G1+G6,H1+H6,"ym")&" months " &DATEDIF(G1+G6,H1+H6,"md")&" days "
 
Upvote 0

Forum statistics

Threads
1,214,629
Messages
6,120,630
Members
448,973
Latest member
ChristineC

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