filter function (excel 365) with wildcard?

daveyc18

Well-known Member
Joined
Feb 11, 2013
Messages
746
Office Version
  1. 365
  2. 2010
=FILTER('MTBRPT Clrng Accts'!A1:N100000,('MTBRPT Clrng Accts'!N1:N100000="092")*('MTBRPT Clrng Accts'!G1:G100000="*CLEAR*"))

trying to filter column N for "092" and pick up any rows that contain "clear" in column G

formula doesnt seem to work
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Change it to
=FILTER('MTBRPT Clrng Accts'!A1:N100000,('MTBRPT Clrng Accts'!N1:N100000="092")*(isnumber(search("clear",'MTBRPT Clrng Accts'!G1:G100000))))
 
Upvote 0
Nothing wrong with the formula suggested but if you wanted to shorten it a bit
=LET(r,'MTBRPT Clrng Accts'!A1:N100000,FILTER(r,(TAKE(r,,-1)="092")*ISNUMBER(SEARCH("clear",INDEX(r,0,7)))))

My main reason for posting though is that we don't know anything about the actual data in column G so just checking that it is the string "clear" that you are interested in and not the word "clear"

The suggested formulas would return rows with items in column G that included these words.
unclear
clearances
thermonuclear
denuclearised
etc

Just checking that is what you would want?
 
Upvote 0

Forum statistics

Threads
1,223,608
Messages
6,173,325
Members
452,510
Latest member
RCan29

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