Diffrence between 2 dates in months

djamy

New Member
Joined
Jun 20, 2011
Messages
8
Hello
How can I get with Excel 2010 the diffrence between 2 dates in months. The result must be for example : 3.4 months
Thank you for your help !
Djamy
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
In order to do fractional months, you will need to make some sort of assumption as to the number of days in each month, such as:
- 30 days
- 365/30 days
- 365.25/30 days

Then, as long as the dates are entered as dates in Excel, just do a formula like:
Code:
[B]=(Date2 - Date1)/30[/B]
or
Code:
[B]=(Date2 - Date1)/(365/30)[/B]
 
Upvote 0
Thank you Joe
Finaly I used this one : DateDif(Date2,Date1,"m")+DateDif(Date2,Date1,"md")/30
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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