View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
shiro[_2_] shiro[_2_] is offline
external usenet poster
 
Posts: 28
Default COUNTIF with multiple criteria doesn't work

Hi all,
I'm trying to find the number of match value in a range
of cell by using multiple criteria,but can not get
the result that I want.I use COUNTIF function like below
but doesn't work:
=COUNTIF(A:E,AND(A2,B2,C2,D2,E2))

How to solve it.The function always return 0 (zero)although
there are similar value.Bu if I put single criteria,it works fine.

I work with Excel 2000 and the data type for each column is:

Column A : Date
Column B : Text
Column C : Text
Column D : Number
Column E : Number

Please helphow to corrected the formula.

Rgds,

Shiro.