chris pike
asked on
Excel formula to count how many months from today (cell has formula already)
Hi Experts,
I have another excel request.
I need help with a formula that tells me the difference in months.
I can do this with static dates just fine,. But my date cell has a formula already and I get an error.
See attached dummy sheet as well.
Thanks
Chris
Example dummy-sheet-difference-in-months.xlsx
I have another excel request.
I need help with a formula that tells me the difference in months.
I can do this with static dates just fine,. But my date cell has a formula already and I get an error.
See attached dummy sheet as well.
Thanks
Chris
Example dummy-sheet-difference-in-months.xlsx
This can be done with the DATEDIF function
=DATEDIF(Start, Finish, Option)
or in your sheet:
=DATEDIF(B4,D4,"m")
=DATEDIF(Start, Finish, Option)
or in your sheet:
=DATEDIF(B4,D4,"m")
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Rob I tried that but because I have formulas populating the source of the date cell I get errors
The source cells having formulas shouldn't cause any issue
If you want to disregard the days and just look for the difference in the months, you can try this:
=MONTH(D4)-MONTH(B4)
Paul
=MONTH(D4)-MONTH(B4)
Paul
ASKER
Thanks for the extra help with the YEARFRAC function solution Rob.
This is what I was looking for,
Thanks Neeraj
Thanks
Flyster
This is what I was looking for,
Thanks Neeraj
Thanks
Flyster
Thanks Chris. Glad you found a solution!
Open in new window