• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

counts using slicers|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / counts using slicers|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…counts using slicers
sp_PrintTopic sp_TopicIcon
counts using slicers
Avatar
Lisa Mitten

Active Member
Members

Dashboards

Power Pivot

Power BI

Excel Expert

Power Query
Level 0
Forum Posts: 4
Member Since:
August 23, 2019
sp_UserOfflineSmall Offline
1
January 19, 2021 - 3:04 pm
sp_Permalink sp_Print

I have a table of data that I have attached a slicer to, I would like to count the values in a column when the slicer changes

The column to count has 3 value, G, Y, R

When I select the person on the slicer, I would like the totals to change from the overall total in these Values within the field to those of the individual

Example:   

Total               45G  | 17Y | 66R

PersonA           12G  |   1Y | 12R

 

I cannot seem to get this to work and any help would be appreciated.  I cannot build a pivot table as some value are blank with screws up another formula and the property show blanks as does not remove the work blank.  I cannot add a space to the blank cells as that messes with the formula as well ... 

 

any help would be greatly appreciated. 

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 873
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
2
January 19, 2021 - 4:02 pm
sp_Permalink sp_Print

Hello,

Have you tried using the SUBTOTAL function?

Br,
Anders

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
3
January 19, 2021 - 8:58 pm
sp_Permalink sp_Print

Hi Lisa

You will need to create 3 helper columns G, Y and R.

In the helper columns you can check the Color column to see if it is G,Y or R and indicate 1 or 0. (refer example below)

Only then you can use the SUBTOTAL function as mentioned by Anders.

Color G Y R
R 0 0 1
G 1 0 0
G 1 0 0
Y 0 1 0
Y 0 1 0
G 1 0 0
R 0 0 1
Subtotal 3 2 2

Hope this helps.

Sunny

Avatar
Lisa Mitten

Active Member
Members

Dashboards

Power Pivot

Power BI

Excel Expert

Power Query
Level 0
Forum Posts: 4
Member Since:
August 23, 2019
sp_UserOfflineSmall Offline
4
January 22, 2021 - 3:52 am
sp_Permalink sp_Print

thank you both so much

I ended up using a combo of sumproduct, offset and subtotal to work with the slicer ... 

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Geoff McClure, Riny van Eekelen, David Jernigan, Cassie Bernier
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 215
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Abisola Ogundele
MARTYN STERRY
Rahim Lakhani
Ngoc Qui Nguyen
Clement Mansfield
Rose .
Bindu Menon
Baruch Zemer
Purple RainbowBenefactor
MOTH Junkie
Forum Stats:
Groups: 3
Forums: 24
Topics: 6350
Posts: 27773

 

Member Stats:
Guest Posters: 49
Members: 32317
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.