+ Reply to Thread
Results 1 to 5 of 5

Need to do a lookup to return multiple values from rows to columns

  1. #1
    Registered User
    Join Date
    05-24-2011
    Location
    Louisville, Kentucky
    MS-Off Ver
    Excel 2010
    Posts
    24

    Need to do a lookup to return multiple values from rows to columns

    Hi,

    I've been trying to do an index/if/row/column formula and I can't get it to work. I've attached the workbook in question. On the "page" tab, I have a list of items that are sorted by velocity. In cell C2, I need a formula that will lookup the value in cell A2 and return multiple results in cells C2, D2, E2, etc. from the data in the "Data" tab.

    Example is shown in cell C3-H3.

    Thanks!

    Chad
    Attached Files Attached Files

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Need to do a lookup to return multiple values from rows to columns

    Hi Chad- Full-column references and array formulas don't play well together, so I used named ranges (which can be made dynamic).
    Item=Data!$C$2:$C$16508
    Location=Data!$D$2:$D$16508
    Paste this ARRAY FORMULA* in C2 and copy down:
    Please Login or Register  to view this content.
    *Always press CTRL+SHIFT+ENTER to confirm entry after pasting or editing an ARRAY FORMULA in the Formula Bar.
    When copying the formula to other cells, make sure the copied cell is not part of the Paste Area.
    Attached Files Attached Files
    Last edited by leelnich; 10-19-2017 at 05:48 PM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Need to do a lookup to return multiple values from rows to columns

    Here are the dynamic versions of the named ranges. Select Name Manager on the Formula tab and change the refers to ranges to:
    Item = Data!$C$1:INDEX(Data!$C$1:$C$80000,COUNTA(Data!$C$1:$C$80000))
    Location = Data!$D$1:INDEX(Data!$D$1:$D$80000,COUNTA(Data!$C$1:$C$80000))

    These assume NO BLANKS in Data!column C.

    HERE is a link to a good description of Dynamic Named Ranges.
    Last edited by leelnich; 10-19-2017 at 06:09 PM.

  4. #4
    Registered User
    Join Date
    05-24-2011
    Location
    Louisville, Kentucky
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Need to do a lookup to return multiple values from rows to columns

    You are the greatest!!!!

  5. #5
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Need to do a lookup to return multiple values from rows to columns

    Happy to help! BTW, you need to extend the formula range out a few more columns; some SKUs need the extra space.
    If your requirements have been met, please mark your thread as SOLVED (Thread Tools up top). Thanks -Lee

+ 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. LOOKUP to return values from multiple columns
    By Just Mike in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 06-01-2017, 04:41 PM
  2. Lookup multiple values in different columns and return a single value
    By tanyael in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 07-18-2014, 10:41 AM
  3. Replies: 3
    Last Post: 04-08-2014, 03:11 AM
  4. Replies: 2
    Last Post: 12-04-2013, 04:21 PM
  5. [SOLVED] Is it possible to lookup multiple values and return multiple rows of results?
    By justin11 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2013, 12:02 PM
  6. lookup multiple values in multiple columns to return a result
    By AYAHOO123 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-11-2013, 07:53 PM
  7. [SOLVED] Lookup match index multiple values return other columns
    By martypocock in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 11-07-2012, 10:57 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