Apply Advanced Filter to Range

pto160

Active Member
Joined
Feb 1, 2009
Messages
478
Office Version
  1. 365
Platform
  1. Windows
I have Excel 365.
I have a Bank statement and I have a formula to advance filter on one column. Is it possible to use this with a range?

Book1
ABCD
1Original Formula
2CommentComment 2
3HouseFees
4TractorEngine
5WithdrawalHouse
6
7HouseTRUE
8
9What I like
10CommentComment 2
11HouseFees
12WithdrawalHouse
13
14HouseFALSE
Sheet1
Cell Formulas
RangeFormula
D7D7=ISNUMBER(LOOKUP(9.99E+307,SEARCH($C$7,A3)))
D14D14=ISNUMBER(LOOKUP(9.99E+307,SEARCH($C$14,A3:B5)))


The search function does not seem to work with ranges since I want to return row 3 and row 5 since house is in both of these rows.
Is this possible?
 
Absolutely perfect. (y) :) This is exactly what I am looking for. Thank you so much. This will really help me with a bank report.
 
Upvote 0

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
You're welcome.

However, while I was testing that I removed a check that we had in an earlier formula & forgot to reintroduce it before posting. That means that if cell D3 in the post 10 sample was "Hosehold A" that row would still appear in the results even though the row does not contain any of the actual "words" listed in column G. If you want to only search for those whole words ..

pto160.xlsm
ABCDEFG
2AccountNameTypeCommentComment 2Criteria
31000Bank ACheckingHousehold AFeesHouse
41000Bank ACheckingTractorEngineGlass
51000Bank ACheckingWithdrawalComputerBottle
61000Bank ACheckingGlass ZTable
71000Bank ACheckingDoorBottle C
8
9
10
11
12
13What I like
14Using an Excel Fomrula
15AccountNameTypeCommentComment 2
161000Bank ACheckingGlass ZTable
171000Bank ACheckingDoorBottle C
18
Sheet2
Cell Formulas
RangeFormula
A16:E17A16=FILTER(A3:E7,BYROW(D3:E7,LAMBDA(r,COUNT(MATCH("* "&G3:G5&" *"," "&r&" ",0)))),"")
Dynamic array formulas.
 
Upvote 0
The formula works great. :) (y) Thank you so much for this other option. I will end up using both options depending on the situation. so this is very useful.
 
Upvote 0

Forum statistics

Threads
1,215,080
Messages
6,123,013
Members
449,093
Latest member
ikke

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