Indirect function and processing power.

Eamonn100

Board Regular
Joined
Nov 12, 2015
Messages
156
I was wondering which of these two indirect formulas (that preform the same calculation) would use less processing power and not slow Excel down as much? Looks can be deceiving so I thought I'd ask those who would know for sure.



=INDIRECT($A$1&CELL("address",$b3))

=INDIRECT($A$1&ADDRESS(ROW($b3),COLUMN($b3))))
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
The only difference I can tell is you look up the address in one using a string key and the 2nd one you grab the values with row and column function (should be faster than a table lookup) and then address function creates the address using concatenation internally (guessing).

So to me the only difference is concatenating a string (converting 2 numbers to chars and building a new string array) or looking up the address in a table. I would assume doing the lookup is more efficient (the first one). I am totally guessing.

You should create a benchmark test. Use a stopwatch and call each one a thousand times and time it.
 
Last edited:
Upvote 0
I would say once INDIRECT has been introduced, the difference between using Cell and Address will be insignificant.
INDIRECT is the real performance hog in those formulas.
 
Upvote 0
Yeah I've read that Indirect is a drain but any saving between Cell and Address will help as at times I've got 20,000,000+ Indirect formulas.
 
Upvote 0
20 MILLION INDIRECT functions?

That's the problem. Not Cell or Address.
 
Last edited:
Upvote 0
CELL is probably better than ADDRESS+ROW+COLUMN. The trouble is that you invoke INDIRECT a terrible number of times, causing big recalc times.
 
Upvote 0
Do you need to use the INDIRECT function? Can you explain what you are wanting to achieve?
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,624
Latest member
gregg777

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top