Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Vlookup more result

Hi, everyone!

I use Vlookup for searching a cell value, but the function always shows only
the first result, that found. I would need the other values too, that matches
my criteria. How can i see all the results, not only the first?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Vlookup more result

Hi sheva

See <Arbitrary Lookups
http://www.cpearson.com/excel/lookups.htm#DoubleLookup

But maybe you can use DataAutoFilter ?



--
Regards Ron de Bruin
http://www.rondebruin.nl


"sheva" wrote in message ...
Hi, everyone!

I use Vlookup for searching a cell value, but the function always shows only
the first result, that found. I would need the other values too, that matches
my criteria. How can i see all the results, not only the first?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 783
Default Vlookup more result

sheva wrote:
Hi, everyone!

I use Vlookup for searching a cell value, but the function always shows only
the first result, that found. I would need the other values too, that matches
my criteria. How can i see all the results, not only the first?


With your data in a range named "Tbl", the lookup value in a cell named
"luVal" and the number of the column in the table from which the sought
value is to be returned in a cell named "luCol", then using only
built-in functions, enter and fill down

=IF(ROWS(A$1:A1)<=COUNTIF(INDEX(Tbl,0,1),luVal),IN DEX(INDEX(Tbl,0,luCol),SMALL(IF(INDEX(Tbl,0,1)=luV al,ROW(INDIRECT("A1:A"&ROWS(Tbl)))),ROWS(A$1:A1))) ,"")


or if the functions in the freely downloadable file at
http://home.pacbell.net/beban are available to your workbook, enter and
fill down

=IF(ISERROR(INDEX(vlookups(luVal,Tbl,luCol),ROW(A1 ))),"",INDEX(vlookups(luVal,Tbl,luCol),ROW(A1)))

Alan Beban
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
#n/a result for vlookup adimar Excel Worksheet Functions 5 March 28th 08 08:58 PM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
vlookup shows result one cell above the expected result Marie Excel Worksheet Functions 7 November 14th 06 02:52 AM
vlookup based on random result returns incorrect result rickat Excel Worksheet Functions 1 December 6th 05 01:16 PM
vlookup result icebreaker914 Excel Programming 3 July 10th 05 03:04 AM


All times are GMT +1. The time now is 08:44 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"