Help regarding SUM formula

thespardian

Board Regular
Joined
Aug 31, 2012
Messages
119
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
On Sheet1, I have a data range D9:AH29.

Data.png

https://www.dropbox.com/s/j3dq7acp2uet463/Data.png?dl=0

On sheet B, I want the total of each column. Currently I am using the formula =SUM(Sheet1!D$9:D$29) in Cell A1, =SUM(Sheet1!E$9:E$29) in A2, =SUM(Sheet1!E$9:E$29) in A3 and so on. The problem with the formula is ---- I have to manually change the column reference. Is there any dynamic way so that I may drag down the formula and the column reference change automatically?
Any help would be highly appreciated.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hey,

I'd make a helper column on sheet B using column B.

B1:
="Sheet1!"&ADDRESS(9,ROW()+3)&":"&ADDRESS(29,ROW()+3)

Drag down to B31 (B31 should say "Sheet1!$AH$9:$AH$29")

Now in A1 use:
=SUM(INDIRECT(B1)) and drag down to A31.
 
Last edited:
Upvote 0
Hi,

Assuming you'll start in A1 on sheet B with the result of column D in sheet 1, try something like this:
=SUM(OFFSET(Sheet1!$D$9,0,ROW()-1,21,1))

As your range runs from 9 till 29 there are 21 cells to summarize. If the ranges changes, change 21 to the correct number of cells to sum.
 
Last edited:
Upvote 0
Yes you can use sum-offset function to get rid of this problem.
As below

upload

Change Formula according to your needs.
 
Last edited:
Upvote 0
OK no problem, in that case use the solution given by @jorismoerings - it's more efficient and doesn't require a helper column :)
 
Upvote 0

Forum statistics

Threads
1,213,484
Messages
6,113,923
Members
448,533
Latest member
thietbibeboiwasaco

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