Another possibility on reducing file size?

Tim Grollman

Board Regular
Joined
Feb 24, 2002
Messages
129
I've got a large file with several sheets of 40,000 lines and half a dozen columns. To try and reduce the size of the file I have cleared all unoccupied cells and saved as much as possible as values. I can't store the data as a pivot table.

Another thing which seems to be helping is replacing where possible whole words with codes, so instead of Afghanistan, Albania etc I am saying 1, 2 etc, and pulling back the real name later on. This is apparently having some effect, but not as much as I was hoping. Does one character in a cell occupy 1 Byte of memory? And if so, does a column of 20k single characters occupy 20k of memory? And if so, does the number 123 occupy 3 Bytes? and if so, could I reduce it to a single Byte by coding it as capital H, say?

Thanks to anyone who can advise me on this or on other ways of reducing file size. I have had a quick look at the search results for this, so apologies if I'm suggesting something already well known.

Tim
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Things like getting rid of unnecessary formatting will help but I'd suggest another search on 'bloat' for a few more hits on reducing file size.

HTH
 
Upvote 0
Try this...But first save the file under a different name..
Often this decreases the file size, sometimes it increases it.
I don't know why.

1. Rename your file.
2. Click the top right "X" to close the Excel Application.
3. Click on 'Cancel' (keep Excel open).
4. Click on the 2nd top-right "X" to close your file
5. Choose 'yes' to save changes.

Good luck.

Another option is to copy the datarange on each page over to a new a file. This often reduces phantom bloat.
 
Upvote 0

Forum statistics

Threads
1,215,049
Messages
6,122,864
Members
449,097
Latest member
dbomb1414

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