How to Analyze the Same Category Across Multiple Excel Columns
Question details
The user needs a way to combine and analyze similar answer columns as a single unified category using the Analyze Data tool, without relying on PivotTables.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Attempting to perform automated data analysis on an Excel dataset where answers belonging to the same logical category are spread across multiple separate columns.
- Observed behavior
- Excel's Analyze Data feature treats similar answer columns as completely separate categories rather than analyzing them as a single combined category.
Ensure your dataset is formatted as an official Excel Table by selecting your data and pressing Ctrl+T, and verify that all columns have distinct headers before importing them into Power Query.
Normalize Data using Power Query Unpivot
Use the Unpivot feature in Power Query to flatten your dataset, transforming multiple separate columns into a single unified category column that can be easily analyzed.
By unpivoting the columns, you restructure the data from a wide format to a long format. This allows the Analyze Data tool to recognize the consolidated values as a single entity rather than disconnected data points.
Select any cell inside your data table, navigate to the 'Data' tab on the Excel ribbon, and click 'From Table/Range' to open the Power Query Editor.
In the Power Query Editor, right-click the primary identifier column (the column you want to keep as-is, such as IDs or Names) and select 'Unpivot Other Columns'.
A new 'Attribute' column and 'Value' column will appear. Right-click the 'Attribute' column and select 'Remove' to leave only your single-value category column.
Click 'Close & Load' in the top-left corner of the Home tab. The formatted data will be loaded into a new worksheet.
Select the newly generated single-value category column in the new worksheet, then click 'Analyze Data' on the Home tab to analyze the combined category.

Simplify Data Management with WPS Office
If you frequently struggle with complex data structures or heavy tools, consider WPS Office. It provides a lightweight, fast, and completely free alternative to Microsoft Office, featuring robust data analysis and spreadsheet capabilities without the steep learning curve.
- 1. Download and Install: Visit the official WPS website to download and install the free WPS Office suite on your device.
- 2. Open your Excel File: Launch WPS Spreadsheets and open your existing .xlsx file to continue your work without losing any formatting.
- 3. Analyze your Data: Utilize the built-in Data tab and advanced pivot tools to consolidate and analyze your categorical data effortlessly.

Frequently Asked Questions
Why does the Analyze Data tool separate identical categories in Excel?
The Analyze Data tool relies on strict tabular data structures. If identical category types are placed in separate columns (wide format), the AI interprets each column header as a distinct variable rather than parts of the same category.
Can I combine multiple columns into one without using Power Query?
Yes, you can use dynamic array formulas like VSTACK in newer versions of Excel, or manually copy and paste the columns into a single consolidated column, though Power Query is much more efficient for automated workflows.
What exactly does the Unpivot Other Columns feature do?
Unpivot transforms your data by taking multiple columns and converting them into rows. It collapses the selected columns into two new columns: one containing the original column headers and the other containing the actual cell values.




