Fix Relative Formulas After Converting an Excel Table to a Range
Question details
Restore formulas so they reference the correct rows after an Excel table is converted to a normal range and sorted.

- 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.
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.
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.
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.
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.
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.

Sort the Entire Data Range Together
Use this when sorting a single column has separated data or formulas from their corresponding rows.
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. Open the workbook: In WPS Spreadsheets, choose Open and select your Excel workbook.
- 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. Fill the formula down: Drag the fill handle at the lower-right corner of the cell down through the affected rows.
- 4. Verify and save: Select several filled cells to check their references, then choose File > Save or Save As to save the workbook.

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.




