Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sumproduct division in google spreadsheets

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!

like image 489
Joel Avatar asked Nov 13 '13 09:11

Joel


People also ask

Is there a SUMPRODUCT for division?

The SUMPRODUCT function returns the sum of the products of corresponding ranges or arrays. The default operation is multiplication, but addition, subtraction, and division are also possible.

Can you use SUMPRODUCT in Google Sheets?

The SUMPRODUCT function in Google Sheets is used to calculate the sum of products of two or more arrays, or ranges of cells. The function is entered into a cell, and the arrays or ranges of cells to be multiplied are entered into parentheses after the function.

How do you do a division formula in Google Sheets?

DIVIDE is a function in Google Sheets that allows you to divide two numbers. To use the DIVIDE function, type "=DIVIDE(x,y)" into a cell, where "x" is the first number you want to divide and "y" is the second number. The DIVIDE function will return the result of the division.

How do you do SUMPRODUCT with multiple criteria?

How to use SUMPRODUCT with Multiple Criteria in Excel? We can use it in place of formulas like SUMIF. The criteria can include dates, numbers, and text. For example, the formula “=SUMIF(B1:B5, “<=12”)” adds the values in the cell range B1:B5, which are less than or equal to 12.


1 Answers

Try using the following formula:

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

enter image description here

like image 137
wchiquito Avatar answered Dec 01 '22 17:12

wchiquito