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: 92
Default Faster way to find what part of a range (actually addresses) not intersect with another one?

Hi

I got two addresses in sheet cells, it could be : Stored address: $V
$10:$V$25,$V$31:$V$48,$V$54:$V$71 and current sheet result: $V$10:$V
$25,$V$32:$V$48,$V$54:$V$71 .

They tell me what rows are filled with data and I get stored address
from code like Let Range("rowsData") =
Columns("V:V").SpecialCells(xlCellTypeFormulas, 1).Rows.Address .
How can I compare these addresses and get the range that is similar.
Above, you see in current range/address that cell/range "V32" is a row
with data content which dosen't the stored has. V32 should then be
Hidden = false - I hide empty rows.


NO LOOP
I want a faster solution than to use "for each .. next" to compare
each cell in one range and test if it intersect with the other range.
That take to long because the addresses use to be much longer and more
complex than the two I wrote above.


With that knowledge, I can just hide/show that particular row/rows
that differ, and that should be much faster than current solution I
got. I want to just run Range("V32").entirerows.hidden = false in this
particular example.
If stored area $V$31:$V$48 instead would have current sheet result $V
$30:$V$48, then i want to make it Hidden= true, of cource.

So, how do I get Range("V32") from these two addresses, where one of
them is a stored address ?

Kind regards
Tskogstrom

 
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
Find Range Borders (Cell Addresses) In VBA FARAZ QURESHI Excel Discussion (Misc queries) 8 May 16th 09 06:16 AM
Find part data in row range? Fluke Excel Worksheet Functions 1 September 11th 06 11:31 PM
how to find an intersect of two columns sarora New Users to Excel 3 May 31st 06 03:32 AM
How do I find where a column value and row value intersect? Amy Excel Worksheet Functions 2 January 12th 05 11:19 PM
lookup, intersect, find ? Tom Ogilvy Excel Programming 0 September 14th 04 04:49 PM


All times are GMT +1. The time now is 03:41 AM.

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"