+ Reply to Thread
Results 1 to 3 of 3

Vlookup (or index/match) with multiple criteria over multiple sheets

  1. #1
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Vlookup (or index/match) with multiple criteria over multiple sheets

    Hi everyone,

    Hoping I can get some help with this. I have one summary sheet and two data sheets.

    Summary sheet

    Column A: a list of identifying numbers, i.e. RR001, RR002, RR003 etc.
    Colume B: with show either Even or Odd for each corresponding number
    Column C: a corresponding figure, i.e. 40, 50, 63, etc.

    Data sheet1: has 2013 figures

    Data sheet2: has 2012 figures

    What I'm trying to do is have column C indicating the appropriate figure from data sheet 1 or data sheet 2. This is depending on whether column B is either Even (meaning sheet 1) or Odd (meaning sheet 2).

    so it would be kind of like: if column B is Even, vlookup(A1, 'Sheet1!'A:B,2,FALSE); if column B is Odd, vlookup(A1,'Sheet21',A:B,2,FALSE)

    Any suggestions?

    Thanks everyone!!

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Vlookup (or index/match) with multiple criteria over multiple sheets

    Sure, with a little IF magic:

    IF(what,do what when true, do what when false)

    =if(B1="Even",vlookup(A1, 'Sheet1!'A:B,2,FALSE),vlookup(A1,'Sheet21',A:B,2,FALSE))

  3. #3
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Vlookup (or index/match) with multiple criteria over multiple sheets

    Maybe something like ...

    =IF(B1 = "Odd",VLOOKUP(A1,Sheet2!A:B,2,0),IF(Sheet1!B1 = "Even",VLOOKUP(A1,Sheet3!A:B,2,0),""))
    Martin

+ 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. 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
  2. [SOLVED] Index, match, vlookup with multiple criteria
    By saniamarco in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-29-2012, 07:16 PM
  3. [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
  4. Index Match Multiple Criteria Multiple Sheets
    By sctraffic in forum Excel General
    Replies: 10
    Last Post: 07-21-2011, 03:47 PM
  5. Replies: 8
    Last Post: 06-20-2011, 05:54 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