+ Reply to Thread
Results 1 to 4 of 4

Index look-up and return multiple columns

  1. #1
    Registered User
    Join Date
    11-27-2009
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Index look-up and return multiple columns

    Hi,

    I am trying to return several columns of data for a subset of rows from a table that has all rows. I have used the index/match function and made the index function an array. But I can only return the first column. I want all the columns for each row. Thanks in advance for help. See attached example. Data sheet contains all rows and the columns of data. Query contains the subset. Solution contains a manual entry of what I am trying to obtain. I am trying to do this for hundreds of rows and columns so a formula would be better than by hand.

    Jennifer
    Attached Files Attached Files

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Index look-up and return multiple columns

    Hi,

    try this in B1 of Query sheet, copy down and across to column E

    =VLOOKUP($A1,DATA!$A$2:$E$11,COLUMN(),FALSE)

    hth

  3. #3
    Registered User
    Join Date
    11-27-2009
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Index look-up and return multiple columns

    Oh my! That is awesome. It worked. You can't believe how much this has helped me. I've been struggling all day. Thank you so much!!!!

    Jennifer

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Index look-up and return multiple columns

    Just for ref. another alternative is

    B1:
    =INDEX(DATA!B:B,MATCH($A1,DATA!$A:$A,0))
    copied across matrix

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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