Difference Between Dates

vicedo

Active Member
Joined
Jan 9, 2015
Messages
401
Guys please i have a little issue

The difference in months from 'January to December' is 12 months. I tried calculating the difference between this months using the DATEDIF function but I keep getting 11months instead.

Please how do i go about this.

Thanks and regards
 
try
=DATEDIF(B1,EOMONTH(C1,1),"M")

where B1 is startmonth and C1 is enddate
 
Upvote 0
Jeffrey, adding +1 will not work

It will not work for your setup or it failed altogether?

Data Range
[Table="class: grid"][tr][td] [/td][td]
A​
[/td][td]
B​
[/td][td]
C​
[/td][td]
D​
[/td][/tr]
[tr][td]
1​
[/td][td]
1/1/2015​
[/td][td]
[/td][td]
12​
[/td][td]
C1:=DATEDIF(A1,A2,"m")+1​
[/td][/tr]

[tr][td]
2​
[/td][td]
12/1/2015​
[/td][td]
[/td][td]
12​
[/td][td]
C2:=DATEDIF(A1,EOMONTH(A2,1),"M")​
[/td][/tr]
[/table]
 
Upvote 0

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