absolute cell reference

justme

Well-known Member
Joined
Aug 26, 2002
Messages
729
in column C I have a formula which is the sum of column D to column AA.
=IF(SUM($D5:zz5)<>0,SUM($D5:zz5),"")

Problem: Every day I insert a column next to column C, which becomes the new column D and my formula changes to =IF(SUM($E5:AAA5)<>0,SUM($E5:AAA5),"")

How can I keep the cell reference $D in the formula?
 
I want the formula to give me the sum of row 3, from column D forward on the sheet labeled Sales. The formula will reside in in the sheet now called Sheet1.

Try:

=SUM(INDEX(Sales!3:3,,4):Sales!AA3)
 
Upvote 0

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,224,504
Messages
6,179,144
Members
452,891
Latest member
JUSTOUTOFMYREACH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top