Workbooks that the sizes don't make sense and won't support formulas

mattxu2006

New Member
Joined
Mar 25, 2011
Messages
37
hello Gentlepeople

I have been given workbooks that are use more memory than makes sense.

All are data; no formulas.

the smallest is a xlsx file of 173MB.

91308 rows, 35 Columns

If I make a file with the same number of rows and columns, the file size is 8.76MB
copying and pasting values in a new workbook does not help.

These files also have problems calculations:
I need to match two of these workbooks to see if they have the same value for the same ID
I tried doing a sumif down one worksheet and it will not calculate down to the bottom row. About a 3rd of the way through, it just repeats the value down to the bottom.

I checked for non-printing characters. Only found 33.

Is there a way to check what may be happening in the background to make these workbooks so unwieldy?
Thanks
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
You could run this bit of code to see if there is unwanted "bloat"
Run the code save >>Close>>reopen !!

Code:
Public Sub MM1()
Dim ws As Worksheet
For Each ws In Worksheets
    ws.Activate
    ActiveSheet.UsedRange
Next ws
End Sub
 
Upvote 0
HI Michael
What is the intent of this macro? It appears that it would only activate each worksheet in the workbook.
 
Upvote 0
It ensures that each sheet is only using the actual Usedrange of data !
Not, as is sometimes the case, thousands of blank cells that are counted as data.
The code does not impact on any data, formulas, formatting etc.
 
Upvote 0
Hi Michael
Sorry for the slow reply. Weekends may do that.
The macro does not run.
I imagine that ActiveSheet.UsedRange is missing something?
 
Upvote 0
Where did you put the macro...works fine for me.
It may not appear to run, but it simply accesses each sheet and sets the usedrange to only that!!
 
Upvote 0
I found that this does not work in a module
I put it into Thisworkbook and it ran.
While it did not eliminate the bloat, it reduced the bloat a bit.

Thank you
 
Upvote 0
It won't reduce bloat if the usedranges are correct.....only CTRL + End takes you waaaay down the worksheet / s
 
Upvote 0
I did note in your first post you said

All are data; no formulas.

Then you said

These files also have problems calculations:

So, are There formulas on the sheet??
Is there conditional formatting on the sheet?
Are there, tables, pivot tables or graphs ?

What cell does CTRL + End take you to....is it at the end of the actual data ?
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,818
Members
449,049
Latest member
cybersurfer5000

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