try this idea
=COUNTIF(A:A,"<" &d2)
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"J.W. Aldridge" <(E-Mail Removed)> wrote in message
news:3dc06f0b-cc5b-4899-9d0e-(E-Mail Removed)...
> =COUNTIF(formalin_count,"<=d$2")
>
> formalin_count consist of a string of times (F6:F64999)
> ie 07:00 - 19:00
>
> d2 consist of a time (the end/max time). (18:00)
>
> I am trying to get the count of instances up until the time given in
> D2.
>
> The question is how to get this to read the reference D$2 ?
>
> thanx
>
>