Data Import & Export

Split Database Export Data into Separate Excel Rows

Steve KSteve K Dec 2, 2026 868 views

Question details

Separate database records stored in one spreadsheet cell into individual rows.

Split Database Export Data into Separate Excel Rows
Product
Microsoft Excel
Device & OS
not provided
Scenario
A database export contains multiple records in one cell, separated by line breaks.
Observed behavior
Text to Columns does not place each record in its own row.
Before you start

Check that each record in the source cell is separated by a line break, rather than a comma or another delimiter. If the export contains multiple columns, identify the column that needs to be split.

Solution 1Recommended

Split the column into rows with Excel Power Query

Use Power Query when you want to split line-separated records into rows and refresh the result after the source data changes.

1
Load the data

Select the cell or range containing the export, then choose Data > From Table/Range. Confirm the table range if prompted.

2
Choose the delimiter

In Power Query Editor, select the column and choose Home > Split Column > By Delimiter. Select a custom delimiter, enable splitting using special characters, and enter #(lf) for a line feed.

3
Split into rows

Expand Advanced options, select Rows under Split into, and click OK.

4
Load the result

Choose Home > Close & Load to place the separated records in an Excel worksheet.

Split the column into rows with Excel Power Query
Check the line-ending format: If records contain carriage returns as well as line feeds, use Transform > Format > Trim on the split column to remove any remaining surrounding whitespace.
Split records in WPS Spreadsheet

Separate line-break records with WPS Spreadsheet formulas

Use helper cells in WPS Spreadsheet to find each line break and extract the records into separate rows.

  1. 1. Open the export: Open the file in WPS Spreadsheet and place the cell containing the line-separated records in A1. Use empty columns B, C, and D for the helper formulas.
  2. 2. Normalize the line endings: In D1, enter =SUBSTITUTE(A1,CHAR(13),"") to remove carriage returns while retaining line feeds.
  3. 3. Find each line break: Enter 0 in B1. In B2, enter =IF(B1="","",IFERROR(FIND(CHAR(10),$D$1,B1+1),"")), then drag the fill handle down far enough to cover the expected records.
  4. 4. Extract the records: In C1, enter =IF(B1="","",MID($D$1,B1+1,IFERROR(FIND(CHAR(10),$D$1,B1+1),LEN($D$1)+1)-B1-1)). Drag the fill handle down alongside column B; each record appears in a separate row in column C.
  5. 5. Keep the results: Select the populated cells in column C, copy them, and use Paste Special > Values in the destination range if you need independent text instead of formulas.
Separate records from a single cell without Power Query.Open and save Microsoft Excel XLSX files.Use familiar spreadsheet formulas to handle line breaks.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Text to Columns not create separate rows?

Text to Columns distributes split values across columns. To create rows in Excel, use Data > From Table/Range and select Rows under the Power Query Split Column advanced options.

What delimiter represents a line break in Power Query?

For a line feed, choose a custom delimiter, enable splitting using special characters, and enter #(lf). If the source also contains carriage returns, trim the resulting values.

Can I refresh the split data after the export changes?

Yes. If the source table changes, select the loaded query result in Excel and use Data > Refresh All to run the Power Query steps again.

How do I keep the WPS formula results as plain text?

Copy the extracted cells in column C, then use Paste Special > Values in the destination range. The pasted records will no longer depend on the helper formulas.