View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rick Rothstein Rick Rothstein is offline
external usenet poster
 
Posts: 5,934
Default Count cells w/values in column if the data in column a matches cri

That will only work in XL2007 (earlier versions need delimited column ranges
for its arrays). I think I would use delimited ranges even in XL2007
however... not sure how efficient it would be to let array calculations
extend across one million plus rows.

--
Rick (MVP - Excel)


"Shane Devenshire" wrote in
message ...
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.