Indexing with mutiple results - dynamic source

doofusboy

Well-known Member
Joined
Oct 14, 2003
Messages
1,325
Thanks to picking the brains of the good folks on this board through searching previous threads, I was able to come up with a formula that returns multiple results when indexing rather than just the first match.

Now the problem I have is that my source table is going to vary in size. My source table in the formula I got working below is a dynamically named range 'ImportedData'. The data in this table will always start on Row 8 but the last row of the table will vary, so the bold/red areas of the formula need to be dynamic.

Can anyone suggest how I might modify this formula to allow for the dynamic table size?

Rich (BB code):
=IF(ROWS(B$19:B19)<=L$19,INDEX('Empower Data'!$D$8:$D$19,SMALL(IF('Empower Data'!$F$8:$F$19=E$17,ROW('Empower Data'!$D$8:$D$19)-ROW('Empower Data'!$D$8)+1),ROWS(B$19:B19))),"")

Any help is appreciated.
 
OK, got it sorted. Gave a range name to the first cell of each column in the source table and used that in place of the absolute cell reference.

Life is good and thanks once again Peter, your help is appreciated.
 
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,215,516
Messages
6,125,280
Members
449,220
Latest member
Excel Master

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