Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default 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),VLOOK UP(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),INDE X(Sheet1!C$1:C$100,SMALL(IF(Sheet1!A$1:A$100=A$1,R OW(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" wrote in
message ...

I have something like this:

=If(A1=VLOOKUP(A1,'SHEET'!A$1:D$100,1,FALSE),VLOOK UP(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



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
javino
 
Posts: n/a
Default vlookup:same lookup_value, different returns


I have something like this:

=If(A1=VLOOKUP(A1,'SHEET'!A$1:D$100,1,FALSE),VLOOK UP(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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
javino
 
Posts: n/a
Default vlookup:same lookup_value, different returns


Thank you Biff! I'll check it out.


--
javino
------------------------------------------------------------------------
javino's Profile: http://www.excelforum.com/member.php...o&userid=29678
View this thread: http://www.excelforum.com/showthread...hreadid=493983

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting multiple variables returns #VALUE was Excel Discussion (Misc queries) 1 August 12th 05 02:13 AM
C1 appears blank, but ISBLANK(c1) returns false Sam Excel Worksheet Functions 4 May 18th 05 01:26 PM
Problem with GEOMEAN - returns #NUM error Dan Knight Excel Worksheet Functions 6 February 17th 05 11:40 PM
When I enter a number in an empty cel, de cel returns the value d. Paul KdN Excel Discussion (Misc queries) 2 January 13th 05 09:23 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 07:49 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"