Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 287
Default Intersect Operator vs Explicit Cell References and the Dependency

Currently I am trying to improve performance on one of my excel apps. In
this app I use the intersect operator and ranges, rather than using explicit
cell references.

Intersect: (DataRange Column1) * (DataRange Column2)
Explicit: (A1) * (B1)

If I look at dependencies of one of the cells in a range that I use in the
intesects, it shows a dependency of all the formulas that reference that
range. Is this a real dependecy? Am I incurring quite a bit of overhead
when using intersects? Where do babies come from?

Any thoughts would be appreciated!

Regards
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Intersect Operator vs Explicit Cell References and the Dependency



"Adam" wrote:

Currently I am trying to improve performance on one of my excel apps. In
this app I use the intersect operator and ranges, rather than using explicit
cell references.

Intersect: (DataRange Column1) * (DataRange Column2)
Explicit: (A1) * (B1)

If I look at dependencies of one of the cells in a range that I use in the
intesects, it shows a dependency of all the formulas that reference that
range. Is this a real dependecy? Am I incurring quite a bit of overhead
when using intersects? Where do babies come from?

Any thoughts would be appreciated!

Regards


Hello Adam,

I would review the Help files on the Intersect method. From the sounds of
it, you don't even need it. For example, let's look at the following ...

Range("A1:Z1")
...
Range("A1:A26")

The ranges are the same size, but in opposite directions. Each contain 26
cells, or unique Range Objects.

Intersect(Range("A1:Z1"), Range("A1:A26"))

This is a Range of 1 cell. (Can you guess which one?) So I'm a little
perplexed as to why you'd even want to use the Intersect method. Unless I am
not understanding something (highly possible/probable).

Regards,
Zack Barresse
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 287
Default Intersect Operator vs Explicit Cell References and the Depende

Yeah, I think I perhaps have gotten you confused. This is the operator
intersect and not the VBA function.

Cells that use the intersect operator are able to figure out the row that
they reside in, with respect to a range that it lies in, to retrieve a
specific value in a target column.

Now I need to find out if this triangulation type of operator is causing me
undue performance issues.

Regards,
Adam

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Intersect Operator vs Explicit Cell References and the Depende

Well, it is real dependency. But without you posting what you actually have
it will be a little difficult to see if it's not efficient enough (as it
could be) or not. I think it really depends on what you are doing. And yes,
you could be incurring quite a lot of overhead; depends on it's uses, again.

Please post.

--
Regards,
Zack Barresse, aka firefytr

"Adam" wrote:

Yeah, I think I perhaps have gotten you confused. This is the operator
intersect and not the VBA function.

Cells that use the intersect operator are able to figure out the row that
they reside in, with respect to a range that it lies in, to retrieve a
specific value in a target column.

Now I need to find out if this triangulation type of operator is causing me
undue performance issues.

Regards,
Adam

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
Change operator from cell value Gareth.Evans Excel Worksheet Functions 5 February 24th 09 02:30 PM
convert relative cell references to absolute cell references via amacro? Dave F[_2_] Excel Discussion (Misc queries) 1 May 15th 08 04:43 PM
Can I absolute cell an operator: and/or nastech Excel Discussion (Misc queries) 1 June 10th 07 10:19 PM
How to rename references from range names to cell references Abbas Excel Discussion (Misc queries) 1 May 24th 06 06:18 PM
how to get the intersect cell data out using vba or function mango Excel Worksheet Functions 1 December 30th 04 09:46 AM


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