Table of Contents
Summing values by category in Excel is a useful function that allows users to quickly and accurately calculate the total amount of data within a specific category. This can be achieved by using the SUMIF or SUMIFS function, which allows users to specify a certain criteria or conditions to be met in order for the values to be included in the calculation. By organizing data into categories and using these functions, users can efficiently analyze and understand the distribution of their data. This feature is particularly helpful in financial and statistical analysis, as well as in creating charts and graphs to visually represent the data.
Sum Values by Category in Excel
Often you may want to sum the values of some dataset in Excel based on a category or group.
For example, suppose we have the following dataset and we’d like to sum the total “points” by team:

The following step-by-step example shows how to do so.
Step 1: Enter the Data
First, enter the data values into Excel:

Step 2: Find the Unique Categories
Next, we need to use the =UNIQUE() function to produce a list of unique values in a certain range.
In our example, we’ll type the following formula in cell E2:
=UNIQUE(B2:B12)
This will produce a list of unique teams:

Step 3: Find the Sum by Category
Next, we will use the SUMIF(range, criterion, sum_range) function to find the sum of the points scored by each team.
In our example, we’ll type the following formula in cell F2:
=SUMIF($B$2:$C$12, E2, $C$2:$C$12)

This tells us:
- The total points scored by players on the Lakers is 21.6.
- The total points scored by players on the Mavericks is 56.4.
- The total points scored by players on the Spurs is 48.8.
- The total points scored by players on the Warriors is 65.
Additional Resources
The following tutorials explain how to perform other common tasks in Excel:
Cite this article
stats writer (2024). How can I sum values by category in Excel?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-sum-values-by-category-in-excel/
stats writer. "How can I sum values by category in Excel?." PSYCHOLOGICAL SCALES, 1 Jul. 2024, https://scales.arabpsychology.com/stats/how-can-i-sum-values-by-category-in-excel/.
stats writer. "How can I sum values by category in Excel?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-sum-values-by-category-in-excel/.
stats writer (2024) 'How can I sum values by category in Excel?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-sum-values-by-category-in-excel/.
[1] stats writer, "How can I sum values by category in Excel?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, July, 2024.
stats writer. How can I sum values by category in Excel?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
