+ Reply to Thread
Results 1 to 5 of 5

Multiple lookups for VLOOKUP?

  1. #1
    Registered User
    Join Date
    07-30-2012
    Location
    Waianae, HI
    MS-Off Ver
    MSO 365 version 1909
    Posts
    38

    Multiple lookups for VLOOKUP?

    I've attached a sample of what I'm trying to do, but basically I need to reference the persons age and gender to the table, do determine if their time is greater than or less than the maximum time in the table. Then return an "X" if it's less. Is this possible?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Multiple lookups for VLOOKUP?

    You can use:
    =VLOOKUP(C2,H3:R4,MATCH(D2,VALUE(LEFT(I1:R1,2)),1)+1)
    to return the time from the table. It's an array formula so you need to confirm with ctrl+shift+enter. To determine if the time is greater than or less than you can extend it to:
    =IF(E2<VLOOKUP(C2,H3:R4,MATCH(D2,VALUE(LEFT(I1:R1,2)),1)+1),"X","")
    in F1, again an array formula.

  3. #3
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Multiple lookups for VLOOKUP?

    ...or non-array formula:

    =IF(E2<VLOOKUP(C2,H3:R4,MATCH(D2,{17,22,27,32,37,42,47,52,57,62},1)+1),"X","")

  4. #4
    Registered User
    Join Date
    07-30-2012
    Location
    Waianae, HI
    MS-Off Ver
    MSO 365 version 1909
    Posts
    38

    Re: Multiple lookups for VLOOKUP?

    Quote Originally Posted by jhren View Post
    ...or non-array formula:

    =IF(E2<VLOOKUP(C2,H3:R4,MATCH(D2,{17,22,27,32,37,42,47,52,57,62},1)+1),"X","")
    jhren: For some reason, your formula only works for "Male", not "Female", and I can't figure out how to fix it.

  5. #5
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Multiple lookups for VLOOKUP?

    I only adapted the MATCH part of yudlugar's formula without trying it

    =IF(E2<VLOOKUP(C2,H3:R4,MATCH(D2,{17,22,27,32,37,42,47,52,57,62},1)+1,FALSE),"X","")

    ...or...

    =IF(E2<INDEX(H3:R4,MATCH(C2,H3:H4,0),MATCH(D2,{17,22,27,32,37,42,47,52,57,62},0)+1),"X","")

+ 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] VLookup: 2x2 lookups,results
    By jomili in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-06-2012, 01:19 PM
  2. VLookup calculations on multiple lookups
    By mju4t in forum Excel General
    Replies: 2
    Last Post: 11-10-2010, 11:33 AM
  3. More than Multiple Lookups: Conditional Multiple Lookups
    By mohitspamz in forum Excel General
    Replies: 6
    Last Post: 11-01-2009, 03:32 AM
  4. vlookup that lookups in different workbooks
    By Excel_Enthuse in forum Excel General
    Replies: 2
    Last Post: 02-17-2008, 06:03 PM
  5. [SOLVED] vlookup help with two of the same lookups
    By JR in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-16-2006, 05:40 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