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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,215,347
Messages
6,124,421
Members
449,157
Latest member
mytux

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