+ Reply to Thread
Results 1 to 6 of 6

Lookup corresponding value across multiple sheets

  1. #1
    Registered User
    Join Date
    08-13-2014
    Location
    Hobart
    MS-Off Ver
    2013
    Posts
    32

    Lookup corresponding value across multiple sheets

    I want to look up a corresponding value for a list of values, from multiple sheets as database. (see attached example)

    Index/Match doesn't seem to want to look across multiple sheets.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Lookup corresponding value across multiple sheets

    1) List the sheet names to search. I listed them in K1:K3 (Sheet2, Sheet3, Sheet4)

    2) Put this array formula in D6:

    =INDEX(INDIRECT("'" & INDEX($K$1:$K$3, MATCH(TRUE, COUNTIF(INDIRECT("'" & $K$1:$K$3 & "'!G:G"), C6)>0, 0)) & "'!F:F"), MATCH(C6, INDIRECT("'" & INDEX($K$1:$K$3, MATCH(TRUE, COUNTIF(INDIRECT("'" & $K$1:$K$3 & "'!G:G"), C6)>0, 0)) & "'!G:G"), 0))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    That first formula results in #N/A because that code isn't found on the 3 searched sheets.

    3) Copy D6 down.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-13-2014
    Location
    Hobart
    MS-Off Ver
    2013
    Posts
    32

    Re: Lookup corresponding value across multiple sheets

    Doesn't seem to work for some reason

    I followed your instructions but it seems to run into trouble with the first countif/indirect statement
    Attached Files Attached Files

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Lookup corresponding value across multiple sheets

    You misspelled the sheet names.

  5. #5
    Registered User
    Join Date
    08-13-2014
    Location
    Hobart
    MS-Off Ver
    2013
    Posts
    32

    Re: Lookup corresponding value across multiple sheets

    Doh! Thanks for that

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Lookup corresponding value across multiple sheets

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Lookup and sum multiple values based on a single criteria in multiple sheets.
    By paulsanett in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2014, 12:18 PM
  2. Lookup and return multiple matches across multiple sheets
    By somnath6309 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-07-2013, 02:44 AM
  3. Lookup and return multiple matches across multiple sheets
    By somnath6309 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2013, 03:45 PM
  4. lookup one value over multiple sheets & return multiple responses
    By rsagar-patt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-01-2012, 11:30 AM
  5. Lookup multiple values on multiple sheets
    By RealGomer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2005, 01:05 PM

Tags for this Thread

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