LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Rosehill - ExcelForums.com
 
Posts: n/a
Default

As you say, the perimeter more often than not snakes around and is not
an orderly rectangle so the manual process is actually
countblank(range 1)+countblank (range 2) etc until all of the cells
are identified.

I envisage that VB code to do this would involve offseting (2,1) from
start /finish cell. This would identify the first blank cell in the
irregular range that is now surrounded by conceivably up to 8 blank
cells. Getting this far in code and even counting the blank cells
around the offset is no problem for me but then writing code to move
through the range that is bounded by the perimeter of 1's and
identify all of the blank cells is the problem. Yes I think the code
is complex. Its kind of like a search, identify and count mission
where the boundry of the search is a perimeter of ones.

Rosehill

 
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
Eliminate empty cells in data range Stephen Excel Discussion (Misc queries) 1 April 2nd 05 04:00 AM
Applying formula to only NON-EMPTY cells in range Tasi Excel Discussion (Misc queries) 5 March 29th 05 10:48 PM
counting cells in a range Charles Excel Discussion (Misc queries) 5 February 18th 05 11:59 PM
CountIF cells are not empty Wayne Excel Discussion (Misc queries) 3 January 6th 05 04:44 PM
Sumproduct ... Empty Cells vs Spaces? Ken Excel Discussion (Misc queries) 9 December 17th 04 08:03 PM


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