Return nth values in a lookup

dracer

Board Regular
Joined
Jul 30, 2014
Messages
71
Hi there. I have a table with the customer number in column A and in Column B is the note type. There could be more than 1 note type so the customer number would appear more than once in column A. A Vlookup will only return the first value to the right. How can I return the second and third values in column B that are below that first value. I presume I need an array formula that would include more than one cell. I'm stumped by this. Does anyone have any suggestions? :confused:
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
I don't know if this is the best formula out there, but it does appear to work.

Suppose you're looking for "CUST999" in column A. Then try this array formula:

Rich (BB code):
{=INDEX(B:B,LARGE((A:A="CUST999")*ROW(A:A),1+SUM(N(A:A="CUST999"))-1))}

At the moment, the formula is equivalent to a VLOOKUP. However, if you change the number highlighted in red to 2, then it will return the second instance; if you change it to 3, then it will return the third instance; and so on...
 
Upvote 0

Forum statistics

Threads
1,203,232
Messages
6,054,274
Members
444,713
Latest member
SAK

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top