+ Reply to Thread
Results 1 to 9 of 9

Updating date to show next payroll date

  1. #1
    Registered User
    Join Date
    07-23-2015
    Location
    New Brunswick, Canada
    MS-Off Ver
    2010
    Posts
    16

    Updating date to show next payroll date

    Hi there,

    I'm working to have a cell show the next closest pay period based on todays date (Using TODAY, of course). Here's an example table that I want to use as a reference. Today is located at cell D1:


    Payroll Schedule

    A B
    1 2-Jan-15
    2 16-Jan-15
    3 30-Jan-15
    4 13-Feb-15
    5 27-Feb-15
    6 13-Mar-15
    7 27-Mar-15
    8 10-Apr-15
    9 24-Apr-15
    10 8-May-15

    What should I do!? I've tried Lookup and V Lookup

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Updating date to show next payroll date

    With D1 is today' date

    B1:B10 contain payroll dates (ascending order):

    =LOOKUP(D1,B1:B9,B2:B10)
    Quang PT

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Updating date to show next payroll date

    ...or

    =INDEX($A$1:$A$10,MATCH($D$1,$B$1:$B$10,1))
    to return the number from column A


    =INDEX($B$1:$B$10,MATCH($D$1,$B$1:$B$10,1))
    to return the date
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  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,215

    Re: Updating date to show next payroll date

    Perhaps

    =MATCH(D1,$A$1:$A$20,1)

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Updating date to show next payroll date

    =index($b$1:$b$30, match(d1,$b$1:$b$30)+1)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Updating date to show next payroll date

    Does this help?
    Please Login or Register  to view this content.
    Wow I was slow on that one.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Updating date to show next payroll date

    I was even slower.. I forgot to add the 1.

  8. #8
    Registered User
    Join Date
    07-23-2015
    Location
    New Brunswick, Canada
    MS-Off Ver
    2010
    Posts
    16

    Re: Updating date to show next payroll date

    Quote Originally Posted by nigelbloomy View Post
    Does this help?
    Please Login or Register  to view this content.
    Wow I was slow on that one.
    Yep That did it. Thanks so much for your help.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Updating date to show next payroll date

    Here's another one...

    Data Range
    A
    B
    C
    D
    E
    1
    Pay Dates
    ------
    ------
    Today
    Pay Day
    2
    2-Jan-15
    24-Jul-15
    31-Jul-15
    3
    16-Jan-15
    4
    30-Jan-15
    5
    13-Feb-15
    6
    27-Feb-15
    7
    13-Mar-15
    8
    27-Mar-15
    9
    10-Apr-15
    10
    24-Apr-15
    11
    8-May-15
    12
    22-May-15
    13
    5-Jun-15
    14
    19-Jun-15
    15
    3-Jul-15
    16
    17-Jul-15
    17
    31-Jul-15
    18
    14-Aug-15
    19
    28-Aug-15
    20
    11-Sep-15


    This array formula** entered in E2:

    =MIN(IF(A2:A20>=D2,A2:A20))

    Format as Date

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. [SOLVED]Find a closer date for payroll in a range of date
    By jackson_hollon in forum Excel General
    Replies: 9
    Last Post: 10-06-2014, 11:06 AM
  2. Replies: 3
    Last Post: 09-04-2014, 08:17 PM
  3. Payroll Date/Anniversary Calculations?!?
    By InFeKtId in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-04-2014, 10:33 AM
  4. Updating Date in Spreadsheet to table in SQL in UK date format
    By nickymac in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-27-2014, 02:19 PM
  5. [SOLVED] payroll year to date help
    By Robert1960 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-10-2014, 08:25 AM
  6. [SOLVED] need help to lookup a (workday) date, and then excel output to show that date minus 1
    By Marijke in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-23-2013, 11:13 AM
  7. [SOLVED] How do I get year to date earnings on a payroll spreadsheet(what'.
    By Landon C in forum Excel General
    Replies: 3
    Last Post: 03-16-2005, 07:06 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