Filter, isnumber, search a range of criteria

shakethingsup

Board Regular
Joined
May 21, 2017
Messages
64
Office Version
  1. 365
Platform
  1. Windows
Hi, I'm good with filter, isnumber, search when there is one criteria to search for.

Now I have a range instead of one piece of text to search for.

My original formula for one criteria was in cell D1 with my search criteria in C1:
=Filter(A:A,isnumber(search(C1,B:B)))

Now I have search criteria in C1 and C2:
- I saw a sumproduct formula but that seems to only search one cell at a time
=SUMPRODUCT(--ISNUMBER(SEARCH(C1:C2,B1)))>0

How do I combine all of this together? Filter + isnumber + search + range of criteria to search? I'm trying to search the forums but am missing something.

Thank you in advance,
Mayank
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Try
Excel Formula:
=Filter(A:A,(isnumber(search(C1,B:B)))+(isnumber(search(C2,B:B))))
 
Upvote 0
Thank you for responding! oh you have to do each one individually eh? that would be a pain for more than 2 or 3.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
oh you have to do each one individually eh? that would be a pain for more than 2 or 3.
Would something like one of these be any use to you? Column E searches for the text strings, column G searches for whole words only.
The column C range of things to look for can be as large as you like.

23 05 09.xlsm
ABCDEFG
1DataTextcat
2Data 1dogdogData 1Data 1
3Data 2scatterratData 2Data 5
4Data 3pigData 5
5Data 4horseData 6
6Data 5grey rat
7Data 6rather not
Filter multiple values
Cell Formulas
RangeFormula
E2:E5E2=FILTER(A2:A7,BYROW(B2:B7,LAMBDA(rw,COUNT(SEARCH(C1:C3,rw)))))
G2:G3G2=FILTER(A2:A7,BYROW(B2:B7,LAMBDA(rw,COUNT(SEARCH(" "&C1:C3&" "," "&rw&" ")))))
Dynamic array formulas.
 
Upvote 0
Solution
That worked ridiculously well. I'm going to try and learn this lambda function and how you incorporated 'byrow', 'count'. Brain is still thinking! But thank you!
 
Upvote 0
Hey Peter,
The formula is awesome. Where did you create parameter name "rw"?

Kind Regards

Biz
 
Upvote 0
Hi Peter,

After reviewing the BYRow function, which retrieves all rows and takes a lambda parameter named 'rw', I understand that the 'rw' parameter is used to represent the items that result from the ByRow operation.

Is my understanding correct? Also, I'm curious to know how you learned these amazing formulas.

Kind regards,

Biz
 
Upvote 0

Forum statistics

Threads
1,224,737
Messages
6,180,668
Members
452,992
Latest member
TokugawaIesuma

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