View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Paul B Paul B is offline
external usenet poster
 
Posts: 709
Default How to count non-empty cells

SteveT, here is one way,
=COUNTA(A1:A20)-COUNTIF(A1:A20,"n")

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"SteveT" wrote in message
...
I have a range of cells with various values (dates, letter N, letter P).

I
want to count the number of cells within the range that don't have the

letter
N. I don't want to add contents, just get the number of cells that

contain a
value. Can someone tell me how this is done?
--
-----------
Thanks,
Steve