Vlookup with multiple results

M

M.A.Tyler

The data is on Sheet h! A2:DN2009, however I'm only conserned with two
columns, C & F. Would like to "lookup" all instances of 1 or 2 or 3....(and
so on) from Sheet h!C2:C2009, and populate Sheet1!A1:A25 with the data from
the coresponding rows from Sheet h! Column F. (There will never be more than
25 results) There is room for a drop down on Sheet1! A1 that would allow for
the selection of the lookup value (between 1 & 15).

Looking for suggestions!

Thanks,

M.A.Tyler
 
M

M.A.Tyler

Thanks very much for the guidence, very helpful. Although I don't understand
the Index portion. If you recall I need to index column F, but the example
shown indexes the entire array? For my purposes, that would be Sheet h!
C2:F2009? Would it be possible to explain the index portion? Perhaps
including the "2" at the end?

Thanks for your trouble!
 
T

T. Valko

Would like to "lookup" all instances of 1 or 2 or 3

Is your date sorted or grouped together so that all the 1s, 2s, 3s etc are
in a contiguous range or are they in random locations?

Grouped...Random
1...............2
1...............1
1...............2
2...............3
2...............3
3...............1
3...............3
3...............1
There will never be more than 25 results

But there may be less?
 
M

M.A.Tyler

Yes and yes
contiguous & could be less.

T. Valko said:
Is your date sorted or grouped together so that all the 1s, 2s, 3s etc are
in a contiguous range or are they in random locations?

Grouped...Random
1...............2
1...............1
1...............2
2...............3
2...............3
3...............1
3...............3
3...............1


But there may be less?
 
T

T. Valko

Try this....

rng1 refers to Sheet h C2:C2009
rng2 refers to Sheet h F2:F2009

The sheet where you want this data extracted to:

A1 = lookup value (could be a drop down list)

Enter this formula in A2 and copy down 25 rows to A26:

=IF(ROWS(A$2:A2)<=COUNTIF(rng1,A$1),INDEX(rng2,MATCH(A$1,rng1,0)+ROWS(A$2:A2)-1),"")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top