#### jmathew

##### Board Regular
I have the following formula too subtract two columns and I can not get it to work. I have to subtract and then add a series of columns together.

=SUM(('Year 2001'!AG:AG-'Year 2001'!AF:AF))

### Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
This is what I tried to add and subtract but it is not working. Do I have my parenthesis in the wrong place??

=SUM('Year 2001'!AG2-'Year 2001'!AF2)+('Year 2001'!AJ2-'Year 2001'!AI2)+('Year 2001'!AM2-'Year 2001'!AL2)+('Year 2001'!AP2-'Year 2001'!AO2)

Another attempt

Hi jmathew,

Have a look at About calculation operators, searching for the keyword operator in Excel help.

Summary sheet formula:
=SUM('Year 2001'!AG2-'Year 2001'!AF2+('Year 2001'!AJ2-'Year 2001'!AI2+('Year 2001'!AM2-'Year 2001'!AL2+('Year 2001'!AP2-'Year 2001'!AO2))))
or
=SUM('Year 2001'!AG2-'Year 2001'!AF2+'Year 2001'!AJ2-'Year 2001'!AI2+'Year 2001'!AM2-'Year 2001'!AL2+'Year 2001'!AP2-'Year 2001'!AO2)

Which both return the same result 40

Hope this helps,
Paul

Year 2001
bedmas.xls
AFAGAHAIAJAKALAMANAOAP
1FGIJLMOP
21020102010201020
Year 2001

Summary
bedmas.xls
ABCD
1Total
240
340
Summary

Thank you!

Replies
11
Views
288
Replies
3
Views
64
Replies
3
Views
56
Replies
8
Views
265
Replies
2
Views
144

1,203,430
Messages
6,055,337
Members
444,781
Latest member
rishivar

### 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.

### Which adblocker are you using?

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

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