Indexing an Array with VLOOKUP

J

Joe Blow

Hi,

I have an array with multiple occurrences of my lookup value that I
would like to summarize in another table.

Is there a way to index to the next occurrence of the lookup value
once vlookup has found the first occurrence?

Appreciate any help,
Joe
 
J

Jason Morin

One way:

=INDEX(B1:B10,SMALL(IF(A1:A10="X",ROW(B1:B10)),N))

Array-entered (press ctrl + shift + enter), where:

B1:B10 = range that contains value to return
A1:A10 = range to search for lookupvalue
X = lookup value
N = positive integer representing nth occurence (e.g., 2
= 2nd occurence, if there is one)

HTH
Jason
Atlanta, GA
 

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