Filter Function over multiple columns.

flammabubble

New Member
Joined
Aug 19, 2015
Messages
28
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

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
With sheets, can't use XL2BB so hope this helps.
View attachment 111605
Hey, thanks so much for the reply! I've just tested this and it works for choosing Primary/Secondary/Tertiary but doesn't work if I want to look at all of them at once which is ultimately the goal. I can see you've used Match to decide which column to look at, is there a way to have a it check all of them?
 
Upvote 0
A reminder:

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at:

There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
A reminder:

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at:

There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
Apologies I just found out about that on the other forum too. Just confirming it's only been posted to Countif with same criteria in multiple columns and Countif result with same criteria in multiple columns aside from here.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

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