Solved

Need formula to count months of service

Posted on 2009-03-31
5
271 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
I recently went through setting up a JasperReports Server using the AWS EC2 instance, and this article will cover some basic administration tasks I had to perform.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

809 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