Power Query Problems

How to Count Semicolon-Separated Names in Excel Power Pivot Charts

Emma BrownEmma Brown Oct 28, 2026 869 views

Question details

The user needs to count individual names that are grouped together in a single cell and separated by semicolons within a SharePoint list or Excel dataset.

How to Count Semicolon-Separated Names in Excel Power Pivot Charts
Product
Microsoft Excel
Device & OS
not provided
Scenario
Analyzing SharePoint Project Manager and Resources columns where multiple names are stored in a single cell separated by semicolons.
Observed behavior
Pivot Tables and Pivot Charts treat the entire semicolon-separated string as a single distinct value, preventing the individual counting of each name.
Before you start

Ensure your source data is formatted as an Excel Table or properly connected to your SharePoint list. It is highly recommended to create a backup of your original dataset before applying structural data transformations.

Solution 1Recommended

Transform Data Using Power Query

Use Power Query to split the semicolon-separated values, unpivot the columns, and group the data to get an accurate count for your Pivot Chart.

Power Query is the most robust tool for this task because it automates the data cleaning process. Once set up, you can simply refresh the query whenever your source data changes.

1
Duplicate the source query

Open the Power Query Editor, right-click your SharePoint source query in the Queries pane, select "Duplicate", and rename the new query to "Pivot".

2
Split the column by delimiter

Select the "Resources" column, go to the Home tab, click "Split Column" > "By Delimiter". Choose "Semicolon" from the dropdown and click OK.

3
Trim the data

Select the newly split columns, navigate to the Transform tab, click "Format", and select "Trim" to remove any leading or trailing spaces from the names.

4
Unpivot the columns

Highlight all the split name columns, go to the Transform tab, and click "Unpivot Columns". This will rearrange the data so all names appear vertically in a single column.

5
Group and count

Still on the Transform tab, click "Group By". Group the data by the new name column and set the operation to "Count Rows" to calculate the occurrences of each name.

6
Load to a Pivot Chart

Click "Close & Load To..." on the Home tab, select "PivotChart", and build your chart using the transformed and counted data.

Transform Data Using Power Query
Automated Updates: Once you configure these Power Query steps, any new data added to your SharePoint source will be automatically split and counted the next time you click Refresh.

How to Split and Count Data in WPS Spreadsheet

WPS Spreadsheet offers powerful built-in tools like Text to Columns and Pivot Tables to help you split semicolon-separated data and count occurrences easily, without needing complex queries.

  1. 1. Split the data: Select the column with semicolon-separated names, go to the Data tab, and click "Text to Columns". Choose "Delimited" and set the delimiter to Semicolon.
  2. 2. Rearrange the data: Copy the split columns and paste them into a single column using the "Transpose" paste option if necessary, ensuring all names are in one vertical list.
  3. 3. Create a Pivot Table: Select your new single column of names, go to the Insert tab, and click "PivotTable".
  4. 4. Count the names: Drag the Name field to both the "Rows" area and the "Values" area in the PivotTable Fields pane. Ensure the Value Field Setting is set to "Count".
  5. 5. Insert a Pivot Chart: Select a cell inside your Pivot Table, go to the Insert tab, and choose "PivotChart" to visualize your counted names.
Fully compatible with Microsoft Excel (.xlsx) files and formulas.Intuitive Text to Columns wizard for quick data splitting.Robust Pivot Table functionality for instant data summarization.Free and lightweight alternative to heavy spreadsheet software.
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't a Pivot Table count semicolon-separated values automatically?

Pivot Tables treat the entire contents of a single cell as one distinct text string. If a cell contains "John; Jane", the Pivot Table reads it as a single unique value rather than recognizing John and Jane as two separate entities.

Can I use a space instead of a semicolon as a delimiter in Power Query?

Yes. When using the "Split Column by Delimiter" function in Power Query, you can select Space, Comma, Semicolon, or input a custom character based on how your source data is formatted.

Will my Pivot Chart update automatically if the SharePoint source data changes?

Yes, if your data is connected via Power Query. You simply need to right-click your Pivot Chart or Pivot Table and select "Refresh" to pull in the latest data, apply the split transformations, and update the chart.

What does the Unpivot function do in Power Query?

The Unpivot function transforms data from a wide format (multiple columns of names) into a long format (a single column of names). This is essential for grouping and counting all names together in a Pivot Table.