COUNTIF using conditions

  • Thread starter Thread starter Seb
  • Start date Start date
S

Seb

I have a spreadsheet with multiple column.

For example :

Satus Id
Delivered 12
Not delivered 13
Delivered --
Delivered 14

I would to count the number of non-blank cells in the column "Id" depending
on the Status. The goal is to get the number of non-blank cells for Delivered
status and get the number of non-blank cells for Not Delivered status,

In general view I have to count the number of non-blank cells in column Id
depending on the value of the column "status"
 
=SUMPRODUCT((A2:A100="Delivered")*(NOT(ISBLANK(B2:B100))))

Adjust range as necessary (just make sure they are the same size!)
Note that you can change the "Delivered" to a cell reference if you prefer.
 
Try these:

=SUMPRODUCT(--(A2:A100="delivered"),--(B2:B100<>""))

=SUMPRODUCT(--(A2:A100="not delivered"),--(B2:B100<>""))
 
Back
Top