create a list of values using index, match

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
675
Office Version
  1. 2019
Platform
  1. Windows
Hello,
How can I turn the formula below to a list of values beginning at J22?
I want to list all matches that contain "uranium".

INDEX($A$9:$A$15,MATCH("*uranium*",$B$9:$B$15,0))
this is listing the first value that contains 'uranium', but I want ALL values that contains 'uranium'.
looking for any formula that completes the above.

thank you
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Excel 2019 doesn't have FILTER. Try:

Book5
ABIJ
91uranium
102steel
113red uranium
124gold
135uranium mine
146pink
157a uranium factory
16
17
18
19
20
21Results
221
233
245
257
26 
Sheet3
Cell Formulas
RangeFormula
J22:J26J22=IFERROR(INDEX($A:$A,AGGREGATE(15,6,ROW($A$9:$A$15)/(ISNUMBER(SEARCH("uranium",$B$9:$B$15))),ROWS($J$22:$J22))),"")
 
Upvote 0
Solution
Excel 2019 doesn't have FILTER. Try:

Book5
ABIJ
91uranium
102steel
113red uranium
124gold
135uranium mine
146pink
157a uranium factory
16
17
18
19
20
21Results
221
233
245
257
26 
Sheet3
Cell Formulas
RangeFormula
J22:J26J22=IFERROR(INDEX($A:$A,AGGREGATE(15,6,ROW($A$9:$A$15)/(ISNUMBER(SEARCH("uranium",$B$9:$B$15))),ROWS($J$22:$J22))),"")
Thank you.
I have to remember 'isnumber', doesn't have to be a number.
 
Upvote 0
Glad we could help.

In this case, SEARCH will look for "uranium" in the text, and if it's found, will return the location in the text where it starts (a number). If it's not found, it returns an error. So ISNUMBER checks to see if the result of SEARCH is a number ("uranium" is found somewhere), or an error (not found). It's not checking to see if the text itself is a number. (Although ISNUMBER can do that if applied directly to the text.)
 
Upvote 0

Forum statistics

Threads
1,223,249
Messages
6,171,031
Members
452,374
Latest member
keccles

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