lookup simular values, return multiple variants

nkaretnikov

New Member
Joined
Aug 25, 2013
Messages
1
Hello!
I found a way with using INDEX and SMALL formulas to return multiple occurencies of the string in many rows. The formula is simple and a power tool, here is an example
Code:
=INDEX($B$2:$B$16;SMALL(IF($D$2=A2:A16;ROW(B2:B16)-1;"");ROW()-5))
The only thing that bugs me it this last ROW()-5. Each time I move this array formula I should not forget to change manually number of rows to subtract from current row.
Is there a way to get up-top row number in array formulas?
Thank you!
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,215,701
Messages
6,126,308
Members
449,308
Latest member
VerifiedBleachersAttendee

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