+ Reply to Thread
Results 1 to 3 of 3

LOOKUP function for multiple rows?

  1. #1
    Registered User
    Join Date
    10-02-2007
    Posts
    32

    LOOKUP function for multiple rows?

    Test Sheet 1.xlsxTest Sheet 2.xlsx

    Hello again, Excel Forum!

    I have attached two files... Test Sheet 1 and Test Sheet 2.

    I am trying to populate Test Sheet 1 with the info from Test Sheet 2 using the Equipment Number as the lookup value.

    Normally, this isn't much of an issue, as I have often used the VLOOKUP function to search other sheets when there are unique numbers....

    However, in this situation, Test Sheet 2 has my lookup value appearing 30 times on different rows.

    Have any of you come across this issue before?

    Any help/advice is appreciated.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: LOOKUP function for multiple rows?

    Since the rows of workbook 2 correspond to the columns of workbook 1,

    1. Maybe with both workbooks opened, in B2 of Sheet1:
    Please Login or Register  to view this content.
    copied across to column AF, then down.

    2. When you close workbook #2 the formula will change to include the folder info:

    =INDEX('C:\Downloads.New\[Test Sheet 2.xlsx]Sheet1'!$A:$D,MATCH($A2,'C:\Downloads.New\[Test Sheet 2.xlsx]Sheet1'!$A:$A,0)+COLUMN(B$1)-2,4)

    You might use IFERROR to get rid of NA'a when there are no ID nums in column A
    Last edited by protonLeah; 01-08-2015 at 06:31 PM.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    10-02-2007
    Posts
    32

    Re: LOOKUP function for multiple rows?

    Thank you very much... Still not sure exactly WHY it's working, but it's working!

+ 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. Replies: 3
    Last Post: 04-08-2014, 03:11 AM
  2. [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
  3. Replies: 3
    Last Post: 09-30-2011, 02:50 AM
  4. Lookup in multiple rows
    By tomjoe in forum Excel General
    Replies: 5
    Last Post: 10-03-2010, 04:14 PM
  5. Lookup with multiple rows.
    By danl8619 in forum Excel General
    Replies: 2
    Last Post: 09-22-2009, 07:47 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