+ Reply to Thread
Results 1 to 8 of 8

Find number of missed pay periods for unpaid period

  1. #1
    Registered User
    Join Date
    12-28-2023
    Location
    Chicago, Illinois
    MS-Off Ver
    2302
    Posts
    2

    Find number of missed pay periods for unpaid period

    Hello,

    I am trying to find a formula that will calculate the number of missed pay periods for an unpaid window of time. We are paid in arrears on the 25th of the month for the 1st-15th and 10th of the following month for the 16th-end of the month. The formulas I have tried are capturing pay periods where the person would get a partial check.

    For example:

    Joe Smith
    Unpaid Leave Start Date: 2/6/2024
    Unpaid Leave End Date: 9/16/2024

    Joe will receive a partial paycheck on 2/25 for any hours worked through 2/6. He will be unpaid for 14 pay periods and will not receive a paycheck until 10/10. My formulas incorrectly calculate that he is missing 15 pay periods. I've attached an example workbook.

    Any help would be much appreciated!!
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,897

    Re: Find number of missed pay periods for unpaid period

    Administrative note
    Is your forum profile showing the Excel PRODUCT that you need this request to work with?

    The best solutions often rely on knowing WHICH Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date. If you aren't sure, in Excel go to File/Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this.

    The three most recent Excel PRODUCTS are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the Version number in your profile (e.g. MS365 (PC) Version 2211). The version number is in the About Excel section further down the Account page.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,386

    Re: Find number of missed pay periods for unpaid period

    I don't get the "3's". Why not 4?

    Please Login or Register  to view this content.
    For older versions

    Please Login or Register  to view this content.
    Last edited by JEC.; 12-28-2023 at 05:58 PM.

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,832

    Re: Find number of missed pay periods for unpaid period

    This assumes you are on version O365 (or MS365) (or V2021).
    Try this in cell I2 and copy down:

    =XMATCH(H2,$B$2:$B$26,-1)-XMATCH(G2,$A$2:$A$26,1)+1

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,914

    Re: Find number of missed pay periods for unpaid period

    Try this:

    =COUNTIFS($B$2:$B$25,">="&G2,$A$2:$A$25,"<="&H2)-1
    Last edited by Phuocam; 12-29-2023 at 01:05 AM.

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,443

    Re: Find number of missed pay periods for unpaid period

    Another possibility:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This formula returns the same results as the formula of Greg, but sometimes other results as the formulas of JEC.

    See attachment with all the 4 formulas and also extra test cases.

    EDIT: Also added Phucam's formula with different results
    EDIT II: Also added Phucam's edited formula (5:05 UTC; 6:05 MET; 0:05 ET) with different results
    Attached Files Attached Files
    Last edited by HansDouwe; 12-29-2023 at 01:16 AM. Reason: Also added Phucam's formula with different results

  7. #7
    Registered User
    Join Date
    12-28-2023
    Location
    Chicago, Illinois
    MS-Off Ver
    2302
    Posts
    2

    Re: Find number of missed pay periods for unpaid period

    Thank you all so much! This is extremely extremely helpful and I appreciate all your assistance!!

  8. #8
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,443

    Re: Find number of missed pay periods for unpaid period

    You are Welcome!

    Thanks for the feedback. Glad to have helped. .

    If you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help

+ 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: 6
    Last Post: 09-26-2023, 09:09 AM
  2. Replies: 10
    Last Post: 03-28-2018, 01:07 PM
  3. Formula to flag missed periods
    By amartin575 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-23-2016, 12:17 PM
  4. Get the number of missed payments and missed payments of interest
    By chergian in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-01-2016, 08:37 PM
  5. Remove missed days after 12 month rolling period
    By gopherc4 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-21-2009, 06:12 PM
  6. how can we find out any missed number in a series?
    By Excel in forum Excel General
    Replies: 4
    Last Post: 05-17-2006, 11:57 AM
  7. how we can find out any missed number in a series?
    By Excel in forum Excel General
    Replies: 1
    Last Post: 05-17-2006, 11:30 AM

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