Solved

Need formula to count months of service

Posted on 2009-03-31
5
270 Views
Last Modified: 2012-05-06
CRV10 - I need a formula that will give me months of service for each employee (as opposed to years of service). For example, if someone's hire date is 3/31/2004 then months of service would be 60, or if hire date was 1/5/2009 then months of service would be 3.  Thanks!
0
Comment
Question by:jph826
  • 2
  • 2
5 Comments
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 24030076
Please define how you are counting months of service, because based on your example it is not clear.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 125 total points
ID: 24030088
Crystal has a DATEDIFF function you can use

DateDiff('m',{HireDateField},CurrentDate)

mlmcc
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 24030152
mlmcc,

Right, but check the examples provided.  DateDiff would return 60 for the former, and 2 for the latter.  The question
lists 60 (OK) and 3 (difference).

Regards,

Patrick
0
 

Author Comment

by:jph826
ID: 24030606
matthewspatrick - Sorry, you are correct, 3 should have been 2.

mlmcc - Thanks!  Exactly what I needed.
0
 

Author Closing Comment

by:jph826
ID: 31564881
Thanks again mlmcc!  I can always count on your answers to be right on - you have never steered me wrong.  Money well spent.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, In my previous Article  (http://www.experts-exchange.com/Database/Reporting/A_15199-Introduction-to-Microstrategy.html)I discussed some basic understanding of Microstrategy that how we can get in Intro of Microstrategy (MSTR). Now it's tim…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now