Months elapsed formula

htchandler

New Member
Joined
Apr 17, 2011
Messages
47
I tried to use the excel recommended formula for this but it did not work. I need a formula to count the whole months between "Today" and the date the individual started in their job. For some individuals it may be less than a month, or it could be several years, I need the answer in number of months. Any ideas.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
If it's less than a month what should be the answer? Is it zero or would you want it to be 1 if it's over 15 days?

Try using DATEDIF in either case, e.g. with hire date in A1

=DATEDIF(A1,TODAY(),"m")

only counts whole months so anything less than a month will be 0....or to round to the nearest month (roughly)

=DATEDIF(A1,TODAY()+15,"m")
 
Upvote 0
The formula:

Code:
=datedif(date started,today()+15,"m"

just sits in the cell, it will not actually calculate to give me a numbers or give me an error message. I double checked that the cell is not locked and there are no macros to turn on. Any ideas what would cause this?
 
Upvote 0
You need the closing parenthesis as barry pointed out.

Also, format the cell with the formula as GENERAL
Then RE-enter the formula


The format of the date shouldn't matter, as long as the actual value is actually a date.

What does this formula return
=ISNUMBER(A1)
where A1 is your date.
 
Upvote 0

Forum statistics

Threads
1,224,548
Messages
6,179,451
Members
452,915
Latest member
hannnahheileen

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