INDEX / SMALL / (match?) partial lookups, multiple criteria

Bronzey

New Member
Joined
Feb 28, 2019
Messages
2
Having no luck getting my head around the order or events and hoping it's easier than I'm making it out.

Two columns- column A is a list of names; column B is either a numerical entry or "tbd" for 'to be decided.

Want to put out a list of names where the first two characters can be the "tb" in "tbd" or the numbers 12 (no matter if the number is 12.5, or 12000).

I've only gotten the 'tbd' working so far but hoping combine both into a single list in a new column (can't use the combined comma'd list as not on Excel 365, only on premise Excel 2016).

=IF(ISERROR(INDEX($A$2:$A$11,SMALL(IF("TBD"=$B$2:$B$11,ROW($B$2:$B$11)-ROW($B$2)+1),ROW(1:1)))),"",INDEX($A$2:$A$11,SMALL(IF("TBD"=$B$2:$B$11,ROW($B$2:$B$11)-ROW($B$2)+1),ROW(1:1))))

Is there an elegant way to use LEFT(x,2) to grab the first two digits in an 'OR' statement so both "TBD" and 12* can then be pulled into a name list in a new column?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Try this:

Excel Workbook
ABC
1NAMEDATANAMES
2AnaTBDAna
3FranktextJohn
4John12000Ron
5RonTBDLisa
6BarttextJan
7Lisa12.5
8Homtext
9JanTBD
10Gabtext
11Esttext
12Westtext
Hoja7
 
Upvote 0
I put a correction:


{=IFERROR(INDEX($A$1:$A$12,SMALL(IF(ISNUMBER(SEARCH({"TB","12"},LEFT($B$2:$B$12,2))), ROW($B$2:$B$12)), ROW()-1)),"")}

Note: Remember it is an arrayformula
 
Upvote 0
Control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX($A$2:$A$100,SMALL(IF(ISNUMBER(MATCH(LEFT($B$2:$B$1100,2),{"TB","12"},0)),ROW($A$2:$A$100)-ROW($A$2)+1),ROWS($1:1))),"")
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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