Power Query Problems

Excel Power Query: Use Multiple Customer Fields in PivotTable Rows

Rana GarciaRana Garcia Nov 12, 2026 869 views

Question details

Split a comma-separated customer field into individual customer rows so quoted amounts can be summarized by customer in a PivotTable.

Excel Power Query: Use Multiple Customer Fields in PivotTable Rows
Product
Microsoft Excel Power Query and PivotTable
Device & OS
not provided
Scenario
A worksheet stores multiple customer names in one field, separated by commas, while each record also contains a related job and quoted amount.
Observed behavior
A standard PivotTable cannot separately summarize each customer name while multiple customers remain combined in one source cell.
Before you start

Make sure the source data has headers, including the customer field and quoted amount field. Confirm whether the full quoted amount should be counted for every listed customer, because splitting into rows repeats that amount for each customer.

Solution 1Recommended

Split the customer field into rows with Excel Power Query

Use this method when customer names are comma-separated in a single cell and each customer needs its own PivotTable row while retaining the related job and amount.

Power Query normalizes the source list by creating one record per customer. Unlike Text to Columns, splitting by delimiter into rows keeps the related job and quoted amount alongside every resulting customer record.

1
Convert the source range to a table

Select any cell in the source range, then choose Insert > Table. Confirm that My table has headers is selected, and click OK.

2
Open the table in Power Query

Click any cell in the new table, then select Data > From Table/Range to open the Power Query Editor.

3
Split customer names into separate rows

Select the Customer column, choose Home or Transform > Split Column > By Delimiter, select Comma as the delimiter, open Advanced options, choose Split into Rows, and click OK.

4
Clean the customer values

With the Customer column selected, choose Transform > Format > Trim to remove leading spaces after commas. Remove columns that are not needed for the PivotTable by selecting them and choosing Home > Remove Columns.

5
Load the normalized data and create the PivotTable

Choose Home > Close & Load To, load the query as a table, then select Insert > PivotTable. Drag Customer to Rows and Quoted Amount to Values; keep Job in Rows, Filters, or Columns if needed.

Split the customer field into rows with Excel Power Query
Check how amounts should be counted: If one quoted amount belongs jointly to several customers, splitting into rows causes the full amount to appear under each customer. Add a separate allocation calculation before building the PivotTable if the amount must be divided among customers.
Free Microsoft Office alternative

Analyze Customer and Quote Data with WPS Spreadsheet

If you need a free, lightweight spreadsheet application for organizing customer lists and building PivotTables, WPS Office provides a familiar interface and seamless migration for common Excel workbooks. Open your existing files, clean customer data with spreadsheet tools, and create summaries without changing your usual workbook format.

Create PivotTables to summarize customer names, jobs, and quoted amounts.Open and save Microsoft Excel .xlsx and .xls files with strong format compatibility.Use a familiar spreadsheet interface for a smoother transition from Microsoft Excel.Work with a free, lightweight office suite for everyday reporting and data analysis.
microsoft office alternative - wps office

Frequently Asked Questions

Why should I split multiple customer names into rows instead of columns?

A PivotTable summarizes records vertically. In Power Query, choose Split Column > By Delimiter and select Split into Rows so every customer becomes a separate record with its related quoted amount.

Will splitting customers into rows duplicate the quoted amount?

Yes. Power Query repeats the original quoted amount on every customer row created from that source record. This is correct only when each listed customer should receive the full amount in the summary.

How do I remove spaces after splitting comma-separated customer names?

In Power Query Editor, select the Customer column and choose Transform > Format > Trim. This removes spaces before or after each customer name and prevents duplicate-looking PivotTable labels.

Can I keep the job number when I split the customer field?

Yes. Leave the Job column in the query. When the Customer column is split into rows, Power Query retains the job number and other existing fields on each new customer row.

How do I update the PivotTable when new customer records are added?

Add the new record to the original Excel table, then choose Data > Refresh All. Click the PivotTable and select PivotTable Analyze > Refresh if it does not update automatically.