Filter Function over multiple columns.

flammabubble

New Member
Joined
Aug 19, 2015
Messages
25
So I've got a spreadsheet for my football team which shows stats for the players over the season. I've recently started noting what positions people play, and I want to be able to filter the stats by the position. The challenge is that some people play multiple positions over the course of a match, so I've ended up with several columns for the position played.

The first picture is some test data which I've simplified, and I've also attached the output sheet where you're able to see the grouped stats and the formula I'm using for filtering by individual columns (which is stupidly long, but it does work).
xl.PNG


xl2.PNG

As you can see, if I put "Primary" and "LB", it correctly pulls 6 matches for Alex and 0 for Tim. What I want is to also be able to select "Any" and LM, and it to return results for the 3 games Alex played at LM which are across the Primary/Secondary/Tertiary columns. I was messing around trying to vstack the columns together but it didn't seem to like it, so I wonder whether this isn't something the filter function can acually do.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
With sheets, can't use XL2BB so hope this helps.
Screen Shot 2024-05-18 at 2.12.31 PM.png

 
Upvote 0

Forum statistics

Threads
1,216,499
Messages
6,131,012
Members
449,613
Latest member
MedDash99

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