#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Antonio
 
Posts: n/a
Default Speed issues

What is faster, to refer to a cell via its address (in a different worksheet)
or via a name?

Also, how fast is the offset function?

I can do vlookup, sumif and sum with a range that has the limits determined
dynamically with the offset function or using large fixed ranges. Which one
is faster?

Thanks,

Antonio
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default Speed issues

Hi Antonio,

Impossible to say. Vlookup for 10,000 cells can vary from several minutes to a split second, depending on the value of the 4th
argument and the value to be looked up.
Please explain in some more details what problem you're trying to solve.

--
Kind regards,

Niek Otten



"Antonio" wrote in message ...
| What is faster, to refer to a cell via its address (in a different worksheet)
| or via a name?
|
| Also, how fast is the offset function?
|
| I can do vlookup, sumif and sum with a range that has the limits determined
| dynamically with the offset function or using large fixed ranges. Which one
| is faster?
|
| Thanks,
|
| Antonio


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Antonio
 
Posts: n/a
Default Speed issues

For example, I am using the following formula:

=SUM(U5:OFFSET(U5,'EQ INV'!E1,0))

I could also use:

=SUM(U5:OFFSET(U5,N_NAMES,0)) (where N_NAMES='EQ INV'!E1)

or even

=SUM(U5:$U$20000)


Since I use a similar expression as the first one in many cells in a large
spreadsheet I am wondering if it is the fastest.

The workbook calculates slowly and optimisation would be helpful.

Looping via VBA to check execution times is not the same thing because the
formulas and processes are not equivalent.

Manual testing is a way to check but it requires a lot of time.



"Niek Otten" wrote:

Hi Antonio,

Impossible to say. Vlookup for 10,000 cells can vary from several minutes to a split second, depending on the value of the 4th
argument and the value to be looked up.
Please explain in some more details what problem you're trying to solve.

--
Kind regards,

Niek Otten



"Antonio" wrote in message ...
| What is faster, to refer to a cell via its address (in a different worksheet)
| or via a name?
|
| Also, how fast is the offset function?
|
| I can do vlookup, sumif and sum with a range that has the limits determined
| dynamically with the offset function or using large fixed ranges. Which one
| is faster?
|
| Thanks,
|
| Antonio



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default Speed issues

Hi Antonio,

<I could also use: =SUM(U5:OFFSET(U5,N_NAMES,0)) (where N_NAMES='EQ INV'!E1)

No. You would have to use the INDIRECT() function

<or even =SUM(U5:$U$20000)

That would be lightning fast. Do that and forget about optimizing. You'll never match the speed of these intrinsic Excel
functions.

Why don't you set up a test sheet with (say) 10,000 entries, try the different methods, time them AND CHECK RESULTS for
correctness?

Very good info on performance can be found on Charles William's site:

www.decisionmodels.com


--
Kind regards,

Niek Otten


"Antonio" wrote in message ...
| For example, I am using the following formula:
|
| =SUM(U5:OFFSET(U5,'EQ INV'!E1,0))
|
| I could also use:
|
| =SUM(U5:OFFSET(U5,N_NAMES,0)) (where N_NAMES='EQ INV'!E1)
|
| or even
|
| =SUM(U5:$U$20000)
|
|
| Since I use a similar expression as the first one in many cells in a large
| spreadsheet I am wondering if it is the fastest.
|
| The workbook calculates slowly and optimisation would be helpful.
|
| Looping via VBA to check execution times is not the same thing because the
| formulas and processes are not equivalent.
|
| Manual testing is a way to check but it requires a lot of time.
|
|
|
| "Niek Otten" wrote:
|
| Hi Antonio,
|
| Impossible to say. Vlookup for 10,000 cells can vary from several minutes to a split second, depending on the value of the 4th
| argument and the value to be looked up.
| Please explain in some more details what problem you're trying to solve.
|
| --
| Kind regards,
|
| Niek Otten
|
|
|
| "Antonio" wrote in message ...
| | What is faster, to refer to a cell via its address (in a different worksheet)
| | or via a name?
| |
| | Also, how fast is the offset function?
| |
| | I can do vlookup, sumif and sum with a range that has the limits determined
| | dynamically with the offset function or using large fixed ranges. Which one
| | is faster?
| |
| | Thanks,
| |
| | Antonio
|
|
|


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Antonio
 
Posts: n/a
Default Speed issues

Thank you Niek for the link, it is quite helpful. Basically what I was
looking for.

Antonio

"Niek Otten" wrote:

Hi Antonio,

<I could also use: =SUM(U5:OFFSET(U5,N_NAMES,0)) (where N_NAMES='EQ INV'!E1)

No. You would have to use the INDIRECT() function

<or even =SUM(U5:$U$20000)

That would be lightning fast. Do that and forget about optimizing. You'll never match the speed of these intrinsic Excel
functions.

Why don't you set up a test sheet with (say) 10,000 entries, try the different methods, time them AND CHECK RESULTS for
correctness?

Very good info on performance can be found on Charles William's site:

www.decisionmodels.com


--
Kind regards,

Niek Otten


"Antonio" wrote in message ...
| For example, I am using the following formula:
|
| =SUM(U5:OFFSET(U5,'EQ INV'!E1,0))
|
| I could also use:
|
| =SUM(U5:OFFSET(U5,N_NAMES,0)) (where N_NAMES='EQ INV'!E1)
|
| or even
|
| =SUM(U5:$U$20000)
|
|
| Since I use a similar expression as the first one in many cells in a large
| spreadsheet I am wondering if it is the fastest.
|
| The workbook calculates slowly and optimisation would be helpful.
|
| Looping via VBA to check execution times is not the same thing because the
| formulas and processes are not equivalent.
|
| Manual testing is a way to check but it requires a lot of time.
|
|
|
| "Niek Otten" wrote:
|
| Hi Antonio,
|
| Impossible to say. Vlookup for 10,000 cells can vary from several minutes to a split second, depending on the value of the 4th
| argument and the value to be looked up.
| Please explain in some more details what problem you're trying to solve.
|
| --
| Kind regards,
|
| Niek Otten
|
|
|
| "Antonio" wrote in message ...
| | What is faster, to refer to a cell via its address (in a different worksheet)
| | or via a name?
| |
| | Also, how fast is the offset function?
| |
| | I can do vlookup, sumif and sum with a range that has the limits determined
| | dynamically with the offset function or using large fixed ranges. Which one
| | is faster?
| |
| | Thanks,
| |
| | Antonio
|
|
|



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
sumproduct, arrays affecting speed Dave Breitenbach Excel Worksheet Functions 4 December 1st 05 11:16 PM
Can you speed UP drag speed? Ryan W Excel Discussion (Misc queries) 1 October 24th 05 06:09 PM
Speed up and slow down, the auto-scroll. Jack Tripper Excel Discussion (Misc queries) 0 September 11th 05 03:54 PM
How to Reduce Spreadsheet Size and Speed ExcelMonkey Excel Worksheet Functions 4 August 9th 05 06:38 PM
How do I change scroll speed? fido Setting up and Configuration of Excel 4 March 18th 05 01:52 AM


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