Sometimes you need to delete rows in Excel but want to keep the formulas. In this article, we will discuss how to delete rows in Excel without affecting the formulas.
Consider the following dataset. Here we have week-wise Production of 4 units of an Automobile plant from column C to column F. After applying the sum formula in row 10 we get the total automobile production of a month for each unit. Now we want to delete rows 6-9 of the following dataset without affecting the formula in row 10.
How to Delete Rows in Excel without Affecting Formulas: 2 Ways
Method 1. Using the Go To Special Feature to Delete Rows without Affecting Formulas
In this method, we will use the Go To Special dialog box to keep our formula row intact but delete the data cells. Following the steps below we can delete rows in Excel without affecting formulas.
- Select all the data sets but the formula cells of row 10 that you want to delete.
- I have selected the range C6:F9.
- Now press the F5 or CTRL + G keys at the same time to launch the Go To box.
- After the box appears click on Special.
- After clicking Special, the Go to Special dialog box will appear.
- Now check Constants & then click OK.
- Now select all the rows that you want to delete but the formula.
- Then press Delete on the keyboard or Right-click on the mouse and then select Delete.
- Though all the data from rows have been deleted but the formula in C10 is still active & it will remain so for the rest of the formulas.
- Now apply a new set of data in rows 6-9 & it will show new results in row 10 using the same old formula.
Method 2. Use of Paste Special Option to Delete Rows without Affecting Formulas
In this method, we will learn how to delete rows without affecting the formulas using the Paste Special option. We will use Paste Values under the Paste Special category.
- If you want to keep the formulas active but delete your row data, you can use the Paste Special.
- Select the formula cells only and press CTRL + C or right-click the mouse and select Copy.
- Now select a blank cell and right-click on it & Context Menu will appear.
- From there click on the Paste Special on the ribbon or try the keyboard shortcut CTRL + ALT + V.
- Now select the Values option from the Paste Special box & then click OK.
- Now select the cells of the rows that you want to delete.
- Then go to the Home tab & then follow Editing >> Clear >> Clear contents.
- It will delete the cells of the rows but your formulas will not be affected.
- Now apply a new set of data in rows 6-9 & it will provide new results in row 10 using the same old formula.
Notes: While following step 3 of method 2, the Paste Special feature might look different depending on MS Office versions. Just keep searching for the Paste Values option or use the keyboard shortcut directly.
I have provided a data set for you. Practice it on your own.
Download Practice Workbook
By using any of the two quick methods you will be able to delete rows without affecting your formulas in Excel. If you have any confusion, please leave a comment.
- How to Delete Hidden Rows in Excel?
- How to Delete Filtered Rows in Excel?
- How to Delete Unused Rows in Excel?
- How to Find and Delete Rows in Excel
- How to Delete Multiple Rows in Excel Using Formula?
- How to Delete Multiple Rows in Excel with Condition?
- How to Delete Rows in Excel That Go on Forever?
- How to Delete Infinite Rows in Excel?
- How to Remove Rows Containing Identical Transactions in Excel?