Home » excel » excel – Count one column on another column

excel – Count one column on another column

Posted by: admin May 14, 2020 Leave a comment

Questions:

EDITED

I am trying to count all values in column D/F when column B is “Started”/”Configured”. This is what my data looks like.

B              D           F
Started        BARB1       BARB1
Started        BARB2
               BARB3       BARB2
Configured     BARB4
Started        

I have tried the following formulas; (CountIf, SumProduct) But it just seems to count them in column B?

=COUNTIF($B$2:$B$1800;B2="Started")
=SUMPRODUCT(($B$2:$B$1800="Started")*($D$2:$CD$1800<>""))
How to&Answers:

This version uses SUMPRODUCT so you don’t need CTRL+SHIFT+ENTER

=SUMPRODUCT(ISNUMBER(MATCH(B$2:B$1800;{"started";"configured"};0))*(D$2:F$1800<>""))

Answer:

Forget what i wrote before, this IS the answer:

 {=SUM(IF((A:A="Started")*(D:D<>"");1;0))+SUM(IF((A:A="Configured")*(D:D<>"");1;0))}

(you know ctrl+shift+enter)