+ Reply to Thread
Results 1 to 5 of 5

VLOOKUP/INDEX multiple criteria

  1. #1
    Forum Contributor
    Join Date
    07-17-2015
    Location
    Roanoke, Virginia
    MS-Off Ver
    2010
    Posts
    173

    VLOOKUP/INDEX multiple criteria

    Having brain freeze: Need a formula on Trips Worksheet (Highlighted yellow) that pulls a number from a specified column on another worksheet (Provider Vehicles) PV

    I'm thinking it's an IF formula but am scratching my head.

    G2 should give me a total from Provider Vehicles (PV) worksheet J:N based on B2 and C2

    B2 is found on PV J:J
    If c2 is A then total comes from PV K:K
    If C2 is W then . . . L:L
    If C2 is VS then . . . M:M
    If C2 is S then . . . N:N

    Thanks
    Jim
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: VLOOKUP/INDEX multiple criteria

    HI Jim,

    No formulas needed if you use Pivot Tables. See the attached where I've done a PT for you on the trips sheet. If you remove the blank columns on the PV you could use the county as a filter. See if a Pivot table answer isn't better/easier for you.

    PT for PV Sum or Count.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    07-17-2015
    Location
    Roanoke, Virginia
    MS-Off Ver
    2010
    Posts
    173

    Re: VLOOKUP/INDEX multiple criteria

    Thanks MarvinP
    Due to other factors (These are part of a much larger data gathering into a singular data base) a pivot table would not be our first choice.
    I ended up with this formula:
    =IF(C2="A",VLOOKUP(B2,'Provider Vehicles'!$J:$N,2,0),
    IF(C2="W",VLOOKUP(B2,'Provider Vehicles'!$J:$N,3,0),
    IF(C2="VS",VLOOKUP(B2,'Provider Vehicles'!$J:$N,4,0),
    IF(C2="S",VLOOKUP(B2,'Provider Vehicles'!$J:$N,5,0),0))))

    Thanks again for your time
    Jim

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: VLOOKUP/INDEX multiple criteria

    Hi Jim
    Enter this formula in G2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by AlKey; 08-04-2016 at 01:36 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Forum Contributor
    Join Date
    07-17-2015
    Location
    Roanoke, Virginia
    MS-Off Ver
    2010
    Posts
    173

    Re: VLOOKUP/INDEX multiple criteria

    I like this approach
    Nice use of Vllokup and Match
    MATCH is not quite in my wheelhouse yet.

    Thanks Again

+ 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. Multiple criteria vlookup with INDEX and MATCH
    By Ljung in forum Excel General
    Replies: 5
    Last Post: 05-26-2016, 04:45 AM
  2. Vlookup (or index/match) with multiple criteria over multiple sheets
    By Groovicles in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-18-2013, 01:56 PM
  3. How to use VLookup or match/index with multiple criteria?
    By awcwa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-22-2013, 02:31 PM
  4. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  5. [SOLVED] Index, match, vlookup with multiple criteria
    By saniamarco in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-29-2012, 07:16 PM
  6. [SOLVED] VLOOKUP (multiple criteria) vs. INDEX and MATCH
    By B-dub in forum Excel General
    Replies: 3
    Last Post: 04-13-2012, 06:23 PM
  7. [SOLVED] Vlookup or index/match with multiple column and criteria?
    By xirx in forum Excel General
    Replies: 2
    Last Post: 07-22-2005, 08:05 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