Help with array formula

alombia

Board Regular
Joined
Jan 14, 2016
Messages
89
Hi,

I am using the following array formula to retrieve data from a Table on a sheet.

{=IFERROR(INDEX(MasterTable!$C$2:$C$564,SMALL(IF(MasterTable!$A$2:$A$564=$BR$2,ROW(MasterTable!$A$2:$A$564)-1),ROW(MasterTable!1:2))),"")}

$BR$2 contains the matching criteria. The formula works absolutely fine. However, I would like it to retrieve data with a partial match.
Currently, MasterTable!A2:A564 contains a mixture of numbers and text. Usually in the form of 7, 8, 9, 10, 10a, 11b, 12, 10c etc.
I would like to enter, say, 10 in $BR$2 and retrieve data matching both 10, 10a, 10b etc. Currently, I have to put an exact match in BR2 for the formula to work. In other words, if I put 10, it will ONLY retrieves rows matching 10.

BTW, the original formula was developed by a great person here on the forum :)

Thanks in advance.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Just changing your original formula slightly you could try:

=IFERROR(INDEX(MasterTable!$C$2:$C$564,SMALL(IF(LEFT(MasterTable!$A$2:$A$564,LEN($BR$2))=""&$BR$2,ROW(MasterTable!$A$2:$A$564)-1),ROW(MasterTable!1:2))),"")
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,242
Members
452,623
Latest member
russelllowellpercy

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