Data Import & Export

Convert Repeating Records in One Excel Column into a Table

Aamir Naveed AkramAamir Naveed Akram Dec 2, 2026 869 views

Question details

Convert repeating contact records stored in a single column into a table with separate fields.

Convert Repeating Contact Records in One Excel Column into a Table
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.
Before you start

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.

Solution 1Recommended

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.

1
Load the source column

Select the source column, then choose Data > From Table/Range. Confirm whether the selection has a header and create the table.

2
Remove separator rows

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.

3
Add a record number

Choose Add Column > Index Column > From 0. Then select Add Column > Custom Column, name it Record, and enter Number.IntegerDivide([Index], 4).

4
Label each field

Choose Add Column > Custom Column again, name it Field, and enter {"Name", "Phone", "Location", "Place"}{Number.Mod([Index], 4)}. Remove the Index column.

5
Pivot and load the table

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.

Use Excel Power Query to reshape the contact records
Inconsistent records: If a field is missing or the order varies, standardize the source first. Removing a missing field as a blank row would shift the remaining values into the wrong columns.
WPS Spreadsheet

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. 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. 2. Add column headings: Enter Name, Phone, Location, and Place in cells C1 through F1.
  3. 3. Enter the formula: In C2, enter =INDEX($A:$A,(ROW()-2)*5+COLUMN()-2).
  4. 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.
Separate names, phone numbers, locations, and places into table columns.Open and save Microsoft Excel XLSX files.Work in a familiar spreadsheet interface with formulas and fill handles.
microsoft office alternative - wps office

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.