Convert Repeating Records in One Excel Column into a Table
Question details
Convert repeating contact records stored in a single column into a table with separate fields.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Each contact has a name, phone number, location, and place listed on separate rows in one column.
- Observed behavior
- The desired table has one contact per row and separate Name, Phone, Location, and Place columns.
Check that every record has all four fields in the same order and that blank rows are separators, not missing field values. Make sure phone numbers with leading zeros are stored as text.
Use Excel Power Query to reshape the contact records
Use this method when each record has four populated rows in a consistent order, separated by blank rows.
Select the source column, then choose Data > From Table/Range. Confirm whether the selection has a header and create the table.
In Power Query, select the source column and use Transform > Format > Trim. Then use the column filter to exclude null and blank values. Set the column's data type to Text.
Choose Add Column > Index Column > From 0. Then select Add Column > Custom Column, name it Record, and enter Number.IntegerDivide([Index], 4).
Choose Add Column > Custom Column again, name it Field, and enter {"Name", "Phone", "Location", "Place"}{Number.Mod([Index], 4)}. Remove the Index column.
Select the Field column and choose Transform > Pivot Column. Select the original source column as the Values Column and choose Don't Aggregate under Advanced options. Select Home > Close & Load to return the table to Excel.

Create a contact table in WPS Spreadsheet
Use an INDEX formula in WPS Spreadsheet to arrange consistently spaced contact records into columns. WPS Office is free, lightweight, and provides a familiar interface for Excel-compatible files.
- 1. Open and check the records: Open the workbook in WPS Spreadsheet. Confirm that the first name is in A1 and each record has four populated rows followed by one blank row.
- 2. Add column headings: Enter Name, Phone, Location, and Place in cells C1 through F1.
- 3. Enter the formula: In C2, enter =INDEX($A:$A,(ROW()-2)*5+COLUMN()-2).
- 4. Fill the table: Drag the fill handle from C2 across to F2, then down for the number of contact records. Check that each row matches its source record.

Frequently Asked Questions
What if some contact records are missing a field?
Add the missing values or otherwise standardize the records before reshaping them. The Power Query grouping method assumes exactly four populated fields per contact.
How do I keep leading zeros in phone numbers?
Store the source phone numbers as text before importing them, and set the source column to Text in Power Query. Changing the type afterward cannot restore zeros that were already lost.
Can I update the Excel table when the source data changes?
Add the new records to the source Excel table, then select Data > Refresh All. The new records must follow the same four-field pattern.
Why are the WPS formula results in the wrong columns?
Check that the first name is in A1 and every record occupies five rows: four fields followed by one blank row. The formula also assumes the output begins in C2.




