How to Create an Excel Pie Chart from Categories in One Row
Question details
The user needs to create a pie chart from data where category labels and values are spread across a single row, which fails to render correctly.

- Product
- Microsoft Excel
- Device & OS
- Mac, Web, Windows
- Scenario
- Creating a pie chart from non-standard data layouts where categories and values are horizontally aligned.
- Observed behavior
- Excel for Mac or the web may only recognize part of the selection when selecting nonadjacent cells across a single row, failing to generate the correct pie chart.
Ensure you have identified which cells contain your category labels and which contain your numerical values before restructuring them into a standard format.
Reorganize Data into a Two-Column Helper Range
Manually restructure your single-row data into a standard two-column layout which is universally recognized by Excel's chart engine.
A pie chart requires category labels and corresponding values to be arranged as a simple two-column data series. Creating a helper range resolves recognition issues across all platforms.
Select an empty area in your worksheet below your existing data to serve as your helper range.
In the first column of the new range, input or link your category labels, placing one category per row.
In the second column, input or link the expense values that correspond to each category.
Highlight both columns of your newly normalized data range, navigate to the 'Insert' tab, and click the 'Pie Chart' icon to generate your chart.

Extract Data Using Dynamic Array Functions
Use modern Excel array-shaping functions to automatically extract and transpose your single-row data into a two-column format.
Create Professional Pie Charts Easily in WPS Spreadsheet
WPS Office provides an intuitive interface for organizing data and generating beautiful pie charts. You can easily transpose rows to columns and insert charts with just a few clicks.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your single-row data.
- 2. Transpose the data: Select and copy your horizontal data. Right-click an empty cell, select 'Paste Special', check the 'Transpose' option, and click 'OK' to convert it to a vertical layout.
- 3. Highlight the range: Select the newly transposed two-column data containing your categories and values.
- 4. Insert your chart: Navigate to the 'Insert' tab on the top ribbon, click 'Chart', and select 'Pie Chart' to instantly generate your visualization.

Frequently Asked Questions
Why does Excel fail to create a chart from nonadjacent cells in a row?
When selecting disjointed cells horizontally, the charting engine often struggles to determine which values represent categories and which represent data points. A continuous vertical two-column format provides a clear, recognized structure.
Can I use the Paste Special feature to reorganize my data?
Yes, you can copy your horizontal data row, right-click on an empty destination cell, choose 'Paste Special', and select the 'Transpose' checkbox to automatically flip your row data into vertical columns.
Are dynamic array functions available in older versions of Excel?
No, array-shaping functions like TOCOL, TOROW, and CHOOSECOLS are exclusive to newer releases such as Microsoft 365. For older versions, manual reorganization or using the Transpose paste option is recommended.




