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: 15
Default To find number of non-empty cells across columns

Hi guys,

I regularly use the following code to count the number of occupied rows in a
sheet:

Sheets(1).Cells(Rows.Count, "A").End(xlUp).row

I tried replacing ros with columns and A with 1 but it wont work for columns
(i.e. count the number of non empty cells in row 1).

Anyone know how to convert it into a column counter?

Help much appreciated, kind regards, Mark


 
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 the number of columns on row that are not empty within a ran Mathew Excel Discussion (Misc queries) 3 March 30th 10 07:34 PM
how to return non empty cells over several columns iago Excel Discussion (Misc queries) 4 June 11th 07 03:31 PM
Filling in empty cells in columns koba Excel Discussion (Misc queries) 2 November 8th 05 10:03 PM
Find empty cells Maria[_7_] Excel Programming 0 March 29th 05 08:02 AM
Make all empty cells in columns = 0 poppy Excel Programming 3 July 22nd 04 10:27 AM


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