CountIf with AND

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to count the number of cells that meet a specific criteria in two column ranges.
=COUNTIF(AND(E2:E62,"7th Avenue",B2:B62,"6A - 2P")
The error returned is "You've entered too few arguments for this function"
 
Using COUNTIF and AND together is like asking a Shiite
Muslim and a Sunni Muslim to hug...it ain't gonna happen.
Try:

=SUMPRODUCT(--(E2:E62="7th Avenue"),--(B2:B62="6A - 2P"))

HTH
Jason
Atlanta, GA
 
Back
Top