Adding numbers

tiredofit

Well-known Member
Joined
Apr 11, 2013
Messages
1,834
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have two columns of data in columns A and C:

Code:
1   4
2   5
3   6


In cell E1, I type:

Code:
=A:A+C:C

I get a value of 0.

Is that correct?
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Assuming your numbers in A and C start in row 1, I'd expect 5. What are you trying to get? If it's an overall total, you should use SUM.
 
Upvote 0
Hi,

If you want to get a total of both columns, you have to use the SUM function.

In E1 :

=SUM(A:A, C:C)
 
Upvote 0
Yes my data starts in row 1.

I agree I normally use SUM but I'm experimenting with different formulae.

What exactly is:


Code:
A:A+C:C

doing?

I agree with Rory that if I typed:

Code:
=A:A+C:C

in cell E1, I do get 5.

HOWEVER, if I typed that formula in cell F3, I get 7, so I assume it's adding the 2 and the 5 in row 2.
 
Last edited:
Upvote 0
A:A+C:C

Sums the equivalent A and C cells from the row your formula is in.
For example if you put your formula in E1 it will sum A1 and C1.
In E2 if will sum A2 and C2 etc...
 
Upvote 0
What exactly is:


Code:
A:A+C:C

doing?

It's returning an array of values adding each row in column A with the corresponding row in column C. In column E you get an implicit intersection, so the value you see is the relevant row of that array.
 
Upvote 0

Forum statistics

Threads
1,215,061
Messages
6,122,921
Members
449,094
Latest member
teemeren

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