4

I have a spreadsheet in Google with the following data:

**Status         Amount**
Under Review    $120.00
Delivered       $50.00
Paid            $320.00
Paid            $110.00
Under Review    $200.00

I want to sum all the column Amount, only but of only of those rows that has a Status on 'Delivered' or 'Paid'

With my example, the SUM should return $480.00.

I was trying with this formula, but it isn't working

=SUMIF(Column Amount,Status={"Delivered","Paid"},Column Amount)

Any ideas? Thanks a lot!

marikamitsos
  • 10,264
  • 20
  • 26
Jorge GVD
  • 43
  • 3

2 Answers2

4

You can also use the following formula:

=SUM(QUERY(A2:B,"select sum(B) where A='Paid' or A='Delivered' group by A"))

enter image description here

marikamitsos
  • 10,264
  • 20
  • 26
2

One of your columns is incorrect, and you need to use the arrayformula function. Documentation here

=SUM(ARRAYFORMULA(SUMIF([status_column],{"Delivered","Paid"},[amount_column])))

Joundill
  • 6,828
  • 12
  • 36
  • 50