+ Reply to Thread
Results 1 to 4 of 4

Use index/match to return a list of values

  1. #1
    Registered User
    Join Date
    01-13-2014
    Location
    Nowhere, KS
    MS-Off Ver
    Excel 2007
    Posts
    7

    Use index/match to return a list of values

    Is there a way to use some combination of index/match/lookup functions to be able to return a list of values instead of just one cell? I'm trying to create a spreadsheet that allows the user to program a sequence of equipment operations. The way the logic works, there are several lists of equipment operation orders. The lists can be called A, B, C, D, etc. Each list will have a list of equipment operations that can be changed in another part of the spreadsheet and won't be in numerical order. For example, list A might be: Pump 3, Pump 1, Pump 5, Pump 4. You can choose to run different sequences of lists so for example, I might program it to run List B, List A, List C. I have the spreadsheet setup so that it shows a table of what order of equipment operations have been selected for each list. Row 1 is the name of each list: A, B, C, D, etc. Column A shows all the equipment operations on list A, Column B shows list B, etc.


    I'd like to create another table where you can type in the name of the list in the first column and the list of equipment operations fills in automatically beside it (horizontally). That way, the user could type in their desired list sequence in the first column and see the complete equipment operation list that results.

    For example:

    Column A would be where the desired lists are entered.

    A1: List (Header)
    A2: B
    A3: A
    A4: C

    Columns B-E would show the list of equipment operations associated with each list. Cell B3 would show Pump 3, C3 would be Pump 1, D3 would be Pump 5, E3 would be Pump 4. And so on, and so forth.

    This simplified example is attached. How do I set up a lookup/match/index function to return all the values for each list? I don't even know where to start since usually these functions only return one value.

    Any help would be greatly appreciated!
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Use index/match to return a list of values

    In cell B14 of Sheet2 use

    =IF(INDEX(Sheet1!$A:$D,COLUMN(B$1),MATCH($A14,Sheet1!$A$1:$D$1,0))="","",INDEX(Sheet1!$A:$D,COLUMN(B$1),MATCH($A14,Sheet1!$A$1:$D$1,0)))

    Copy down and across
    Life's a spreadsheet, Excel!
    Say thanks, Click *

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

    Re: Use index/match to return a list of values

    B2:

    =INDEX(Sheet1!$A$2:$D$5,COLUMN(A1),MATCH($A2,Sheet1!$A$1:$D$1,0))

    And copy down and over as needed
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Registered User
    Join Date
    01-13-2014
    Location
    Nowhere, KS
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Use index/match to return a list of values

    Thanks, Ace and Daffodil! It looks like both of your formulas work, but Daffodil's was easier for me to follow and modify for the real spreadsheet so it is the one I'm using. Thanks for your help!

+ 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] Vlookup/index/match to return all values that match
    By Asil01 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-09-2014, 12:49 PM
  2. Using Index/Match to return multiple values for one match
    By superboy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-10-2014, 06:21 PM
  3. VLOOKUP/INDEX/MATCH to return all values that match
    By lijia00 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2014, 11:56 AM
  4. Replies: 2
    Last Post: 02-02-2013, 05:24 PM
  5. Return list of values index/match
    By spivieguy1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-26-2009, 02:49 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