+ Reply to Thread
Results 1 to 7 of 7

Lookup values from a table based on two criteria

  1. #1
    Registered User
    Join Date
    12-03-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    6

    Lookup values from a table based on two criteria

    Hi

    I'm new to this forum but not Excel but there's a problem I seem unable to solve. I have put together a small spreadsheet for overtime payments. Depending on the person's pay rate and the time of day, the hourly rate for overtime varies.

    I want to use the value in column A and the time in column D to then lookup into the table of rates and put that back in column E. I hope this picture clarifies what I'm after

    \1


    Thanks in advance of any replies
    Alun

  2. #2
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Lookup values from a table based on two criteria

    use index - is the table of rates on a seperate page?
    something like =index(table_of_rates,match($a1,Table_of_rates1,0),match($D1,Table_of_Rates2,0)

    where Table_of_rates is named range Table_of_rates1 is the named range's first column and Table_of_rates2 is the named range's header row.
    of course D1 would need to be 1.5x or 2x

  3. #3
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Lookup values from a table based on two criteria

    post the example as spreadsheet

  4. #4
    Registered User
    Join Date
    12-03-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Lookup values from a table based on two criteria

    Example Spreadsheet.xlsx

    I'm sorry, I didn't realise I could attach a file - it makes it much easier!

    Alun

  5. #5
    Registered User
    Join Date
    12-03-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Lookup values from a table based on two criteria

    Anyone else have a suggestion on my file?

  6. #6
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Lookup values from a table based on two criteria

    Hi

    How does one know when these rates kick in!

    IE: Are they after a Time
    Anything over a "X" amount of hours
    Sat = 1.5x

  7. #7
    Registered User
    Join Date
    12-03-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Lookup values from a table based on two criteria

    Thanks for the reply Kevin

    If the cell in column "Left Site" says "20:30" then the 1.5x rate applies and if any cell in column "Arrived on Site" says "20:31" then the 2x rate applies

  8. #8
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Lookup values from a table based on two criteria

    Hi Alun

    Try in F2 and copy down.

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

+ 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