ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Indexing an Array with VLOOKUP (https://www.excelbanter.com/excel-worksheet-functions/17622-indexing-array-vlookup.html)

Joe Blow

Indexing an Array with VLOOKUP
 

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

Jason Morin

One way:

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

Array-entered (press ctrl + shift + enter), whe

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

-----Original Message-----

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
.



All times are GMT +1. The time now is 01:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com