+ Reply to Thread
Results 1 to 6 of 6

INDEX and MATCH multiple worksheets

  1. #1
    Registered User
    Join Date
    10-27-2014
    Location
    Cambridgeshire, England
    MS-Off Ver
    2007
    Posts
    3

    INDEX and MATCH multiple worksheets

    I am still very much a novice but I have used the INDEX and MATCH functions before and got them to work successfully but this one eludes me should I be using a different formula for this to work.

    The formula will be in my main worksheet, to run down 10,000 rows and to pull information from each employee's record ie: Name, Dates etc daily instances from each employee.

    This formula works with individual worksheets

    =IF(ISNA(INDEX(BloggsA!A:K,MATCH(Serial_No,BloggsA!I:I,0),1))," ",INDEX(BloggsA!A:K,MATCH(Serial_No,BloggsA!I:I,0),1))

    this pulls Name ie: ARTHUR BLOGGS

    =IF(ISNA(INDEX(BloggsA!A:K,MATCH(Serial_No,BloggsA!I:I,0),2))," ",INDEX(BloggsA!A:K,MATCH(Serial_No,BloggsA!I:I,0),2))

    this pulls Date ie: 29/10/2014

    and so on, if there is no match the cell will be blank. In my main worksheet “Schedule” I have a Named Range Serial_No and in all the employee's worksheets I have in a column a dropdown list “Serial_No” by selecting a Serial_No the information from that row in the employee's sheet will populate the row with the matching number in the main worksheet. There is 36 sheets with each employees record, in a separate worksheet “Data” I have created a named range called “SheetList” and this is the formula that I tried with variations that I cannot get to work.

    =IF(ISNA(INDEX("SheetList!A:K",MATCH(Serial_No,"SheetList!I:I",0),1))," ",INDEX("SheetList!A:K",MATCH(Serial_No,"SheetList!I:I",0),1))

    Can anyone explain where I am going wrong I hope this makes sense.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: INDEX and MATCH multiple worksheets

    Hi and welcome to the forum!

    That type of question is a little difficult to answer purely theoretically, i.e. without seeing a workbook. Perhaps you could upload one? It doesn't have to be your actual workbook: a reduced, mock-up version with dummy data and perhaps just 3 or 4 sheets (as opposed to 36) will be fine, providing of course you clearly outline your desired results.

    The FAQ section explains how to upload a workbook.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: INDEX and MATCH multiple worksheets

    Since you are using Excel 2007 version you can use Iferror("YourFormulaHere","ErrorMessage") which suppress the usage of If() and IsNa() usage

    Oopss... We need something like sumproduct to make the indirect redundant...

    Taken back.

    =IFERROR(INDEX(INDIRECT("'"&SheetList&"'!A:K"),MATCH(1,INDIRECT("'"&SheetList&"'!I:I"),0),1),"")
    Last edited by :) Sixthsense :); 10-29-2014 at 07:33 AM.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    10-27-2014
    Location
    Cambridgeshire, England
    MS-Off Ver
    2007
    Posts
    3

    Re: INDEX and MATCH multiple worksheets

    Sixthsense

    Many thanks but I could not get your formula to work.

    XOR LX

    I have attached a cut down version of the file I hope you can see what I'm after.

    In any employee's worksheet I enter dates in the two columns and then in the column with the serial numbers I select a number it then populates the row that matches the number in the main worksheet "Schedule".

    I have filled in the first five rows from individual worksheets which works, and the next five rows with "SheetList" in the formula which I cannot get to work, I need the formula to go through all the worksheets to find the matching number.

    SpreadsheetTest.xlsx

    Regards

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: INDEX and MATCH multiple worksheets

    Thanks.

    I'm still not quite clear what you're trying to do here.

    Are you saying that you simply want all non-blank entries from all five sheets to be populated in the Schedule sheet? There are no criteria to apply governing which of those records should be returned? Simply all?

    Regards

  6. #6
    Registered User
    Join Date
    10-27-2014
    Location
    Cambridgeshire, England
    MS-Off Ver
    2007
    Posts
    3

    Re: INDEX and MATCH multiple worksheets

    Quote Originally Posted by XOR LX View Post
    Thanks.

    Are you saying that you simply want all non-blank entries from all five sheets to be populated in the Schedule sheet? There are no criteria to apply governing which of those records should be returned? Simply all?
    XOR LX

    Sorry if my explanation was not clear, the file I uploaded is a shortened version so if this works I can extend it to more columns. The file I uploaded was just to show that it works with one worksheet name in the formula. What I was hoping for is a formula to look for a match in all the employee's worksheets then show the result in one row for one employee in the "schedule" worksheet with the same Serial_No.

    1. I fill in an employees dates their name is already in column "A" on their worksheet.

    2. I then select a number in sequential order from the dropdown in column I:I on their worksheet.

    3. Then on the worksheet "Schedule" where the formula's are they would populate the cells in the row with the matching Serial_No.


    Regards

+ 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. Index & match SUM multiple worksheets
    By Thito in forum Excel General
    Replies: 12
    Last Post: 04-02-2014, 05:15 PM
  2. Index and Match across multiple worksheets
    By GTHORE in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-09-2013, 01:05 PM
  3. Index match multiple worksheets
    By rrivera616 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-28-2013, 07:03 PM
  4. index and match across multiple worksheets
    By pertenax in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-21-2012, 03:15 AM
  5. Excel 2007 : Index and Match using multiple worksheets
    By lola12345 in forum Excel General
    Replies: 1
    Last Post: 10-27-2011, 03:31 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