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?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Try this with D6:D7 as your advanced filter criteria range.

23 07 22.xlsm
ABCD
2CommentComment 2
3HouseFees
4TractorEngine
5WithdrawalHouse
6
7House1
8
Adv Fltr
Cell Formulas
RangeFormula
D7D7=SEARCH(" "&C$7&" "," "&TEXTJOIN(" ",1,A3:B3)&" ")
 
Upvote 0
Thanks so much. Absolutely fantastic. (y)
The thing is that the bank report goes from column A to AJ and from row 2 to 200, so it will exceed the textjoin character limit. Column T to AJ are only relevant. I was thinking of adding another column that can look at each row from column D to E in my example and see if the word is there from the criteria list. It would put 1 or 0 or true/false if the word is there.

Book1
ABCDEF
2AccountNameTypeCommentComment 2What I like
31000Bank ACheckingHouseFeesTRUE
41000Bank ACheckingTractorEngineFALSE
51000Bank ACheckingWithdrawalComputerFALSE
61000Bank ACheckingGlassTableTRUE
71000Bank ACheckingDoorBottleTRUE
8
9Criteria
10House
11Glass
12Bottle
Sheet2
 
Upvote 0
If you are just looking for the exact word in a cell then try this with the yellow criteria range.

23 07 22.xlsm
ABCDEFG
2AccountNameTypeCommentComment 2
31000Bank ACheckingHouseFees
41000Bank ACheckingTractorEngine
51000Bank ACheckingWithdrawalComputer
61000Bank ACheckingGlassTable
71000Bank ACheckingDoorBottle
8
9Criteria
10House1
11Glass
12Bottle
Adv Fltr
Cell Formulas
RangeFormula
G10G10=COUNT(MATCH(F$10:F$12,D3:E3,0))
 
Upvote 0
Thank you. My fault for not saying that the words in the comments columns are part of a larger text string. My apologies. Here is the revised spreadsheet.

Book1
ABCDEFG
2AccountNameTypeCommentComment 2What I am gettingWhat I like
31000Bank ACheckingHouse AFees#VALUE!TRUE
41000Bank ACheckingTractorEngine#VALUE!FALSE
51000Bank ACheckingWithdrawalComputer#VALUE!FALSE
61000Bank ACheckingGlass ZTable#VALUE!TRUE
71000Bank ACheckingDoorBottle C#VALUE!TRUE
8
9Criteria
10House
11Glass
12Bottle
Sheet2
Cell Formulas
RangeFormula
F3:F7F3=SEARCH(F10:F12,D3:E3)
 
Upvote 0
This should look for the whole word so should exclude items like "Household items" since the word "House" does not exist. Is that what you would want?

23 07 22.xlsm
ABCDEFG
2AccountNameTypeCommentComment 2
31000Bank ACheckingHouse AFees
41000Bank ACheckingTractorEngine
51000Bank ACheckingWithdrawalComputer
61000Bank ACheckingGlass ZTable
71000Bank ACheckingDoorBottle C
8
9Criteria
10House1
11Glass
12Bottle
Adv Fltr
Cell Formulas
RangeFormula
G10G10=COUNT(MATCH("* "&F$10:F$12&" *"," "&D3:E3&" ",0))
 
Upvote 0
Thank you so much. This is exactly what I want. It works great. :) (y)
This will really help me extract data from a bank report.
 
Upvote 0
You're welcome. Glad we got there in the end. :)
 
Upvote 0
This is great for advanced filtering. Is there a way to use a formula to extract the same results maybe using the filter function?

Book1
ABCDE
2AccountNameTypeCommentComment 2
31000Bank ACheckingHouse AFees
41000Bank ACheckingTractorEngine
51000Bank ACheckingWithdrawalComputer
61000Bank ACheckingGlass ZTable
71000Bank ACheckingDoorBottle C
8
9
10
11
12
13What I like
14Using an Excel Fomrula
15AccountNameTypeCommentComment 2
161000Bank ACheckingHouse AFees
171000Bank ACheckingGlass ZTable
181000Bank ACheckingDoorBottle C
Sheet1


Once again thanks for all your help.
 
Upvote 0
Is this what you mean?

pto160.xlsm
ABCDEFG
2AccountNameTypeCommentComment 2Criteria
31000Bank ACheckingHouse 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 ACheckingHouse AFees
171000Bank ACheckingGlass ZTable
181000Bank ACheckingDoorBottle C
Sheet2
Cell Formulas
RangeFormula
A16:E18A16=FILTER(A3:E7,BYROW(D3:E7,LAMBDA(r,COUNT(MATCH("*"&G3:G5&"*"," "&r&" ",0)))),"")
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,089
Messages
6,123,058
Members
449,091
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