Subtract two dates and have result show up in years, months and days

Marq

Well-known Member
Joined
Dec 13, 2004
Messages
914
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
Using Excel 2010

I want to take two dates and subtract them to give the difference

for example (cell A1) 8-1-2011 MINUS (cell B1) 4-1-11 = (cell C1)10 years 4 months

the formula being in cell C1

Can someple please show me how to do that?
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
oops - not what I wanted - try this
Excel Workbook
ABC
18/1/20114/1/200110 years 4 months
Sheet1
Excel 2003
Cell Formulas
RangeFormula
C1=DATEDIF(B1,A1,"y") & " years " & MONTH(A1)-MONTH(B1) & " months"
 
Last edited:
Upvote 0
not working for me yet.....im getting the #NUM! error result....im copying and pasting the formaul you posted.

here are my actual cells and dates

cell B3 has 8-1-2000

cell O3 has 10-25-11

In cell L3 is where the formula goes. I guess breaking the difference into years, months , then days would actualy be more useful for what im doing.

so in L3 the formula would be O3-B3....result would read as 11 years 2 months 24 days
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,463
Members
452,915
Latest member
hannnahheileen

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