+ Reply to Thread
Results 1 to 9 of 9

Calculating Tenure based on Start Date & End Date

  1. #1
    Registered User
    Join Date
    07-20-2021
    Location
    Toronto
    MS-Off Ver
    V2106
    Posts
    6

    Calculating Tenure based on Start Date & End Date

    Hi there,

    I need help with calculating tenure by month based on start date & end date provided. Please find below a screenshot of the chart I have to fill in, including my current attempt at a formula that is giving me the wrong answers but im not sure why.

    =COUNTIFS(Data!$D:$D,">="&DATE(2015,2,1),Data!$D:$D,"<="&DATE(2018,1,31))+(COUNTIFS(Data!$E:$E,""<=""&DATE(2020,2,28),Data!E:E,""))

    From this I am trying to get a count of employees who are still employed in the month February but have 2-5 years of tenure (hired between Feb,1, 2015 - Jan,31, 2018). It is pulling the correct # but it is not excluding the person that left the company on Feb 7, 2020 ( still including the people who left after the month of February) & I am not sure why. Please see snapshot below of the chart I have to fill in + an example of the format of the data attached.

    Thanks in advance!
    Capture.JPG
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Calculating Tenure based on Start Date & End Date

    Please upload the workbook that contains the chart and manually add some example results.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    07-20-2021
    Location
    Toronto
    MS-Off Ver
    V2106
    Posts
    6

    Re: Calculating Tenure based on Start Date & End Date

    Thanks for your reply!

    Please find attached an example with the chart & formula included.

    As you can see it's providing a count of all entries that lie within the date ranges I outlined in the first 2 criteria of COUNTIF however I need it to exclude any rows which heave a departure date of 2020-02-28 or earlier.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Calculating Tenure based on Start Date & End Date

    Try

    COUNTIFS(Sheet2!$D:$D,">="&DATE(2015,2,1),Sheet2!$D:$D,"<="&DATE(2018,1,31),Sheet2!$E:$E,">"&DATE(2020,2,28))

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Calculating Tenure based on Start Date & End Date

    There are 4 people who left before Feb 29 2020. Should they all be excluded?

    And would you indicate the actual results you expect to see for each of the tenure periods.

    I've added a different generalised formula. When I understand the precise results you need we can work out a modification
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-20-2021
    Location
    Toronto
    MS-Off Ver
    V2106
    Posts
    6

    Re: Calculating Tenure based on Start Date & End Date

    Thanks so much for the work on this, we are close. The 4 people who left before Feb 29, 2020 should all be excluded.

    I have manually done that on the chart, please see screenshot below for final tally:

    Capture.JPG

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Calculating Tenure based on Start Date & End Date

    I'm struggling to understand which departure dates in column E meets the need to reduce the numbers in the last three tenure bands, i.e. currently 2,3,1 becomes 1,1,0 - a deduction of 1,2,1

    Can you explain how you get the 1,2,1 deductions.

  8. #8
    Registered User
    Join Date
    07-20-2021
    Location
    Toronto
    MS-Off Ver
    V2106
    Posts
    6

    Re: Calculating Tenure based on Start Date & End Date

    Yeah for sure;

    So in total there were 4 people deducted since there were 4 people with departure dates prior to Feb 28, 2021. Please see screenshot below for the 4 individuals who left prior to Feb 28.

    Which row I deducted them from depended on how much tenure they had:

    Employee# 178 had 5+ years of tenure so I deducted 1 from row 11.
    Employee# 137 had 1-2 years of tenure so I deducted 1 from row 9.
    Employee#'s 185 & 148 had 2-5 years of tenure so I deducted 2 from row 10

    Therefore the final headcount for tenure includes only current employees who have not yet left.
    Capture.JPG

  9. #9
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,039

    Re: Calculating Tenure based on Start Date & End Date

    Added 2 columns for the "Tenure Start Month and " Tenure End Month", formula for cell D3 as follows:
    (unable to attach formula due to firewall)

    Calculating Tenure based on Start Date & End Date.png

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 01-11-2020, 02:38 PM
  2. [SOLVED] Calculating Target Date/Time Based on Start date and hours - Excel 2007
    By chinraj in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-09-2019, 01:43 AM
  3. Replies: 2
    Last Post: 12-07-2018, 03:49 AM
  4. [SOLVED] Calculating Target Date/Time Based on Start date and hours - Excel 2007
    By praddsouza in forum Excel General
    Replies: 7
    Last Post: 10-07-2018, 09:18 AM
  5. Calculating a group of cells based on start and end date.
    By Johnr0626 in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 11-29-2015, 02:50 PM
  6. Calculating a minutes duration based on start and end date and times
    By chrispx001 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-12-2013, 08:16 AM
  7. Calculating statistical measures based upon a given start and end date.
    By Chanko in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2012, 09:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1