years and months between two dates

Sheepskin_Coat

New Member
Joined
Aug 16, 2007
Messages
24
i have tried to do a datedif formula in excel 2007, all i get in the cell is #num error

What i am trying to do is i have a date i.e. 01/06/2001 in cell a1, and a date in cell b1 18/08/2010, what i want to do is get how many months and years between two dates, is there any way of doing this

Many Thanks
 
Last edited:

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Assuming that Date #1 is in A1 and Date #2 is in A2

=DATEDIF(A1,A2,"Y")&" Years, "&DATEDIF(A1,A2,"YM")&" Months"
 
Upvote 0
The first date needs to be earlier than the second, otherwise you get #NUM! error, try reversing the order of the dates....
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,696
Members
452,938
Latest member
babeneker

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