Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to count non-empty cells

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to count non-empty cells

How does this question relate to your topic.

i = Application.Countif(Range("A1:Z26"),"<N")

j = Application.CountBlank(Range("A1:Z26"))



--
Regards,
Tom Ogilvy


"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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to count the number of cells not empty? Eric Excel Discussion (Misc queries) 9 April 19th 10 09:46 PM
Count Empty Cells in Range After Cells with Data David Excel Programming 16 September 17th 06 03:03 PM
count for empty cells tikchye_oldLearner57 Excel Discussion (Misc queries) 6 May 25th 06 08:41 PM
count non empty cells if other cell has certain value Nico Excel Discussion (Misc queries) 5 May 18th 06 10:40 AM
How do I count cells in spreadsheet that are not empty? Paul Excel Programming 1 October 11th 05 07:32 PM


All times are GMT +1. The time now is 01:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"