Use Filter Function + Wildcards + List (Named Range)

zero269

Active Member
Joined
Jan 16, 2023
Messages
253
Office Version
  1. 365
Platform
  1. Windows
Hello,

I'm not having any luck using wildcards to return values from a table of data based on a list in a Named Range.

I'm using the following to return a list of books that are part of a given Series. However, due to multiple values in the Series column, I need to be able to use wildcards. In my sample data, we can see that nothing was returned for the "Notebook of Doom" series. That's because the source data has either of the two values shown to the right of the Sample Data.
I tried modifying the search criteria using "*" & l_SeriesActive & "*" to no avail.

Any help would be greatly appreciated, Thank you...
Reading Tracker.xlsm
ABCDEF
1SAMPLE DATANAMED RANGE
2QuizBook No.TitleSeriesSeries
31223431Saving Mister NibblesElliot's Park;Elliot's Park;
41238912Haunted HikeElliot's Park;Notebook of Doom;
51299633Walnut CupElliot's Park;Trouble at Table 5;
65073021Trouble at Table 5: The Candy CaperTrouble at Table 5;
75073012Trouble at Table 5: Busted by BreakfastTrouble at Table 5;Need Wildcards to return:
85118793Trouble at Table 5: The Firefly FixTrouble at Table 5;Notebook of Doom; Branches;
95118784Trouble at Table 5: I Can't Feel My FeetTrouble at Table 5;Branches; Notebook of Doom;
105191645Trouble at Table 5: Trouble to the MaxTrouble at Table 5;
115202036Trouble at Table 5: Countdown to DisasterTrouble at Table 5;
Series
Cell Formulas
RangeFormula
A3:D11A3=LET(x,FILTER(CHOOSECOLS(t_Books,1,23,2,5),COUNTIFS(l_SeriesActive,t_Books[Series])),SORT(x,{4,2}))
Dynamic array formulas.
Named Ranges
NameRefers ToCells
l_SeriesActive=t_SeriesActive[Series]A3
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
I can't test this since I don't have the tables set up but hopefully I have all the brackets in the right places.
Excel Formula:
=LET(x,FILTER(CHOOSECOLS(t_Books,1,23,2,5),BYROW(--ISNUMBER(SEARCH(TOROW(l_SeriesActive),t_Books[Series])),LAMBDA(r,SUM(r )))),SORT(x,{4,2}))
 
Upvote 0
Solution
I can't test this since I don't have the tables set up but hopefully I have all the brackets in the right places.
Excel Formula:
=LET(x,FILTER(CHOOSECOLS(t_Books,1,23,2,5),BYROW(--ISNUMBER(SEARCH(TOROW(l_SeriesActive),t_Books[Series])),LAMBDA(r,SUM(r )))),SORT(x,{4,2}))
Hi Alex,

All I can say is WOW! and THANKS a Million!

I really wish I understood all this better. I was completely off.
This is really a big help and will help make tracking the Series for each child so much easier!

