3

I have a table with the headings

Status | Currency | Total

In the rows I have a variation of statuses and currencies.

Using Google Spreadsheet I added this:

=SUMPRODUCT((A1:A10="Complete"),(B1:B10="GBP"),C1:C10)

in the hope calculating the total sum of those rows which are COMPLETE and GBP

The error I get is

#VALUE!
Range has no entry corresponding to this cell

Can anyone help please?

1

You can you the following formulas.

Formula

=SUM(FILTER(C1:C10,A1:A10="Complete";B1:B10="GBP"))

OR

=QUERY(A:C;"SELECT SUM(C) WHERE B='GBP' AND A='Complete'")

Screenshot

enter image description here

Example

I've created an example file for you: SUMPRODUCT issue

0

I can't reproduce the problem - but am using 'New' Google Sheets and the reason seems to be that in 'Old' SUMPRODUCT required array entry. So the fix should have been:

=ArrayFormula(SUMPRODUCT((A1:A10="Complete"),(B1:B10="GBP"),C1:C10))

That is, enter or re-enter the formula as in OP but with Ctrl+Shift+Enter.

[Ref: Yogi Anand]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.