+ Reply to Thread
Results 1 to 3 of 3

vlookup:same lookup_value, different returns

  1. #1
    Registered User
    Join Date
    12-15-2005
    Posts
    2

    [b]vlookup:same lookup_value, different returns[/b]

    I have something like this:

    =If(A1=VLOOKUP(A1,'SHEET'!A$1:D$100,1,FALSE),VLOOKUP(A1,'SHEET'!A$1:G$100,3,FALSE),"")

    If the condition is true more than once, how can it return the additional corresponding values of column 3?

    BTW :is it redundant to use the condition and then use a FALSE range lookup?
    Last edited by javino; 12-15-2005 at 07:47 PM.

  2. #2
    Biff
    Guest

    Re: vlookup:same lookup_value, different returns

    Hi!

    In general, there are better ways to write this formula:

    =If(A1=VLOOKUP(A1,'SHEET'!A$1:D$100,1,FALSE),VLOOKUP(A1,'SHEET'!A$1:G$100,*3*,FALSE),"")

    Try one of these:

    =IF(ISNA(MATCH(A1,Sheet1!A$1:A$100,0)),"",VLOOKUP(A1,Sheet1!A$1:G$100,3,0))

    =IF(COUNTIF(Sheet1!A$1:A$100,A1),VLOOKUP(A1,Sheet1!A$1:G$100,3,0),"")

    If there are multiple instances of the lookup value use this formula entered
    as an array using the key combo of CTRL,SHIFT,ENTER:

    =IF(ROWS($1:1)<=COUNTIF(Sheet1!A$1:A$100,A$1),INDEX(Sheet1!C$1:C$100,SMALL(IF(Sheet1!A$1:A$100=A$1,ROW(A$1:A$100)-ROW(A$1)+1),ROWS($1:1))),"")

    Copy down until you bet blanks.

    > BTW :is it redundant to use the condition and then use a FALSE range
    > lookup?


    Not sure what you mean by that ???

    Biff

    "javino" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I have something like this:
    >
    > =If(A1=VLOOKUP(A1,'SHEET'!A$1:D$100,1,FALSE),VLOOKUP(A1,'SHEET'!A$1:G$100,*3*,FALSE),"")
    >
    > If the condition is true more than once, how can it return the
    > additional corresponding values of column 3?
    >
    > BTW :is it redundant to use the condition and then use a FALSE range
    > lookup?
    >
    >
    > --
    > javino
    > ------------------------------------------------------------------------
    > javino's Profile:
    > http://www.excelforum.com/member.php...o&userid=29678
    > View this thread: http://www.excelforum.com/showthread...hreadid=493983
    >




  3. #3
    Registered User
    Join Date
    12-15-2005
    Posts
    2

    Thanks!

    Thank you Biff! I'll check it out.

+ 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