Need help summing the total of two columns with their products

M

mike_vr

Hi all,

Another relatively simple one I'm sure, but how would I get the sum of two
columns, where each cell changes and I need the product of each?

EG
A B
1 250 (250)
4 300 (1200)
3 288 (864)
7 133 (931)
2 621 (1242)
Total 4487
And then at the bottom of column B I need the sum of the products of the two
columns.

I thought something like =SUM((A1*B1):(A5*B5)) would work but to no avail.

So if you've got the time I'd appreciate the help.

Thanks,
Mike
 
S

Stephen

mike_vr said:
Hi all,

Another relatively simple one I'm sure, but how would I get the sum of two
columns, where each cell changes and I need the product of each?

EG
A B
1 250 (250)
4 300 (1200)
3 288 (864)
7 133 (931)
2 621 (1242)
Total 4487
And then at the bottom of column B I need the sum of the products of the
two
columns.

I thought something like =SUM((A1*B1):(A5*B5)) would work but to no
avail.

So if you've got the time I'd appreciate the help.

Thanks,
Mike

The formula you need is
=SUM(A1:A5*B1:B5)
The essential point, however, is that this is an array formula. When you
type it in, don't click ENTER. Instead hold down CTRL and SHIFT whilst
clicking ENTER. (This is called "array-entering" the formula.) Thereafter,
in the formula bar you will see the formula surrounded by curly braces { }
to show that it is an array formula. Note that you cannot just type in these
braces; you must array-enter the formula.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top