+ Reply to Thread
Results 1 to 8 of 8

Vlookup formula for more than one result

Hybrid View

  1. #1
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    Entered as an array shft ctrl enter

    =IF(ISERROR(SMALL(IF($B$1:$B$10=$A$1,ROW($B$1:$B$10),""),ROW(A1))),"",OFFSET($C$1,SMALL(IF($B$1:$B$10=$A$1,ROW($B$1:$B$10),""),ROW(A1))-1,0))

    regards

    Dav

  2. #2
    Registered User
    Join Date
    08-13-2004
    Posts
    66
    Thanks for both responses. But....



    B col C Col

    A PETER
    B MARK
    C LEWIS
    D JOHN
    E RAPHAEL
    F SARAH
    G JUNE
    H TANIA
    B KEVIN
    J SUZIE


    DAV

    Your formula show "MARK" as a result it should show "KEVIN".


    CARIM

    I cannot download zip files on my work PC.



    I've put B into A1, while my formula in A2 gives "MARK", A3 will need to show KEVIN
    Last edited by DKerr; 02-01-2007 at 08:26 AM.

  3. #3
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Do you want me to email you the zipped file ...?
    HTH
    Carim


    Top Excel Links

  4. #4
    Registered User
    Join Date
    08-13-2004
    Posts
    66
    No need, I guess I can download it at home. Thanks

  5. #5
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    I gave you a response for the first answer so for the mark, if you copy it down to the rows below it will give kevin and then blanks. The formual was to replace the vlookup for the first match as well


    Regards

    Dav

  6. #6
    Registered User
    Join Date
    08-13-2004
    Posts
    66
    My mistake, works perfectly, thanks.

+ 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