Auto-sum a range

J

James

i know that Excel will not assume that a new column at the edge of a range
is to be added into the range to be summed. is there anyway to work around
this?
i want to sum A1-G1 and have the total in H1. however, i may need to insert
a column after G1. and have that new column (which would now be H1) added to
the total. any ideas?
 
J

Jason Morin

Try this in H1:

=SUM(OFFSET(INDIRECT("RC",0),,-1,,-COLUMN()+1))

HTH
Jason
Atlanta, GA
 
D

Domenic

Hi James,

Try the following formula in H1:

=SUM($A1:OFFSET(H1,,-1))

Hope this helps!
 
J

James

this worked great once i figured out to hit CTRL-ENTER after pasting this
into the spreadsheet!
thanks guys... AGAIN!
;-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Sum of an array 1
Sum of an array 4
adding every other column 8
Multiple Columns in Sum Range using SUMIFS 1
column to row draging 1
Multiple Criteria 17
Auto Sum not working correctly 1
Get percentage of whole 2

Top