Formula Errors

Fix Relative Formulas After Converting an Excel Table to a Range

Algirdas JasaitisAlgirdas Jasaitis Dec 2, 2026 869 views

Question details

Restore formulas so they reference the correct rows after an Excel table is converted to a normal range and sorted.

Fix Relative Formulas After Converting an Excel Table to a Range
Product
Microsoft Excel
Device & OS
not provided
Scenario
A user converts a table to a range, sorts the data, and needs formulas in one column to follow the corresponding rows.
Observed behavior
Formulas in the affected column no longer reference the intended rows after sorting.
Before you start

Identify the first cell in the affected formula column and check its references in the formula bar. Make sure it contains the correct formula for that row, and check whether any dollar signs intentionally lock a row or column.

Solution 1Recommended

Fill the Correct Formula Down the Affected Column

Use this method when one correct formula can be copied to the remaining rows with adjusted relative references.

1
Check the first formula

Select the first formula cell in the affected column and inspect it in the formula bar. Correct it if necessary; for example, use =B2*C2 for values in row 2.

2
Fill down

Double-click the fill handle, the small square at the lower-right corner of the selected cell. Excel copies the formula down alongside adjacent data and overwrites existing formulas in the filled cells.

3
Check the results

Select several filled cells and inspect their formulas in the formula bar. Confirm that relative references match each row and that any intended absolute references remain fixed.

Fill the Correct Formula Down the Affected Column
If double-clicking stops early: Gaps in adjacent data can limit how far Excel fills. Drag the fill handle to the last row, or select the first formula cell and the cells below it, then choose Home > Fill > Down.
Work with formulas in WPS Spreadsheets

Restore Row-Relative Formulas in WPS Spreadsheets

Open the workbook in WPS Spreadsheets, correct the first formula, and fill it down so relative references adjust for each row.

  1. 1. Open the workbook: In WPS Spreadsheets, choose Open and select your Excel workbook.
  2. 2. Correct the first formula: Select the first affected formula cell and edit its references in the formula bar so they point to the correct row.
  3. 3. Fill the formula down: Drag the fill handle at the lower-right corner of the cell down through the affected rows.
  4. 4. Verify and save: Select several filled cells to check their references, then choose File > Save or Save As to save the workbook.
Fill corrected formulas down a columnSort related data and formulas togetherCompatible with Microsoft Excel XLS and XLSX filesUse a familiar spreadsheet interface for everyday editing
microsoft office alternative - wps office

Frequently Asked Questions

Why do some references stay fixed when I fill a formula down?

A dollar sign locks part of a reference. For example, $B$2 stays fixed, while B2 changes as the formula is filled down. Check the formula bar and keep dollar signs only where fixed references are intended.

What if the fill handle does not reach the last row?

Adjacent blank cells can cause a double-click fill to stop early. Drag the fill handle to the last row, or select the formula cell and the target cells below it and choose Home > Fill > Down.

How can I keep formulas with their data when sorting?

Select the entire related range, including the formula column, before choosing Data > Sort. If Excel prompts you, choose Expand the selection so the rows are sorted together.

Will filling down fix every incorrect formula?

It works when the first formula is correct and the other rows need the same formula pattern. Check for rows that require different formulas or intentionally fixed references before overwriting them.