+ Reply to Thread
Results 1 to 5 of 5

Help indexing multiple sheets and matching multiple sheets

  1. #1
    Registered User
    Join Date
    11-07-2015
    Location
    Denver
    MS-Off Ver
    2016
    Posts
    10

    Help indexing multiple sheets and matching multiple sheets

    I can index and match across 2 sheets easily enough, but how can I index multiple sheets and match across those multiple sheets as well?

    =IFERROR(INDEX(Defense!A:A,MATCH(RB!C2,Defense!B:B,0)),0)


    I need to index Y on sheet 2,3,4,5 and then match B on 2,3,4,5 to B on sheet 1 which will paste in K on sheet 1.

    I have tried various combinations of just adding index and match statements, but it fails.

    The above formula is what I have tried to expand, because it works great with just 2 sheets.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: Help indexing multiple sheets and matching multiple sheets

    You could do it like this (if you only have 5 sheets it's not too long a formula):

    =IFERROR(INDEX(Defense!A:A,MATCH(RB!C2,Defense!B:B,0)),0)+IFERROR(INDEX(Sheet3!A:A,MATCH(RB!C2,Sheet3!B:B,0)),0)+IFERROR(INDEX(Sheet4!A:A,MATCH(RB!C2,Sheet4!B:B,0)),0)+IFERROR(INDEX(Sheet5!A:A,MATCH(RB!C2,Sheet5!B:B,0)),0)

    I've assumed that Sheet2 is actually named Defense - you will need to change the names of the others sheets as appropriate (and put apostrophes around the sheet names if you have spaces in them).

    I've also assumed that you are trying to return a number (as you have 0 at the end of the IFERROR term).

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    11-07-2015
    Location
    Denver
    MS-Off Ver
    2016
    Posts
    10

    Re: Help indexing multiple sheets and matching multiple sheets

    Yes it should return a number.

    That formula partially works. Sheet 1 is lineup, sheet 2 is QB sheet 3 is RB sheet 4 is WR sheet 5 is TE.

    On Sheet 1 is where all names are listed in column C. So the name on C2 lineup will be found in column C on one of the other sheets. When the match is found I need the data from the Y column on that sheet to be the result.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: Help indexing multiple sheets and matching multiple sheets

    It helps if you give all the relevant information to begin with, or attach a sample workbook.

    Where the formula says A:A you should change it to Y:Y, where it says B:B you should change it to C:C, where it says RB!C2 you can change this to just C2, and where it says Defense you can change this to Sheet2, then you can change the sheet names Sheet2 to Sheet5 to your actual names, i.e. QB, RB, WR, TE respectively.

    As the column to return data from is to the right of the lookup column, you can use VLOOKUP instead, i.e.:

    =IFERROR(VLOOKUP(C2,QB!C:Y,23,0),0)+IFERROR(VLOOKUP(C2,RB!C:Y,23,0),0)+IFERROR(VLOOKUP(C2,WR!C:Y,23,0),0)+IFERROR(VLOOKUP(C2,TE!C:Y,23,0),0)

    then copy down as required.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    11-07-2015
    Location
    Denver
    MS-Off Ver
    2016
    Posts
    10

    Re: Help indexing multiple sheets and matching multiple sheets

    Worked perfectly. Thank you very much.

+ 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] Indexing formula with multiple sheets
    By MikeSta4ord in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-22-2015, 11:59 AM
  2. Multiple cells, multiple sheets, multiple criteria matching
    By Drudnits1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-17-2014, 12:12 PM
  3. Indexing and matching cells across two sheets
    By Rebecca Gillon in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-27-2013, 11:18 AM
  4. [SOLVED] MATCHING UP OF MULTIPLE SHEETS.....Pls Pls Pls Help.............
    By samuella in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-14-2012, 01:45 AM
  5. MATCHING UP OF MULTIPLE SHEETS.....(Can anyone pls help????)
    By samuella in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-13-2012, 02:18 AM
  6. Merge multiple excels with multiple sheets in a master excel with multiple sheets
    By marchi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-15-2012, 10:37 AM
  7. [SOLVED] Matching Multiple Sheets
    By phil in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-23-2005, 11: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