Another cell reference problem =)

Lizardio

New Member
Joined
Jun 11, 2008
Messages
8
I have 5 columns set up: A,B,C,D,E
D is the sum of A and B
E is the sum of A,B,and C

As I add in a new column to the right of C (call it C2), I need D (which has shifted over one) to sum A,B, and C.

I also need E (which has also shifted over one) to sum A,B,C, and C2.

Essentially I need a function in a cell that will be able to reference two cells to the left even as more cells are added.

Sorry if this is totally confusing....
<!-- / message -->
 
You may want to just add all the months up front and fill in the columns as the year progresses. This is also a good case where you could hide the months that aren't being used, and unhide one more each month.

AB
 
Upvote 0

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
hmm yes well I suppose a huge IF string could be used.... but that doesnt seem worth the initial work. Thanks so much for your help!!
 
Upvote 0
You caught me napping.

Here's a try:
book2
ABCDEFG
1JanFebMarPrevCurr
2Mt.Polley6,0744,447110,52110,522
3
4
5
6
Sheet1


Formula in cell F2 is:
=SUM(B2:E2)-D2

Formula in cell G2 is:
=SUM(B2:E2)

Here I am using the empty helper column in column E so you would add new columns to the right of E. E can be hidden or reduced to a narrow width (my preference).
 
Upvote 0
Goodness...
that doesn't work either.

Okay, in F2:
=SUM(B2:E2)-OFFSET(F2,0,-2)

Other one is okay!
 
Upvote 0
And (did my ego suffer here?) this works but I think we'd started in the wrong column.
book2
ABCDEF
1JanFebMarPrevCurr
2Mt.Polley6,0744,4472010,52110,541
3
4
5
6
Sheet1


Formula in Cell E2 is:
=SUM(OFFSET(B2,0,0,1,COLUMN()-3))

Formula in Cell F2 is:
=SUM(OFFSET(B2,0,0,1,COLUMN()-3))

No help column here.
 
Upvote 0

Forum statistics

Threads
1,214,988
Messages
6,122,620
Members
449,092
Latest member
amyap

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