PC Review


Reply
Thread Tools Rate Thread

How to count non-empty cells

 
 
=?Utf-8?B?U3RldmVU?=
Guest
Posts: n/a
 
      9th Oct 2006
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 With Quote
 
 
 
 
Paul B
Guest
Posts: n/a
 
      9th Oct 2006
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" <(E-Mail Removed)> wrote in message
news:5D869053-0935-49F7-8FCA-(E-Mail Removed)...
> 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 With Quote
 
Tom Ogilvy
Guest
Posts: n/a
 
      9th Oct 2006
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" <(E-Mail Removed)> wrote in message
news:5D869053-0935-49F7-8FCA-(E-Mail Removed)...
>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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count no empty cells at the right of a selection avi Microsoft Excel Programming 2 7th Jul 2011 10:44 PM
How to count the number of cells not empty? Eric Microsoft Excel Misc 9 19th Apr 2010 09:46 PM
Count Empty Cells in Range After Cells with Data =?Utf-8?B?RGF2aWQ=?= Microsoft Excel Programming 16 17th Sep 2006 03:03 PM
Count Only Empty Cells AFTER Cells with Data =?Utf-8?B?RGF2aWQ=?= Microsoft Excel Worksheet Functions 2 15th Sep 2006 06:05 PM
count for empty cells =?Utf-8?B?dGlrY2h5ZV9vbGRMZWFybmVyNTc=?= Microsoft Excel Misc 6 25th May 2006 08:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:19 AM.