How to Insert a Column without Affecting Formulas in Excel (2 Ways)

In the following dataset, we will count the Total Sales from 2015 to 2020 for different months. However, we have missed including the Sales for 2016. So, we need to insert a column between the data sets. To do so, we will take two approaches: applying the INDIRECT function and the INDEX function.

Sample Data


Method 1 – Apply the INDIRECT Function to Insert Column without Affecting Formulas 

Step 1: Use the INDIRECT Function

  • Insert the following formula of the INDIRECT function with the SUM function to sum the range C5 to G5:
=SUM(INDIRECT("C5:G5"))

Effective Ways to Insert Column without Affecting Formulas in Excel


Step 2: Apply the INDIRECT Function in Each Cell in a Column

  • Apply the same function according to the cell references for each cell.
  • The Total column will appear, as shown in the image below.

Effective Ways to Insert Column without Affecting Formulas in Excel


Step 3: Select a Column

  • Click on the D to select the entire column.

Effective Ways to Insert Column without Affecting Formulas in Excel


Step 4: Insert a Column

  • Right-click the mouse.
  • Click on Insert.

Effective Ways to Insert Column without Affecting Formulas in Excel


  • As a result, you can insert a new column to the left, and your newly added column will show as in the image below.
  • The formula in cell I5 remains unchanged.

Effective Ways to Insert Column without Affecting Formulas in Excel


Step 5: Final Result

  • Add the value for the year 2016 in the new column.
  • It will keep the formula in cell I5 and change the value according to the formula.

Effective Ways to Insert Column without Affecting Formulas in Excel

Read More: Insert a Column Between Every Other Column in Excel


Method 2 – Use the INDEX Function to Insert Columns without Affecting Formulas 

Step 1: Insert the Array Argument of the INDEX Function

  • To apply the INDEX function in the worksheet, use cells 1 to 65526 as an array with the following formula.
=SUM(INDEX($1:$65536,

Effective Ways to Insert Column without Affecting Formulas in Excel


Step 2: Enter the row_num Argument of the INDEX Function

  • Insert the row no. of the first reference cell C5 as 5.
=SUM(INDEX($1:$65536, 5

Effective Ways to Insert Column without Affecting Formulas in Excel


Step 3: Type the column_num Argument of the INDEX Function

  • Enter column_num as 3 for the reference cell C5.
=SUM(INDEX($1:$65536,5,3)

Effective Ways to Insert Column without Affecting Formulas in Excel


Step 4: Enter the Array Argument of the INDEX Function

  • Enter $1:$65536 to select the entire sheet.
=SUM(INDEX($1:$65536,5,3):INDEX($1:$65536,

Effective Ways to Insert Column without Affecting Formulas in Excel


Step 5: Write the row_num Argument of the INDEX Function

  • Type 5 as the row number for cell G5, and as the second reference cell, row_num is 5.
=SUM(INDEX($1:$65536,5,3):INDEX($1:$65536,5

Effective Ways to Insert Column without Affecting Formulas in Excel


Step 6: Write the column_num Argument of the INDEX Function

  • Insert 7 as the column number of the second cell reference.
=SUM(INDEX($1:$65536,5,3):INDEX($1:$65536,5,7)

Effective Ways to Insert Column without Affecting Formulas in Excel


Step 7: Final Formula to Sum

  • The formula becomes:
=SUM(INDEX($1:$65536,5,3):INDEX($1:$65536,5,7))

Effective Ways to Insert Column without Affecting Formulas in Excel


Step 8: Apply Formulas for Each Cell in the Column

  • Repeat the pattern for the other cell references with the following formula:

(For example cells C11 to G11)

=SUM(INDEX($1:$65536,11,3):INDEX($1:$65536,11,7))

Sample Data


Step 9: Select a Column

  • Click on the D to select the whole column.

Sample Data


Step 10: Insert a Column

  • Right-click the mouse and click on the Insert.

Sample Data

  • Your new column has been added, and the formula remains the same.

Sample Data

  • Type anything between the columns that will adjust the value while keeping the formula.

Sample Data

Read More: Excel Fix: Insert Column Option Greyed out


Download the Practice Workbook

Download this practice workbook to exercise while you are reading this article.


Related Articles


<< Go Back to Columns in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Bhubon Costa
Bhubon Costa

Bhubon Costa, B.Sc. in Naval Architecture & Marine Engineering from Bangladesh University of Engineering & Technology, has worked with the ExcelDemy since 2021. Currently, he has been working as a reviewer. Notably, he has written over 90 articles and led several VBA content development teams. He has a great passion for the fields of data analytics and data science. His areas of expertise include Excel VBA, Power Query, Pivot Table, Power BI, MySQL, PostgreSQL, machine learning, and Python... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo