How to Split Repeated Names and Associated Values into Separate Excel Rows
Question details
The user needs to normalize data by splitting multiple associated values tied to a repeated name into separate, individual rows in Excel.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Organizing and cleaning a dataset where names have multiple associated values (like X1 and X2) combined on a single line, but need to be separated into individual rows for better data analysis.
- Observed behavior
- Instead of several values combined on one line, the goal is to generate a normalized dataset where each occurrence of the name and its associated data has its own distinct row.
Ensure your original data is formatted as an Excel Table (press Ctrl+T) to make it easier to load into Power Query or use as dynamic ranges in array formulas.
Use Power Query to Unpivot and Separate Rows
Power Query is the most robust method for normalizing combined data into separate rows without relying on complex formulas.
Power Query features an 'Unpivot' function that automatically takes data spread across multiple columns and flattens it into rows, keeping the associated identifier (like a Name) attached to each new row.
Select your data range, go 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 column containing the repeated names (and any other primary identifier columns) and choose 'Unpivot Other Columns'. Alternatively, select the specific value columns, right-click, and choose 'Unpivot Columns'.
Power Query will generate separate rows for each value. You can rename the new 'Attribute' and 'Value' columns by double-clicking their headers, or delete the Attribute column if it is no longer needed.
Go to the Home tab in the Power Query Editor and click 'Close & Load' to output the separated, normalized data into a new Excel worksheet.

Use Modern Dynamic Array Formulas (FILTER, VSTACK)
If you prefer using formulas instead of Power Query, modern Excel functions can dynamically generate the separated rows.
Split and Manage Complex Data Easily with WPS Spreadsheet
WPS Spreadsheet offers powerful data management tools, fully supporting advanced array functions and data processing workflows, allowing you to split and organize complex datasets seamlessly.
- 1. Open your dataset: Launch WPS Spreadsheet and open your existing .xlsx data file.
- 2. Apply dynamic array formulas: Use supported functions like FILTER and SORT to dynamically separate and stack your records without altering the raw data.
- 3. Use data processing tools: Alternatively, utilize the built-in Text to Columns or Data sorting features from the Data tab to organize mixed values.
- 4. Save seamlessly: Save your organized file in .xlsx format to retain full formatting and formula compatibility with Microsoft Office.

Frequently Asked Questions
Why do my unpivoted rows in Power Query show extra attribute columns?
When you unpivot columns in Power Query, it automatically creates an 'Attribute' column containing the old column headers to retain context. If you only need the separated values, you can right-click this 'Attribute' column and select 'Remove'.
Can I use VSTACK or FILTER in older versions of Excel?
No, dynamic array functions like VSTACK, FILTER, and SORT are only available in Microsoft 365 and Excel 2021 or later. For older versions, using Power Query is the recommended and most reliable solution.
How do I update the separated rows when new names are added?
If you used Power Query, simply right-click anywhere inside the generated result table and select 'Refresh', or go to the Data tab and click 'Refresh All'. If you used dynamic array formulas, the results will update automatically as soon as the source data changes.




