try this
=COUNTIF(A1:G1,A5)

Signature
starguy
Harry - 17 Jul 2006 13:28 GMT
Thanks for replying but that only works if A1:G1 equals A% and doesn't aloow
for any cell in the range being less than A5
harry
> try this
> =COUNTIF(A1:G1,A5)
=COUNTIF(A1:G1,"<="&A5)
Regards
Dav

Signature
Dav
=COUNTIF(A1:G1,"<="&A5)
Regards,
Alan.
> How do I do a Countif of cells A1:G1 to check if they are equal to or less
> than the value in cell A5.
>
> TIA
> Harry
Dav - 17 Jul 2006 14:32 GMT
Two of us have come up with the same solution are your sure it does no
work?
If A5 is text and not the value in cell a5 COUNTIF(A1:G1,"<=A5")
Regards
Da
starguy - 17 Jul 2006 14:38 GMT
Dav Wrote:
>
> If A5 is text and not the value in cell a5 COUNTIF(A1:G1,"<=A5")
> Regards
> Dav
< this sign can only be used for numbers not for text.
=COUNTIF(A1:G1,"<=A5") this should work right.

Signature
starguy