+ Reply to Thread
Results 1 to 4 of 4

Vlookup multiple data

  1. #1
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Vlookup multiple data

    My data is as below,

    ABC Pte Ltd
    INV123
    INV222
    INV172

    BBB Pte Ltd
    INV291
    INV281


    How is it able to have a Vlookup function that will give me the list of the invoices of that company?
    FYI, the company name is in Column A while Invoice number is in Column B. I try using vlookup, however, it only generated the first invoice.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Vlookup multiple data

    Try adding helper columns to help identify the relevant rows first.

    So if you have your data starting in say A2 and B2, then in C2 enter:

    =IF(B2="","",INDEX($A$2:A2,MATCH(REPT("Z",255),$A$2:$A2)))

    copied down

    in D2 enter:

    =IF(C2=Sheet2!A$1,COUNT($D1:$D$1)+1,"")

    Where Sheet2!A1 contains the Company you want to search for.

    Then in Sheet2, enter:

    =IFERROR(INDEX(Sheet1!B:B,MATCH(ROWS($B$1:$B1),Sheet1!$D:$D,0)),"")

    copied down, where Sheet1 contains the database...
    Last edited by NBVC; 03-19-2012 at 12:08 PM. Reason: Formula adjustments
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Re: Vlookup multiple data

    Hey, i tried. But however, it does not seems to work. Mind if you email me a sample?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Vlookup multiple data

    See attached.
    Attached Files Attached Files

+ 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