+ Reply to Thread
Results 1 to 7 of 7

Calculate BiWeekly Pay Periods

  1. #1
    Registered User
    Join Date
    10-07-2008
    Location
    Colorado
    Posts
    2

    Calculate BiWeekly Pay Periods

    I have been working on solving this riddle since yesterday. What I'm trying to do is have Excel use today’s date on the computer to tell me when my Paydays are in a given month. Or have it tell me the next two or three Paydays based on Today's Date.

    I can get Excel to calculate Every Two Weeks by using the formula =A3 + 14 then have each sequential field add 14 days to the previous fields date. However what I end up with is just a column of Pay Dates. Not what I'm looking for. I want to have an active page that only shows 2 or 3 future Pay Days.

    I want to use the function =TODAY() in my formula so that every time I open up the file it can calculate the next Pay Dates automatically.

    I have been playing around with this formula:
    =A4=IF(WEEKDAY(EOMONTH(A2,-1)+1,2)=5,EOMONTH(A2,-1)+1,IF(WEEKDAY(EOMONTH(A2,-1)+1,2)<5,EOMONTH(A2,-1)+6-WEEKDAY(EOMONTH(A2,-1)+1,2),IF(WEEKDAY(EOMONTH(A2,-1)+1,2)>5,EOMONTH(A2,-1)+12-WEEKDAY(EOMONTH(A2,-1),2),0)))
    All this does is tells me the First Friday of every month. This won't work for me because the Pay Periods are separated by 14 days not the 2nd and 4th Friday of every month.

    Here is an example of my Pay Periods: Sep 19, 2008; Oct 3, 2008; Oct 17, 2008; Oct 31, 2008; Nov 14, 2008; Nov 28, 2008; Dec 12, 2008; Dec 26, 2008; etc....

    As you can see it can be confusing as in October there are actually 3 Pay periods and then Nov and Dec there are only two.

    I tried playing around with a VBA Macro that can tell you which Friday is which but that won't work either.

    There needs to be a common starting date that is part of this calculation so that it is only using those pay periods to calculate the results. However what formula could I use that would include Today's Date with this constant to have it calculate the next 2 or 3 Pay Dates?

    I believe I have over thought this issue. Could someone help me solve this problem?
    Last edited by gjames; 10-07-2008 at 11:18 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-19-2008
    Location
    It varies ...
    MS-Off Ver
    Office365 - 64bit
    Posts
    862
    hi - as you point out, you need a baseline reference to your pay cycles other than the current date, which doesn't give you this. I'd suggest - if my assumption about the cycles being in the even weeks of the year is correct - you use the week to determine the next few .. if today's date is in an odd week, it's the following Friday; if an even week, it's the coming Friday. If your annual cycle changes from year to year, then this will only work for one year at a time ... not sure if that helps?
    MatrixMan.
    --------------------------------------
    If this - or any - reply helps you, remember to say thanks by clicking on *Add Reputation.
    If your issue is now resolved, remember to mark as solved - click Thread Tools at top right of thread.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    This formula will give your next payday

    =MOD(DATE(2008,9,19)-TODAY(),14)+TODAY()

    The date in the formula can be any payday, past or future. Obviously you can get subsequent paydays by adding 14 to the above.

    Note: if today is a payday formula returns today's date

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Quote Originally Posted by gjames View Post
    I have been playing around with this formula:
    =A4=IF(WEEKDAY(EOMONTH(A2,-1)+1,2)=5,EOMONTH(A2,-1)+1,IF(WEEKDAY(EOMONTH(A2,-1)+1,2)<5,EOMONTH(A2,-1)+6-WEEKDAY(EOMONTH(A2,-1)+1,2),IF(WEEKDAY(EOMONTH(A2,-1)+1,2)>5,EOMONTH(A2,-1)+12-WEEKDAY(EOMONTH(A2,-1),2),0)))
    All this does is tells me the First Friday of every month.
    Note: if you do want the first Friday of the month......

    =A2-DAY(A2)+8-WEEKDAY(A2-DAY(A2)+2)

  5. #5
    Registered User
    Join Date
    10-07-2008
    Location
    Colorado
    Posts
    2

    Excellent!

    Yes that works perfectly. Thank you for that.

    I knew I was overthinking this issue.

    I may expand on this later but for now this works.

    Thanks again.

  6. #6
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327
    Quote Originally Posted by daddylonglegs View Post
    This formula will give your next payday

    =MOD(DATE(2008,9,19)-TODAY(),14)+TODAY()

    The date in the formula can be any payday, past or future. Obviously you can get subsequent paydays by adding 14 to the above.

    Note: if today is a payday formula returns today's date
    I have a spreadsheet setup for 2009, I used this formula to show me when my next paydate is. It works good. If I use Jan 2, 2009 as my first payday in 2009, it returns 10-24-2008 (which is my next payday).

    Thanx for the tip......LT

  7. #7
    Registered User
    Join Date
    01-25-2013
    Location
    Tennessee
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Calculate BiWeekly Pay Periods

    Quote Originally Posted by daddylonglegs View Post
    This formula will give your next payday

    =MOD(DATE(2008,9,19)-TODAY(),14)+TODAY()

    The date in the formula can be any payday, past or future. Obviously you can get subsequent paydays by adding 14 to the above.


    Note: if today is a payday formula returns today's date
    I am very new to this, but I think this is exactly what I need. I am not sure where you would add the 14 in though to get the future dates. Then would you just copy and paste the formula into more rows, or would it do it automatically? I need the start date to be 01/25/2013 and go for 2 or 3 years. I am creating a payment plan on my paydays where the payment remains the same.

+ 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. Auto Calculate-.Is this possible to have a macro?
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-24-2010, 07:16 AM
  2. Import and export a text document
    By Odysseus in forum Excel General
    Replies: 0
    Last Post: 01-10-2008, 10:41 AM
  3. How to calculate moving averages with a complicated requirement
    By asamlaksa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-19-2007, 07:12 AM
  4. File fails to calculate - corrupted?
    By bahguy in forum Excel General
    Replies: 3
    Last Post: 08-09-2007, 03:53 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