multiplication several cells, different ranges

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,736
Office Version
  1. 365
Platform
  1. Windows
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
Joined
May 8, 2018
Messages
1,984
Office Version
  1. 365
  2. 2010
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
Joined
Mar 27, 2016
Messages
1,736
Office Version
  1. 365
Platform
  1. Windows
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
Joined
May 8, 2018
Messages
1,984
Office Version
  1. 365
  2. 2010
That function (Product) has been around "forever"...
 

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,736
Office Version
  1. 365
Platform
  1. Windows
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
Joined
May 8, 2018
Messages
1,984
Office Version
  1. 365
  2. 2010
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:

Watch MrExcel Video

Forum statistics

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

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
Top