Count occurrents based on criteria in different column

B

Blueagm

Look at Data in D & E. If blank, and if column C = "studio", then count
occurrences.

C D E
Studio Allen Barnes
Private Jones
Studio
Double Hayes Hayes
Studio Taylor
In this case, the answer should be (3).
OR, IF POSSIBLE, would like to look at blanks, and deliver totals of C, i.e.
Studio = 3, Private = 1

Also, would it be possible to look at multiple sets of columns, Look at D,
E, H, I and deliver summary from C and G?
 
T

T. Valko

Try this:

=SUMPRODUCT((C2:C6="studio")*(D2:E6=""))
=SUMPRODUCT((C2:C6="private")*(D2:E6=""))
Also, would it be possible to look at multiple sets of
columns, Look at D, E, H, I and deliver summary
from C and G?

Just string them together:

=SUMPRODUCT((C2:C6="studio")*(D2:E6=""))+SUMPRODUCT((G2:G6="studio")*(H2:I6=""))
 
S

smartin

I don't quite follow you...
Look at Data in D & E. If blank, and if column C = "studio", then count
occurrences.

C D E
Studio Allen Barnes
Private Jones
Studio
Double Hayes Hayes
Studio Taylor
In this case, the answer should be (3).

3 is the number of occurrences of "studio" with no other conditions. If
the count depends on blanks in D & E, wouldn't the answer be 2?

[snipped]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top