Adding & Subtracting

jmathew

Board Regular
Joined
Nov 22, 2004
Messages
237
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)
 
Upvote 0
Another attempt

Hi jmathew,

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

After re-reading your post I realised my first reply was not correct. I overlooked the subtractions. How about the following:

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
 
Upvote 0

Forum statistics

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