Slicer and Countifs?

thp510

Board Regular
Joined
Oct 19, 2015
Messages
110
Office Version
  1. 365
Platform
  1. Windows
I have a list of people that show up based on some slicers that I'm using in a Pivot Table on worksheet called "Tally"

For example, here's the result of the pivot on worksheet "Tally" if I select "USA" on the slicer

Region Slicer: USA
ABC
1Julie
2Max
3Tom
4Suzie
5Bill
6
7Sports Total


Here's the result of the pivot on worksheet "Results" if I select "EMEA" on the slicer
Region Slicer: EMEA
ABC
1Gus
2Tobin
3Chloe
4Karl
5
6
7Sports Total

Now I also have another separate worksheet called "Raw Data" that shows every employee worldwide (over 1,000 rows) with their Hobby Choice, Food Choice, etc... across the columns.
ABCD
1NameRegionHobby ChoiceFood Choice
2KarlEMEASportsPizza
3TomUSASportsSoup
4LiAPACSportsPizza
5ChloeEMEASportsCheeseburger
6BillUSASportsCheeseburger
7MaxUSAEatingPizza
8JansonLATAMSportsPizza
9KarlEMEASportsPizza

Going back to the "Tally Worksheet", I'd like to populate the cell in B7 with the right total of individuals that picked "Sports" based on the slicer that shows up. For example, if I picked the region USA on the slicer, I would only see people in the USA. That means I want to calculate the total number of folks that picked Sports as their hobby but are also in the USA. That number should populate in cell B7. For example the below would show this:

Region Slicer: USA
ABC
1Julie
2Max
3Tom
4Suzie
5Bill
6
7Sports Total2
If the slicer picked EMEA then EMEA folks would only populate and the sports total in B7 would be 3.

Region Slicer: EMEA

ABC
1Gus
2Tobin
3Chloe
4Karl
5
6
7Sports Total3
Does anyone know what would be the formula that I would need to put into cell B7?

Thank you!​
 

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).

Forum statistics

Threads
1,215,061
Messages
6,122,921
Members
449,094
Latest member
teemeren

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