LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default count the number of nonblank cells within a range

i want to be able to count cells within a range that are non blank or have a
value in them.

i am able to count all cells by doing

ncells = range("a1","120").cells.count

is there a similar code that will count the cells which only have a value in
them.

the only way i can think of doing this is either a loop and selecting each
cell within the range or by using the counta function within excel itself.

thank you in advance
Hervinder
 
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
count nonblank cells Art Excel Worksheet Functions 3 March 14th 10 10:54 AM
count nonblank cells with conditions DB Excel Worksheet Functions 2 March 6th 09 09:03 PM
Count nonblank cells based on another column SandyB Excel Worksheet Functions 1 January 12th 09 10:33 PM
count 2 nonblank cells on multiple worksheets April Excel Discussion (Misc queries) 1 April 18th 06 09:15 AM
How do I count nonblank cells in rows within Excel? JoJo New Users to Excel 1 February 14th 06 04:11 PM


All times are GMT +1. The time now is 11:31 PM.

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

About Us

"It's about Microsoft Excel"