Here are the results using your solution which now includes all the books in the "Notebook of Doom" Series:
Reading Tracker.xlsm
ABCD
15Alex Blakenburg SOLUTION
16QuizBook No.TitleSeries
171611912Day of the Night CrawlersBranches; Notebook of Doom;
181651054Chomp of the Meat-Eating VegetablesBranches; Notebook of Doom;
191798529Rumble of the Coaster GhostBranches; Notebook of Doom;
2018326310Snap of the Super-GoopBranches; Notebook of Doom;
2118720911Sneeze of the Octo-SchnozzBranches; Notebook of Doom;
221223431Saving Mister NibblesElliot's Park;
231238912Haunted HikeElliot's Park;
241299633Walnut CupElliot's Park;
251591401Rise of the Balloon GoonsNotebook of Doom; Branches;
261620933Attack of the Shadow SmashersNotebook of Doom; Branches;
271698895Whack of the P-RexNotebook of Doom; Branches;
281721626Pop of the Bumpy MummyNotebook of Doom; Branches;
291736617Flurry of the SnombiesNotebook of Doom; Branches;
301767308Charge of the Lightning BugsNotebook of Doom; Branches;
3118990312March of the VanderpantsNotebook of Doom; Branches;
3219303013Battle of the Boss-MonsterNotebook of Doom; Branches;
335073021Trouble at Table 5: The Candy CaperTrouble at Table 5;
345073012Trouble at Table 5: Busted by BreakfastTrouble at Table 5;
355118793Trouble at Table 5: The Firefly FixTrouble at Table 5;
365118784Trouble at Table 5: I Can't Feel My FeetTrouble at Table 5;
375191645Trouble at Table 5: Trouble to the MaxTrouble at Table 5;
385202036Trouble at Table 5: Countdown to DisasterTrouble at Table 5;
Series
Cell Formulas
RangeFormula
A17:D38A17=LET(x,FILTER(CHOOSECOLS(t_Books,1,23,2,5),BYROW(--ISNUMBER(SEARCH(TOROW(l_SeriesActive),t_Books[Series])),LAMBDA(r,SUM(r )))),SORT(x,{4,2}))
Dynamic array formulas.
Named Ranges
NameRefers ToCells
l_SeriesActive=t_SeriesActive[Series]A17

I just realized that this will help me identify the Series values, so I can replace all the "Branches; Notebook of Doom;" to "Notebook of Doom; Branches;" so the Sorting is good to go.
Reading Tracker.xlsm
ABCD
15Alex Blakenburg SOLUTION
16QuizBook No.TitleSeries
171223431Saving Mister NibblesElliot's Park;
181238912Haunted HikeElliot's Park;
191299633Walnut CupElliot's Park;
201591401Rise of the Balloon GoonsNotebook of Doom; Branches;
211611912Day of the Night CrawlersNotebook of Doom; Branches;
221620933Attack of the Shadow SmashersNotebook of Doom; Branches;
231651054Chomp of the Meat-Eating VegetablesNotebook of Doom; Branches;
241698895Whack of the P-RexNotebook of Doom; Branches;
251721626Pop of the Bumpy MummyNotebook of Doom; Branches;
261736617Flurry of the SnombiesNotebook of Doom; Branches;
271767308Charge of the Lightning BugsNotebook of Doom; Branches;
281798529Rumble of the Coaster GhostNotebook of Doom; Branches;
2918326310Snap of the Super-GoopNotebook of Doom; Branches;
3018720911Sneeze of the Octo-SchnozzNotebook of Doom; Branches;
3118990312March of the VanderpantsNotebook of Doom; Branches;
3219303013Battle of the Boss-MonsterNotebook of Doom; Branches;
335073021Trouble at Table 5: The Candy CaperTrouble at Table 5;
345073012Trouble at Table 5: Busted by BreakfastTrouble at Table 5;
355118793Trouble at Table 5: The Firefly FixTrouble at Table 5;
365118784Trouble at Table 5: I Can't Feel My FeetTrouble at Table 5;
375191645Trouble at Table 5: Trouble to the MaxTrouble at Table 5;
385202036Trouble at Table 5: Countdown to DisasterTrouble at Table 5;
Series
Cell Formulas
RangeFormula
A17:D38A17=LET(x,FILTER(CHOOSECOLS(t_Books,1,23,2,5),BYROW(--ISNUMBER(SEARCH(TOROW(l_SeriesActive),t_Books[Series])),LAMBDA(r,SUM(r )))),SORT(x,{4,2}))
Dynamic array formulas.
Named Ranges
NameRefers ToCells
l_SeriesActive=t_SeriesActive[Series]A17
 
Last edited:
Upvote 0
Thanks for the comprehensive feedback. If you want an explanation here is the 6 minute video I got it from.
 
Upvote 0

Forum statistics

Threads
1,223,883
Messages
6,175,167
Members
452,615
Latest member
bogeys2birdies

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