Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Avoid counting rows/columns with formula but no values


Hi!

I've got a large table with cells that contain formulas like this;

=IF(Sheet1!E2="";" ";Sheet!E2)

I want to find the range of this table by counting rows and columns
using:

ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row
ActiveSheet.Cells(1, Columns.Count).End(xlToLeft).Column

However, these Counts include all cells that contain the above formula.
I just want to count those that display a value as specified in the IF
statement.

Help much appreciated!


--
magnuc
------------------------------------------------------------------------
magnuc's Profile: http://www.excelforum.com/member.php...o&userid=37862
View this thread: http://www.excelforum.com/showthread...hreadid=574111

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 do I avoid copying data from hidden rows/columns? Fred Excel Discussion (Misc queries) 2 February 22nd 08 08:43 PM
Counting Values Across Columns frankjh19701 Setting up and Configuration of Excel 12 December 6th 06 02:47 PM
counting rows with same values for multiple values Jon Viehe New Users to Excel 4 September 1st 05 03:49 PM
Counting rows, then counting values. Michael via OfficeKB.com Excel Discussion (Misc queries) 7 August 4th 05 10:57 PM
Counting Rows Then Counting Values in Columns Michael via OfficeKB.com Excel Programming 1 June 1st 05 04:10 PM


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