Sumproduct division in google spreadsheets
Asked Answered
R

2

7

When working in excel, to find the sum of the quotients of corresponding numbers in two sets, you use a function as follows:

=SUMPRODUCT(A1:A5 / B1:B5)

In google spreadsheets though, although the sumproduct function exists, it cannot do division like this.

In case you are not familiar with excel, this is basically what I want to achieve:

Column A: 5, 7, 3, 9, 4 Column B: 3, 2, 9, 8, 4

Result: (5 / 3) + (7 / 2) + (3 / 9) + (9 / 8) + (4 / 4)

Please note I am using google spreadsheets and not excel!

Rianna answered 13/11, 2013 at 9:2 Comment(0)
F
10

Try using the following formula:

=ARRAYFORMULA(SUMPRODUCT(A1:A5 / B1:B5))

enter image description here

Foreknowledge answered 13/11, 2013 at 10:2 Comment(1)
Ahh, ArrayFormula, constantly having issues with this. Thankyou!Rianna
E
0

While the answer above works, it's using sumproduct for no reason. Really, what it does it this:

=SUM(ARRAYFORMULA(A1:A5 / B1:B5))

As far as I know, there is no "sumdivision" in Gsheets.

Eastward answered 4/8 at 19:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.