View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpeltzer
 
Posts: n/a
Default Need formula that Counts items matching criteria using two columns

=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).

"Juana Cafe" wrote:

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