> hi u can try a countif function
>
[quoted text clipped - 3 lines]
>
> thanks.
Erm, the above function will count the number of cells containing <>.
Not what the OP asked for. It should read:
=COUNTIF(D17:D21,"<>""")
Or an easier way of counting cells that aren't empty would be:
=COUNTA(D17:D21)
As the purpose of COUNTA is to count non-empty cells, no condition is
required. Whereas, the COUNT formula requires the <>"" which checks that
the cell is not equal to an empty string "". Although, as this condition
itself has to be in inverted commas, you end up with the clunky "<>"""
HTH,
Jay