Combine Excel Values by Group for a Column Chart
Question details
The user wants to combine values belonging to the same group before creating a chart.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The source data contains multiple records for each group, and the user wants a column chart of group totals.
- Observed behavior
- The desired chart has one column for each group rather than separate values for individual records.
Identify the columns containing group names and numeric values, and make sure each group is named consistently. The example below uses column A for groups and column B for values.
Create a SUMIF summary table and chart the group totals
Use a summary table to calculate one total per group and use those totals as the chart source.
Enter Group in cell E1 and Total in F1. Copy the group names from column A into column E below the header, select the copied names, and choose Data > Remove Duplicates.
In F2, enter =SUMIF($A:$A,E2,$B:$B). Copy the formula down alongside every group name in column E. If your source uses different columns, replace A and B in the formula with the group and value columns.
Select the populated summary table in columns E and F, including the headers. Choose Insert > Column or Bar Chart and select a column chart.

Chart group totals in WPS Spreadsheet
Use SUMIF in WPS Spreadsheet to build a one-row-per-group summary, then insert a column chart from the results.
- 1. Open the spreadsheet: Open WPS Spreadsheet and select Open to load the file containing your group names and numeric values.
- 2. Create a group list: Enter Group in E1 and Total in F1, then list each unique group name once in column E below the header.
- 3. Calculate group totals: Enter =SUMIF($A:$A,E2,$B:$B) in F2 and copy it down for each group. Adjust the column references if your source data is not in columns A and B.
- 4. Create the chart: Select the completed summary table, including its headers, then choose Insert > Chart and select a column chart.

Frequently Asked Questions
What does the SUMIF formula add up?
The formula =SUMIF($A:$A,E2,$B:$B) finds rows whose group in column A matches E2 and adds their numeric values from column B.
Why do I see more than one column for a group?
Check that the chart source contains only the summary table, with one row per group and one total column. In Excel, select the chart and use Chart Design > Select Data to inspect its source range.
Will the chart update when source values change?
The SUMIF totals normally recalculate when source values change, and the chart reflects those totals. New groups must also be added to the summary table and included in the chart range.
Why is a group total incorrect or zero?
Check that the group name in the summary matches the source names and that the values in column B are stored as numbers. Also confirm that the SUMIF references point to the correct group and value columns.




