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
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
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
A​
B​
C​
D​
1​
1/1/2015​
12​
C1:=DATEDIF(A1,A2,"m")+1​
2​
12/1/2015​
12​
C2:=DATEDIF(A1,EOMONTH(A2,1),"M")​
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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