Formula not working when counting months

Quinton

Board Regular
Joined
Nov 6, 2008
Messages
125
Hello:cool:

I have the following dates in 2 cells:
18-12-09 and 17-05-11

I am using the following formula the count the months difference between the 2 dates:
=(MONTH(J68)-MONTH(I68))

The result I am getting is:
-7

I should be getting a result of:
17 (I think).

It is not realising that there are differeing years as well?

Can anyone please help??

Many thanks in advance
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Many thanks, but the formula did not work. It may be because the 2 cells are referencing another worksheet?

Here are the formulas for 1 of the cells:

I68
=LOOKUP(2, 1/((Sdata1!$A$1:$A$1000="Chestnut Grove\")*(Sdata1!$B$1:$B$1000="Plot 05")),Sdata1!$C$1:$C$1000)

That data is also using another formula:
=IF(Sdata!C37="<empty>",TODAY(),Sdata!C37)

The data stored at "sdata!C37 is:
18/12/2009

Hope this helps?

Cheers,
 
Upvote 0

Forum statistics

Threads
1,224,582
Messages
6,179,670
Members
452,936
Latest member
anamikabhargaw

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