+ Reply to Thread
Results 1 to 9 of 9

Vlookup for payroll when hourly rate changes.

  1. #1
    Registered User
    Join Date
    12-20-2018
    Location
    USA
    MS-Off Ver
    2016
    Posts
    15

    Vlookup for payroll when hourly rate changes.

    I have a vlookup formula finding the hourly wage for an employee entered. If the employee gets a raise I need to be able to keep the previous hourly rate with data previously entered but show the new rate with new entries.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,573

    Re: Vlookup for payroll when hourly rate changes.

    OK. How about a sample workbook?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-20-2018
    Location
    USA
    MS-Off Ver
    2016
    Posts
    15

    Re: Vlookup for payroll when hourly rate changes.

    Attached. So if I give Jeff a raise today to $16 per hour and I type 16 into cell L12 (vlookup data) the entry for 4/7/2019 row 10 will calculate the new raise when I want it to keep the previous pay rate for the pay period.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-20-2018
    Location
    USA
    MS-Off Ver
    2016
    Posts
    15

    Re: Vlookup for payroll when hourly rate changes.

    I am thinking there needs to be an IF-Function with <> a certain date.

  5. #5
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Vlookup for payroll when hourly rate changes.

    If I'm understanding what you want correctly, you'd need to keep an hourly rate history for each employee, with the dates the hourly rates went into effect.
    If someone helped achieve your solution, consider clicking "* Add Reputation" on their post.

    If your question has been answered, mark the thread as [SOLVED] using the Thread Tools menu at the top of the thread.

  6. #6
    Registered User
    Join Date
    12-20-2018
    Location
    USA
    MS-Off Ver
    2016
    Posts
    15

    Re: Vlookup for payroll when hourly rate changes.

    The data is entered into a table with many more columns of then what is shown in the sample. Is it possible to have the vlookup incorporated with another formula to read the date and only apply the wage if the entered data is >date of raise?

  7. #7
    Registered User
    Join Date
    12-20-2018
    Location
    USA
    MS-Off Ver
    2016
    Posts
    15

    Re: Vlookup for payroll when hourly rate changes.

    What would be the best way to accomplish your suggestion?

  8. #8
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Vlookup for payroll when hourly rate changes.

    You would need to add an effective date column to your hourly rate table, and keep track of each employee's rate and the date it went into effect. Assuming that effective date would be in column M, you could use this formula, entered as an array formula with ctrl+shift+enter:
    Please Login or Register  to view this content.
    This checks to make sure the names match, and looks for the largest hourly rate that is effective before the pay date. Example file attached. Would that work for what you need?

  9. #9
    Registered User
    Join Date
    12-20-2018
    Location
    USA
    MS-Off Ver
    2016
    Posts
    15

    Re: Vlookup for payroll when hourly rate changes.

    That is exactly what I needed. Thank you very much! I was caught up trying to use a vlookup.

+ 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] Finding hourly rate with VLOOKUP function
    By vic.moon1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-11-2016, 10:05 AM
  2. Replies: 11
    Last Post: 02-22-2016, 02:39 PM
  3. Replies: 1
    Last Post: 02-28-2014, 02:31 AM
  4. [SOLVED] What function can I use to add a flat rate plus an hourly rate?
    By dosmin777 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2014, 02:26 AM
  5. Replies: 2
    Last Post: 01-16-2012, 08:14 PM
  6. Hourly Rate
    By Eskimos in forum Excel General
    Replies: 5
    Last Post: 12-01-2006, 03:56 PM
  7. VBA To Decide Which Hourly Rate
    By Jasper in forum Excel General
    Replies: 1
    Last Post: 04-21-2005, 10:06 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