=COUNTIF(B2:B6,"<D2")
will test for a text value which is less than the value of the text "D2" in
B2:B6
=COUNTIF(B2:B6,"<" & D2)
will test for value which is less than in that in cell D2.
D2 can contain data of various formats not just text.
So if D2=10 (numeric) , it will test for numbers < 10: the equivalent
formula is:
=COUNTIF(B2:B6,"<10")
HTH
"AFJr" wrote:
I found the answer to my problem in this post:
http://www.microsoft.com/office/comm...=en-us&m=1&p=1
but I don't understand why this works when using a cell reference for
criteria. Does it work because the reference is text? If someone could
explain it to me I would appreciate it.
TIA