Chart & Visualization Issues

Create an Excel Bar Chart Counting Values in One Column

Kushani NimanthikaKushani Nimanthika Nov 18, 2026 872 views

Question details

Create a bar chart that shows how many times each text category appears in one Excel column.

Create an Excel Bar Chart Counting Values in One Column
Product
Microsoft Excel
Device & OS
not provided
Scenario
A column contains repeated color names, and the user wants to visualize the count of each color.
Observed behavior
The desired chart displays each unique color as a category and its frequency as a bar.
Before you start

Make sure the data column has a header, such as Color, and contains the values you want to count. Remove or account for blank cells and inconsistent category names before summarizing the data.

Solution 1Recommended

Count categories with a PivotTable and insert a PivotChart

Use a PivotTable to summarize repeated text values without writing formulas.

1
Insert a PivotTable

Select the data column including its header, then choose Insert > PivotTable. Confirm the source range and choose where to place the PivotTable.

2
Add the category field

In the PivotTable Fields pane, drag Color to Rows and drag Color again to Values.

3
Set the calculation to Count

Open the value field's menu, select Value Field Settings, and choose Count. Filter out any blank category if you do not want to chart it.

4
Insert the chart

Click inside the PivotTable, choose Insert > PivotChart, select a bar chart, and click OK.

5
Refresh after changes

When the source values change, right-click the PivotTable and choose Refresh. If new rows are outside the source range, update the PivotTable's data source first.

Count categories with a PivotTable and insert a PivotChart
Create a category count chart

Create a Color Count Bar Chart in WPS Spreadsheet

Use WPS Spreadsheet to summarize repeated colors with COUNTIF, then turn the summary into a bar chart.

  1. 1. Open the worksheet: Open WPS Spreadsheet, choose Open, and select the workbook containing the color values.
  2. 2. List the categories: Enter Color in D1 and Count in E1, then list each unique color once in column D starting at D2.
  3. 3. Calculate counts: For source values in A2:A9, enter =COUNTIF($A$2:$A$9,D2) in E2 and fill it down for the other colors. Change the source range if needed.
  4. 4. Insert a bar chart: Select the summary table, including its headings, then choose Insert > Chart and select a bar chart.
Count repeated text categories with COUNTIFCreate a bar chart from the resulting summary tableOpen and edit Microsoft Excel XLSX filesUse a familiar spreadsheet interface for free
microsoft office alternative - wps office

Frequently Asked Questions

Can Excel make a bar chart directly from repeated text values?

First summarize the text values into categories and counts using a PivotTable or COUNTIF. Then select the summary and use Insert > Bar Chart.

Why does my PivotTable show a blank category?

The source range may include empty cells. Open the Rows filter in the PivotTable and clear the blank item, or remove the empty cells from the source range.

Will the chart update when I add more colors?

For a PivotChart, refresh the PivotTable and make sure its source includes the new rows. For a COUNTIF chart, extend the formula's source range and add any new categories to the summary and chart range.

How do I count colors in a different column?

Change the first argument of COUNTIF to the range containing your colors. For example, use =COUNTIF($B$2:$B$20,D2) if the values are in B2:B20 and the category is in D2.