Home / Statistical Tools / Analysis Tools / Barchart / Examples / Count Frequency (Categorical)
Count Frequency (Categorical)¶
When your categorical data includes counts that need to be aggregated, use a Count column as the frequency. Quantum XL automatically sums the counts for each category — you don't need to pre-summarize your data. With a frequency column selected, the Count function is disabled and Sum becomes the default, with all other math operations available.
Goal¶
Create a bar chart from product sales data where the same product appears multiple times. Quantum XL will aggregate (sum) the units sold for each product automatically.
Sample Data¶
Download BarChart_CountFrequencyCategorical.xlsx
Excel Protected View
When you open downloaded files, Excel displays a Protected View warning. You must click Enable Editing before you can use Quantum XL with the file.

Alternatively, you can copy the sample data from the table below and paste it directly into a new Excel workbook.
| Product | Units Sold |
|---|---|
| Widget A | 150 |
| Widget B | 89 |
| Widget A | 210 |
| Widget C | 45 |
| Widget B | 67 |
| Widget A | 180 |
| Widget D | 12 |
| Widget C | 33 |
| Widget B | 54 |
| Widget D | 8 |
Notice that "Widget A" appears 3 times, "Widget B" 3 times, and "Widget C" and "Widget D" twice each. Quantum XL will automatically sum the units sold:
- Widget A: 150 + 210 + 180 = 540
- Widget B: 89 + 67 + 54 = 210
- Widget C: 45 + 33 = 78
- Widget D: 12 + 8 = 20
Steps¶
-
Launch the analysis
From the Excel ribbon, select QXL Stat Tools → Analysis Tools → Bar Chart.
-
Select your data
Select cells A1:B11 (the header row plus all 10 data rows).
-
Configure the analysis
In the Bar Chart dialog:
- Deselect "Units Sold" under Data Columns (if auto-selected)
- Check "Units Sold" under Frequency Data (Optional)
Click Finish to generate the chart.
Result¶
Quantum XL aggregates the units sold by product and creates the bar chart. Widget A has the tallest bar at 540 units, followed by Widget B at 210, Widget C at 78, and Widget D at 20.