How to avoid #ref error while deleting the rows in Excel?
While you refer a cell to another cell, the cell will display #REF error if the reference row has been deleted as below screenshot shown. Now I will talk about how to avoid #ref error and automatically refer to next cell while deleting the row.
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.
To avoid #REF error, you cannot use the general formula =cell reference, you need another formula.
Select a cell next to the cell you need to use a formula to refer a row to it and type the row number difference between the cell and reference cell. For instance, I want to refer B12 to B2, then type 10 into C2. See screenshot:
The in the cell B2, type =OFFSET(B2,C2,), and press Enter key.
Now while you deleting the row 12, the cell content will be updated and get the value in new row 12.
Error Condition Wizard
You are guest
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.· 2 years agoOffset works nicely to avoid #ref when deleting rows. It is not necessary to store the offset in another cell - you could achieve the same result using the number 10 e.g. =offset(B2,10,)