Need formula that Counts items matching criteria using two columns

G

Guest

The formula in Column D should lookup the name in Column C, go to Column A
and find the corresponding name(s), then count the number of percents
opposite the corresponding name in Column B that are less than 90%. (I did a
manual count in Column D as illustration of what the final result should look
like.) Thanks !!!

Column A Column B Column C Column D (Formula
column)
Name Percent earnings Criteria Count
SMITH K 106% SMITH T 2
SMITH T 101% SMITH K
CHILDERS 97% ANDERSON 1
SMITH T 92% NEWTON
SMITH T 87% LEVINE 1
SMITH T 76% HOGAN
SMITH T 102% CHRISTOS
LEVINE 60% CHILDS
SMITH T 100% CATALDY
ANDERSON 77% BAKERS
 
G

Guest

=SUMPRODUCT(--(A2:A11=C2),--(B2:B11<0.9))

You will need to change the formating to the following custom format to show
a blank instead of zeros

General;-General;
 
G

Guest

=sumproduct(--(A$1:A$1000=C2),--(B$1:B$1000<0.9))
Enter that in D2 to get the count for SMITH T, then copy down as many rows
as you need. Also, change the row range to cover your entire dataset
(sumproduct can't take entire columns as input, though you could use
$A$1:$A$65536 if necessary).
 
G

Guest

Thanks so much !!!

Sloth said:
=SUMPRODUCT(--(A2:A11=C2),--(B2:B11<0.9))

You will need to change the formating to the following custom format to show
a blank instead of zeros

General;-General;
 
G

Guest

Thanks so much for all your help !!

bpeltzer said:
=sumproduct(--(A$1:A$1000=C2),--(B$1:B$1000<0.9))
Enter that in D2 to get the count for SMITH T, then copy down as many rows
as you need. Also, change the row range to cover your entire dataset
(sumproduct can't take entire columns as input, though you could use
$A$1:$A$65536 if necessary).
 

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