Formula impact on file size, memory etc.

rdw72777

Well-known Member
Joined
Apr 5, 2005
Messages
723
I just had a thought as I'm trying to optimize an Excel file with hundreds of thousands of formulas that I need to trim down the file size on.

It was always my understanding that array formulas were the most file size/memory impacting, then Sumif/Countif type formulas, then standard formulas like Vlookups/Count and then simple formulas like "=A1+A2"

Does anyone know if my understanding is correct? I just want to have the most knowledge as I try to go through this. I'm thinking I could shrink the range on my SUMIF's (instead of using the whole column as a range, maybe just use the first 100,000 rows since the range should never be that big) but want to optimize this thing the best I can.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Shrink the range on your SUMIFs, and your VLOOKUPs and your MATCHes, and anything else that references ranges. 100,000 rows is still massive ... consider using named ranges or data tables so as not to reference any blank areas unnecessarily. Named ranges can be dynamic using a formula to calculate the referenced area, or even maintained by VBA worksheet events redefinining the named area when data changes.
 
Upvote 0
I just had a thought as I'm trying to optimize an Excel file with hundreds of thousands of formulas that I need to trim down the file size on.

Just to add to Glenn's comments;

It's not just formulas that can impact on the size of an Excel file, look at the formatting of the cells as well and make sure that only the cells that need to be formatted are.

Some people quite happily format the whole of a column or a row (or worse, both) with say a font or a colour when all they really need to do is the first three columns.
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,879
Members
452,948
Latest member
Dupuhini

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