+ Reply to Thread
Results 1 to 7 of 7

Calculate # of Paychecks based on Date of Hire

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Calculate # of Paychecks based on Date of Hire

    Please refer to Attached sheet for referance.

    I have a business and i run payroll for my employees twice a month (semimonthly).
    Date of paycheck will be 16th and 31st.
    So if employee was hired on say 7/5/2009 then this employee will have 3 paychecks as of today
    (1st paycheck from 7/1/2009 to 7/15/2009
    2nd Paycheck from 7/16/2009 to 7/31/2009
    3rd Paycheck from 8/1/2009 to 8/15/2009)

    i need to know the # of pay checks for each employee computed in Cell C3 to C7.


    Let me know if you have any questions.

    Thank you for your help..

    Riz Momin
    Attached Files Attached Files
    Last edited by rizmomin; 08-22-2009 at 05:52 PM.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Calculate # of Paychecks based on Date of Hire

    Using your posted workbook...try this:

    Please Login or Register  to view this content.
    Copy that formula down through C7

    With your posted data the formulas return these values:

    Please Login or Register  to view this content.
    One issue to be resolved...If a person's hire date is ON a payday, I assume they won't receive a paycheck on that date. If that's true, use this formula:
    Please Login or Register  to view this content.

    The new values returned will be these:

    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Smile Re: Calculate # of Paychecks based on Date of Hire

    This works great...
    i am really learning a lot from this site and shows how powerful MS Excel can get...

    Thanks a lot

    Riz Momin

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Calculate # of Paychecks based on Date of Hire

    Since the mid-month pay date is one day in arrears, and the end-of-month pay is current, I'd think you would not get a m-m check if you started on the 16th, but would get an e-o-m check if you started on the 31st.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,677

    Re: Calculate # of Paychecks based on Date of Hire

    Quote Originally Posted by rizmomin View Post
    Date of paycheck will be 16th and 31st.
    What happens in those months that don't have a 31st?

    Assuming that payday will be on the last day of the month in that scenario...

    ....then you can use either of these formulas to calculate the number of paychecks between hire date in B3 and todays' date in B1, assuming that you do get paid on the day you start if that happens to be a payday......

    =DATEDIF(B3-DAY(B3)+1,B$1+1,"m")*2+(DAY(B3)<=16)-(DAY(B$1+1)<16)

    or

    =SUMPRODUCT(--(DAY(B3+ROW(INDIRECT("1:"&B$1-B3+1)))={17,1}))

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Calculate # of Paychecks based on Date of Hire

    You wouldn't get paid if you started on the 16th because the pay period ended on the 15th ...

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,677

    Re: Calculate # of Paychecks based on Date of Hire

    Quote Originally Posted by shg View Post
    You wouldn't get paid if you started on the 16th because the pay period ended on the 15th ...
    I see what you mean, shg. In which case you can use the 1st formula I suggested but with the = sign removed from the middle, i.e.

    =DATEDIF(B3-DAY(B3)+1,B$1+1,"m")*2+(DAY(B3)<16)-(DAY(B$1+1)<16)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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