# multiplication several cells, different ranges

#### lezawang

##### Well-known Member
Hi

What is the best way to do multiplication. Lets say I want to multiple all the cells in range A1:A10

=A1*A2*A3*A4..... *A10

and let say I want to multipley A1:A10 * B1:B4

=A1*A2*A3.... *A10 *B1*B2*...*B4

Writing a formula to do multiplication is ok if I have few numbers but let say I have 100 or 1000 etc. I thought it must be better way to do that. Thank you so much.

### Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

#### kweaver

##### Well-known Member
You cannot multiply to ranges of unequal length. Maybe you meant you wanted the product of A1:A10 TIMES the product of B1:B4?

Maybe this will clarify:
Book6
ABCD
173241920
24434836480
36634836480
422
511
698
7107
812
984
1013
1154
1274
1351
1483
1536
Sheet3
Cell Formulas
RangeFormula
D1D1=PRODUCT(A1:A10)
D2D2=PRODUCT(A1:A10)*PRODUCT(B1:B4)
D3D3=PRODUCT(A1:A10,B1:B4)

#### lezawang

##### Well-known Member
Yes thank you very much. I did not know about product() function. I only know about SumProduct(). It is either a new function or no one really know about it. Because I yet to see anyone talking about it or have video about it. Thanks a lot

#### kweaver

##### Well-known Member
That function (Product) has been around "forever"...

#### lezawang

##### Well-known Member
Thanks a lot once again. Are there any function do the division and subtraction? like

=A1/A2/A3/..../A10

or for substation

=A1-A2-A3-A4... -A10

Thanks again.

#### kweaver

##### Well-known Member
Because of our arbitrarily designed (and, illogical, in my opinion) order of operations, this divisions is "left-to-right".
If you worked that out it would be =A1/product(A2:A10).

By the same "logic" the conseq subtractions becomes: A1-sum(A2:A10).

If the order was right-to-left (not backwards), like functions are (supposed) to be performed [ f(g(x)) you have to do g(x) first, the right-most function, then f of that ]
Somewhere along the line, it was forgotten that + - multiply and divide are ALL functions. They should behave like f(g(x)).
Well, had we done like that, the division would have provided alternating product and the subtraction would have been alternating sum -- both useful.
The way it's done has little or no use, I believe.

Somewhere along the line, it was forgotten that + - multiply and divide are ALL functions. They should behave like f(g(x)).
Oh well.
That's my math soapbox.

Last edited:

Replies
2
Views
73
Replies
0
Views
43
Replies
3
Views
172
Replies
10
Views
96
Replies
24
Views
261

Threads
1,132,646
Messages
5,654,565
Members
418,140
Latest member
ahepple86

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

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