+ Reply to Thread
Results 1 to 6 of 6

Vlookup to return multiple corresponding column values

  1. #1
    Registered User
    Join Date
    09-17-2012
    Location
    Connecticut
    MS-Off Ver
    Excel for Mac 2011
    Posts
    15

    Vlookup to return multiple corresponding column values

    Hi All,

    I've been looking on the internet for hours and haven't had any luck.

    I need to update one file with corresponding information with another file. They have one link which is the invoice number.

    I was considering using vlookup to get the whole table array as a result, but for some reason that is not easy.

    Attached are two example worksheets.

    Thank you!
    Eric
    Attached Files Attached Files

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Vlookup to return multiple corresponding column values

    Try this:

    In D2 of the AP Data Workbook:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In E2 of the AP Data Workbook:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Then fill down.

    You could also use this in D2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and this in E2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    - Moo
    Last edited by Moo the Dog; 01-28-2013 at 02:06 PM.

  3. #3
    Registered User
    Join Date
    09-17-2012
    Location
    Connecticut
    MS-Off Ver
    Excel for Mac 2011
    Posts
    15

    Re: Vlookup to return multiple corresponding column values

    That works, but I was hoping for something more automated. I have about 150 columns so I will have to change the column index each time.
    Last edited by ebdmbfan; 01-28-2013 at 05:45 PM.

  4. #4
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Vlookup to return multiple corresponding column values

    You wouldn't necessarily have to - it depends on how your data is set up... if you will be pulling column B, then column C, then column D, etc. for 150 columns, you could use something that increments columns like this:

    =VLOOKUP($B2,'[Invoice Data EX.xlsx]Sheet1'!$A:$EZ,COLUMNS($A:B),0)

    You can put that in D2 of the AP Data workbook, fill down, and fill right, and it will pull the data from each successive column into your workbook. Adjust the column references to suit your needs ($A:$EZ) may be too many, or too few - that would cover 156 columns.

    - Moo

  5. #5
    Registered User
    Join Date
    09-17-2012
    Location
    Connecticut
    MS-Off Ver
    Excel for Mac 2011
    Posts
    15

    Re: Vlookup to return multiple corresponding column values

    That works great, new question. It is returning 0 for blank cells, how can I change that?

  6. #6
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Vlookup to return multiple corresponding column values

    Do you want it to show something or do you want a blank cell?

    - Moo

+ 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