Count values in a column or Pivot table
Hello,
I don't have a pivot table app so I am looking for formula help. I have a grid that has a column called "Goal". Users and choose a value from the drop down or type in their own value in this field. I need to be able to generate a pie chart that shows the number of times each value shows up in that field. For example, "Administrative" shows up 5 times, "Process Improvement" shows up 12 times, etc. Looking for a formula that does this and then I can make a chart from it. Thanks for your help!
Comments
-
If your table is set up like below (column headers in bold):
Type Count
Administrative formula
Process Improvement formula
You can use
=COUNTIFS([Type column name]:[Type column name], Type@row)
That will look at the type in the same row as the formula and count how many times it shows up in your range.
-
See screenshot. I wanted to create a table that I can create a dashboard chart from. In the table I wanted to pull in data through a formula that would say I have 3 for "Process Improvement", 9 for "PM Development", etc. And then I can make a pie chart or bar chart from this.
It's really like generating a pivot table that counts the values in a field. And since a user can enter their own value I don't want to hard code the value to count for it because I would have to be constantly updating the formula when i see new values. Any ideas?
-
=COUNTIFS(Goal:Goal, Type@row)
If you set up your table as above only listing each value once, you can then put this formula exactly as is in the column next to it, and it will count. If anyone adds a new value in the Goal column, you just have to add that at the bottom of your table and dragfill the formula down.
-
Paul, you just changed my life! Thanks so much for this help!!
-
-
What if I want to count the values of a column in a separate sheet?
-
Hi,
You'd use cross-sheet formulas for that.
More info: https://help.smartsheet.com/articles/2476606-formulas-reference-data-from-other-sheets
Hope that helps!
Have a fantastic weekend!
Best,
Andrée Starå
Workflow Consultant @ Get Done Consulting
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 458 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!