+ Reply to Thread
Results 1 to 8 of 8

Vlookup formula for more than one result

Hybrid View

  1. #1
    Registered User
    Join Date
    08-13-2004
    Posts
    66

    Vlookup formula for more than one result

    I use (A1) as a search box to look up a reference in column B and return the answer (staff name) in from column C. On some occassions the reference can appear in column B more than once.

    The below formula appears in A2, and will only show the first match if references appear more than once. I would like cell A3 to contain, a formula to show the second match, and cell A4 to show a third match. Does anyone know a formula which can do this?



    =IF($A1=0,"",VLOOKUP(A1,B1:C10,2,FALSE))

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

    Take a look at a previous post ...
    http://www.excelforum.com/showpost.p...98&postcount=5
    HTH
    Carim


    Top Excel Links

  3. #3
    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

  4. #4
    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.

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

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

  6. #6
    Registered User
    Join Date
    08-13-2004
    Posts
    66
    No need, I guess I can download it at home. 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