Formula: calculate percentage based on certain criteria
Hi, please can you assist?
I have 2 worksheets, called "Position Requisition" and "Dashboard Data".
In the "Position Requisition" I have two columns, called "Total Train ATTR" and "Location"
In the "Dashboard Data" I have two columns, called "Primary Column" and "Totals"
I want to add up all the totals in the "Total Train ATTR" column that are associated with a location in the "Location" column and I want that total displayed as a percentage in my "Dashboard Data" sheet.
So if I have 6 Asheville's in "Locations" that totals up to 0.69 in "Total Train ATTR", then I want that to display 11.5% in my "Dashboard Data" sheet.
Answers
-
Hi @Desire
You can use a SUMIFS Function to look into a source sheet and sum values based on a criteria. For example, you could write something like this in your Dashboard Data "Totals" column:
=SUMIFS({Total Train ATTR column}, {Location Column}, [Primary Column]@row)
You'll want to create two cross-sheet {references} to look at your two columns in the other sheet, see: Create cross sheet references to work with data in another sheet
Then once you have all the totals, you can use this Dashboard Data sheet as a source for a Pie Chart in your Dashboard. This will automatically create a percentage based on the values for each row compared to the total of all rows.
Let me know if that works for you!
Cheers,
Genevieve
Join us for Jumpstart 2025 with Community on 23 January (in two time zones)! 🎉 Register here.
-
Thank you so much. I had the correct formula, I just didn't think of using a Pie Chart, it works perfectly, thank you.
-
No problem! Glad I could help 🙂
Join us for Jumpstart 2025 with Community on 23 January (in two time zones)! 🎉 Register here.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!