+ Reply to Thread
Results 1 to 4 of 4

Use a VLookup to return multiple values

Hybrid View

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

    Re: Use a VLookup to return multiple values

    See attached:

    Formula in D1:

    =COUNTIF(data!$A$2:$A$15,B1)
    to give count of matches

    Formula in A5:

    =IF(ROWS($A$1:$A1)>$D$1,"",INDEX(data!B$2:B$15,SMALL(IF(data!$A$2:$A$15=$B$1,ROW(data!$A$2:$A$15)-ROW(data!$A$2)+1),ROWS($A$1:$A1))))
    confirmed with CTRL+SHIFT+ENTER not just ENTER and copied down to extract first column of matching info.

    Formula in B5:

    =IF(A5="","",VLOOKUP($A5,data!$B$2:$E$15,COLUMNS($A$1:B$1),FALSE))
    normally Entered and copied down and across the rest of the table.

    Note: If you change data ranges in the formula in A5, you will need to re-confirm with CSE keys to get the { } brackets and then copy down...
    Attached Files Attached Files
    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.

+ 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