On Jul 18, 11:13*am, "joeu2004" <joeu2...@foo.bar> wrote:
> "kc0hwa" <kc0...@gmail.com> wrote:
> > On Jul 17, 5:35 pm, "joeu2004" <joeu2...@foo.bar> wrote:
> > > * For XL2007 and later:
> > > COUNTIFS($a$3:$a30,4,$b$3:$b30,5)
>
> > > * For XL2003 and earlier:
> > > SUMPRODUCT(($a$3:$a30=4)*($b$3:$b30=5))
> [....]
> > > SUMPRODUCT(--(($a$3:$a30=4)+($b$3:$b30=5)>0))
> [....]
> > if the cell, is string will this work
>
> The COUNTIFS works regardless of whether the cell content is text or
> numeric.
>
> The SUMPRODUCT needs to be changed as follows:
>
> SUMPRODUCT(($a$3:$a30="4")*($b$3:$b30="5"))
>
> or
>
> SUMPRODUCT(--(($a$3:$a30="4")+($b$3:$b30="5")>0))
>
> If you have further questions, please indicate what version of Excel you are
> using (XL2003, XL2007, XL2010, etc) and which solution best fits your needs:
> COUNTIFS, SUMPRODUCT with "*", or SUMPRODUCT with "+".
>
> That way, I do not have to duplicate so many things.
ya THAT IS NOT WORKING
COUNT FROM TOP DOWN FOR X
X=CONCATENATE(A30,D30)
=COUNTIF(CONCATENATE(A2:A30,D2

30),CONCATENATE(A30,D30))
OR
COUNTIF(($A$2:$A40,$A40) AND (COUNTIF($D$2:$D40,$D40))