ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Offset vs. Range references (https://www.excelbanter.com/excel-programming/410456-offset-vs-range-references.html)

Howard Kaikow

Offset vs. Range references
 
Which may expected to be faster:

1. Using , as needed, e.g., Range, Cell and Cells objects to reference
cells.
2. Using Offset off of a Range object to reference a well established
pattern of cells.

It would seem that Offset should be faster, but is it?
Experiences?
References?



Tim Williams

Offset vs. Range references
 
Typical expectation seems to be that reducing object "lookups" (ie. fewer
'dots' to get to the particular object) leads to better performance.

An example showing the two different methods you're considering would help.
Also -very easy to test...

Tim

"Howard Kaikow" wrote in message
...
Which may expected to be faster:

1. Using , as needed, e.g., Range, Cell and Cells objects to reference
cells.
2. Using Offset off of a Range object to reference a well established
pattern of cells.

It would seem that Offset should be faster, but is it?
Experiences?
References?





Howard Kaikow

Offset vs. Range references
 
"Tim Williams" <timjwilliams at gmail dot com wrote in message
...
Typical expectation seems to be that reducing object "lookups" (ie. fewer
'dots' to get to the particular object) leads to better performance.

An example showing the two different methods you're considering would

help.
Also -very easy to test...


My expectation is that Offset would be faster because there would be less
object lookups/assignments.

Performance difference would depend on the particular algorithms used and
coding skills.




All times are GMT +1. The time now is 11:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com