Forum Discussion
Michael1957
Sep 29, 2021Copper Contributor
Excel
I have numbers in columns a, b & c. In column d I have a formula that adds up the three numbers to the left. I need to be able to insert a blank column at column D, insert a new number into column ...
- Sep 29, 2021
In D2:
=SUM(OFFSET(D2,0,-3,1,3))or
=SUM(INDEX(2:2,COLUMN()-3):INDEX(2:2,COLUMN()-1))Fill down.
Michael1957
Sep 29, 2021Copper Contributor
It worked! Thank you thank you thank you!!!
Michael1957
Sep 29, 2021Copper Contributor
One follow-up question - how would I write the formula if I want to do A1-A2+A3
- HansVogelaarSep 29, 2021MVP
In which cell do you want the formula? In A4?
- Michael1957Sep 29, 2021Copper ContributorNo, in cell D1. So D1 adds A1, subtracts, b1, then adds C1. We need to be able to insert a blank column at D and have the formula which now appears in E1 automatically adjusted to add B1, subtract C2 and Add the new entry in D1. We'll be doing this every month always analyzing the last three months.
- HansVogelaarSep 29, 2021MVP
I'm confused. You first mentioned A1-A2+A3, then A1-B1+C1 and finally something with B1 and C2.
Please explain.