How to Split Multiple Comma-Separated Selections into Separate PivotTable Items
Question details
The user needs to configure an Excel PivotTable to individually count multiple comma-separated items stored within a single cell.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Creating a PivotTable summary from survey responses, validation lists, or system exports where multiple selections are combined into one cell as a comma-separated string.
- Observed behavior
- The PivotTable treats the entire comma-separated string as a single distinct item, rather than splitting the string and counting each selection separately.
Before restructuring your data, duplicate your original worksheet. Normalizing data involves creating additional rows, which will permanently alter the layout of your source table.
Normalize Data Using Power Query to Split into Rows
Use the Power Query editor to automatically split comma-separated values into individual rows before loading the data into a PivotTable. This is the most dynamic and robust method.
To get an accurate count in a PivotTable, the source data must be formatted dynamically so that each pain point or selection has its own individual row. Power Query handles this normalization automatically.
Select any cell in your source data, go to the 'Data' tab on the ribbon, and click 'From Table/Range'. Click 'OK' to turn your data into a table and open the Power Query Editor.
In the Power Query Editor window, click on the header of the column that contains the comma-separated multiple selections.
On the 'Home' tab, click 'Split Column' and select 'By Delimiter'. Choose 'Comma' from the delimiter drop-down list.
In the Split Column dialog, click 'Advanced options'. Select the radio button for 'Split into Rows' and click 'OK'. The data will expand, placing each item on its own row.
Click 'Close & Load' in the top-left corner. Once the normalized data loads into a new worksheet, go to 'Insert' > 'PivotTable' to generate accurate individual counts.

Manually Normalize Data Using Text to Columns
If you are using an older version of Excel without Power Query, you can manually split the text into separate columns and rearrange them.
Easily Clean Data and Create PivotTables with WPS Spreadsheet
WPS Spreadsheet offers a comprehensive suite of robust data analysis tools. You can quickly normalize complex, messy datasets and generate highly accurate PivotTables to streamline your reporting.
- 1. Open Your Dataset: Launch WPS Spreadsheet and open the file containing your combined data selections.
- 2. Split the Data: Highlight the target column, navigate to the 'Data' tab, and use the 'Text to Columns' tool to separate your comma-separated values.
- 3. Consolidate to a Single Column: Quickly stack the split variables vertically into one unified column for proper analysis.
- 4. Insert PivotTable: Navigate to 'Insert' > 'PivotTable' to dynamically count and evaluate each individual item accurately.

Frequently Asked Questions
Why does my PivotTable group comma-separated values together as one item?
A PivotTable reads the exact text string in a cell as a single unique entity. If 'Item A, Item B' is contained within one cell, the PivotTable registers that entire string as one item, rather than recognizing 'Item A' and 'Item B' individually.
Can I use a DAX formula in Power Pivot to split comma-separated values?
While Power Pivot is excellent for complex calculations, splitting delimited strings into rows is fundamentally a data transformation task. It is best and most efficiently done in Power Query before the data is ever loaded into the Data Model.
Will my PivotTable automatically update if I add more comma-separated values?
If you used the Power Query method (Split into Rows), simply right-click the query output table and select 'Refresh', then refresh the PivotTable. If you used the manual Text to Columns method, you will have to repeat the manual splitting and stacking process for any new data.




