Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 85
Default count within a range

I think this is simple, but I am stuck. I have a named range with 6 rows
and 4 columns. Not all cells in this range are occupied. I want to count
the number of entries on the 5th row of this range, for instance. There are
many named ranges I want to use the same code on, so I do not want to just
hard reference that section of that range. I am wanting to use the
'application.counta' function vs. a loop. Thanks, Mike Allen


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default count within a range

application.CountA(Range("MyRange").Rows(5))

--
Regards,
Tom Ogilvy

"mike allen" wrote in message
...
I think this is simple, but I am stuck. I have a named range with 6 rows
and 4 columns. Not all cells in this range are occupied. I want to count
the number of entries on the 5th row of this range, for instance. There

are
many named ranges I want to use the same code on, so I do not want to just
hard reference that section of that range. I am wanting to use the
'application.counta' function vs. a loop. Thanks, Mike Allen




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
Count Vaules in a range that appear in another range T Newbery Excel Worksheet Functions 5 February 11th 10 05:08 PM
Count within a Range Q Sean Excel Worksheet Functions 10 February 20th 08 07:47 PM
Multiple Criteria, Count If, Sum Product to get count across range Jonathan Excel Worksheet Functions 5 January 9th 08 11:32 PM
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM
Count cells in one range based on parameters in another range dave roth Excel Worksheet Functions 2 March 29th 05 05:33 PM


All times are GMT +1. The time now is 11:44 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"