Making workbook lighter / optimizing

Beneindias

Board Regular
Joined
Jun 21, 2022
Messages
120
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi everybody.

I'm trying to make my workbook lighter to calculate, but I have a question.

Is lighter to use a named formula a few times in the same row, or should I use helper columns and compare the result in the other cells?

For example 1: Using named formula in all cells "XYZ" that it's like that:
"XYZ"=IF(OR(AND(A1=10;A2=11);AND(A1=5;A2=51)))

Cell O:
=If(XYZ;"Yes")

Cell K:
=If(XYZ;4+5)

For example 2: Using an helper cell:
"XYZ"=IF(OR(AND(A1=10;A2=11);AND(A1=5;A2=51)))

Cell I (helper cell):
=XYZ

Cell O:
=IF(I=TRUE;"Yes")

Cell K:
=IF(I=TRUE;4+5)

Which one would be lighter to recalculate?

I know this to simple, but I'm trying to do this in cells and formulas with a lot of logic and sometimes more than 10 parameters.

Can you help me with this?


Thank you all
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
test it

use this macro

Sub testSpeed()

Dim star As Double
Dim time As Double

star = Timer
Application.Calculate
time = Timer - star

MsgBox "Calculated in " & time & "seconds"

End Sub
 
Upvote 0
test it

use this macro

Sub testSpeed()

Dim star As Double
Dim time As Double

star = Timer
Application.Calculate
time = Timer - star

MsgBox "Calculated in " & time & "seconds"

End Sub
Thanks.

Will try that
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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