Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
rich
 
Posts: n/a
Default continue VLOOKUP to next value

I'm using VLOOKUP function to search through col A to extract data from
col B within the same row. However, there are multiple data in col A,
which fulfil the condition defined in VLOOKUP. The function finds only
the first cell that fulfills the condition. Is there any way how to
repeat/continue VLOOKUP search for next matching value bellow in col A
and thus place several extracted values from col B to new a column?
Thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default continue VLOOKUP to next value

Here's a play using non-array formulas ..

Assume source data in cols A and B, row2 down to row100
Input the lookup value in C1

Put in C2:
=IF(ISERROR(SMALL(D:D,ROW()-1)),"",INDEX(B:B,MATCH(SMALL(D:D,ROW()-1),D:D,0)))

Put in D2: =IF(A2="","",IF(A2=$C$1,ROW(),""))
(Leave D1 empty)

Select C2:D2, fill down to D100
(cover the extent of the source data)

Col C will return the results from col B for the lookup value input in C1,
with all results neatly bunched at the top

(You could also use data filter autofilter on col A)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"rich" wrote:
I'm using VLOOKUP function to search through col A to extract data from
col B within the same row. However, there are multiple data in col A,
which fulfil the condition defined in VLOOKUP. The function finds only
the first cell that fulfills the condition. Is there any way how to
repeat/continue VLOOKUP search for next matching value bellow in col A
and thus place several extracted values from col B to new a column?
Thanks


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
VLOOKUP Problem Ian Excel Discussion (Misc queries) 3 April 6th 06 06:47 PM
VLOOKUP Problem (limitation)? SnotRockit Excel Worksheet Functions 3 November 7th 05 03:06 PM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 04:51 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM


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