View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Shane Devenshire[_2_] Shane Devenshire[_2_] is offline
external usenet poster
 
Posts: 3,346
Default Count cells w/values in column if the data in column a matches cri

Hi,

=SUMPRODUCT(--(A:A=C1),--(B:B<""))

Here the criteria is in C1.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"mdcgpw" wrote:

I need a formula that counts the number of cell that contain data in column B
as long as the corresponding cell in column A matches a given criteria.