Formula to Change Date to # of Mths worked

Kristylee0228

New Member
Joined
Sep 8, 2011
Messages
30
Hi All,
Just wondering if there is a formula where I can change the date an employee started working into the number of months employed??
Example, John Smith started here in January 2011. I would like the formula to return 8 months.

thank you!

Kristy
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
thank you for your responses!

@Sahak,
I hate to be a bother, but could you just explain what the blank parenthesis are after NOW? I just want to understand exactly what I am entering. Still kinda new here... Sorry.. :confused:
But thank you very much!!! :biggrin:
 
Upvote 0
The formula did not work the way I had hoped. I put it in for an employee who started here in 2008 and the formula returned the number 9, where it should have returned 36... for 36 months.
 
Upvote 0
How i know, there is no explanation for (), Excel understand that way.

Code:
=(YEAR(NOW())-YEAR(A1)+1)*(MONTH(NOW()-MONTH(A1)))
if date is 01/01/2008 then formula will give you 36
 
Last edited:
Upvote 0
Kristy,

Please ignore previous, try this:
Code:
 =INT((NOW()-A1)/30)
or
Code:
=ROUND((NOW()-A1)/30,0)
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

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