+ Reply to Thread
Results 1 to 11 of 11

File size shrinks dramatically after deleting one inconsequential column

Hybrid View

  1. #1
    Registered User
    Join Date
    06-30-2018
    Location
    Austin, Texas
    MS-Off Ver
    2010
    Posts
    5

    File size shrinks dramatically after deleting one inconsequential column

    I have a 6MB Excel 2010 workbook containing several interrelated sheets and charts. None of the calculations are very complicated. The file was getting slow to load so I was looking for ways to reduce size. After making a copy of the workbook I started by deleting one simple column in one sheet (the column computed the diff between two other columns). I saved the file and was startled to see that the file size was now 400K. I've looked through the workbook and all the data (except the one column I deleted) appears to be there. What the heck happened? Can I trust the newly saved file to be complete?

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,269

    Re: File size shrinks dramatically after deleting one inconsequential column

    Hi Riley,

    I'd look for a bunch of small objects in that column that you deleted. Objects can take up lots of space, even if they are of size 0.

    To test my theory, use "Find & Select - Objects" and delete all objects instead of the column to see if it reduces filesize.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,641

    Re: File size shrinks dramatically after deleting one inconsequential column

    Hi there,

    A difference of about 5.5MB in the file sizes suggests (to me anyway ) that the deleted column contained a formula or value which had been copied down through all of the cells in that column.

    Regards,

    Greg M

  4. #4
    Registered User
    Join Date
    06-30-2018
    Location
    Austin, Texas
    MS-Off Ver
    2010
    Posts
    5

    Re: File size shrinks dramatically after deleting one inconsequential column

    Thanks for the replies.

    I searched the original workbook for objects and found only a few comments NONE of which were in the deleted column.

    The main sheet of the workbook, the one that has the most data, etc., on it, has six other columns with simple formulas replicated through 1300+ rows. The only difference in the formula in the deleted column is that it uses an absolute reference.

    Thanks again. This is really puzzling me.

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,269

    Re: File size shrinks dramatically after deleting one inconsequential column

    Hey rrriley,

    There is a tool called Power Up Utilities that can analyze what is on your sheets. I have it and it might be what you need to solve your problem. Find it at:

    http://spreadsheetpage.com/index.php/pupv7/home

    It has a tool called Object Report than would show any of my suspected hidden objects. There are many other tools telling you about your worksheets and workbook that might solve your puzzle.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: File size shrinks dramatically after deleting one inconsequential column

    What formulas where in that column (show them please) and how far down did they go?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Registered User
    Join Date
    06-30-2018
    Location
    Austin, Texas
    MS-Off Ver
    2010
    Posts
    5

    Re: File size shrinks dramatically after deleting one inconsequential column

    The column I deleted was column M. The formula was =$N$2-Bnnn. The formula started in row 768 and continued through the end (currently row 1348).

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: File size shrinks dramatically after deleting one inconsequential column

    OK, thats a simple enough formula, and not used excessively, so that should not have caused the problem.

    some other things to consider...
    For large files, Maybe try this...
    1. click end/home and see where the cursor lands.
    2, if it is "out in the middle of nowhere", start to CAREFULLY delete rows and columns until you get back to the last row and column that you KNOW contains data
    3. Save the file under a different name (so you don't mess up the orig file)
    4. Close and re-open and see if that helped?

    Also...
    for DV, make sure you are not referencing full-column/row ranges, use only the range you need.
    Check for range names that :"grew" or that are no longer needed (some may have come across with the DV sheets)

  9. #9
    Registered User
    Join Date
    06-30-2018
    Location
    Austin, Texas
    MS-Off Ver
    2010
    Posts
    5

    Re: File size shrinks dramatically after deleting one inconsequential column

    I think I fixed it but I don't understand it. Before I started I used Ctrl+End and that selected cell Y1048576. There was nothing in the cell and nothing I could see in any cell between that row and the end of data on row 1348. I tried selecting the empty rows and the file size increased. During this manipulation some highlighting appeared in the column that seems to be causing the problem (another column had fill set for the entire column.)

    I use fill to highlight columns for different things. For some reason there was some higlighting in the column I deleted (but not the entire column). I opened the original file, selected the column, then selected "no fill" for the column. I saved the file and checked the file size: down to 415K! And Ctrl+End now selects cell Y1348, 1348 being the last row that has data.

    So there it is. "Fixed" but with no understanding of why. Can anyone shed light on this? I hate not understanding stuff.

    Thanks to all who commented.

  10. #10
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: File size shrinks dramatically after deleting one inconsequential column

    This is the result of what is commonly referred to as excess content or excess cells. Excel thought the used range of cells went way beyond the range of cells you actually had content in. What you effectively did was clear out the excess content and Excel now sees the proper used range on that sheet.

    Its a pretty common issue and can be caused by numerous things, usually down to how data is moved to and manipulated on the sheet. How content is copied/pasted, how content is filled in a column/row, etc.

    As soon as Excel thinks a cell is significant, it has to track it, even if it doesnt literally have content in it. It does this for thing like sorting, filtering, calculations etc. Doing this takes up space in the file to keep track of those relationships with the other cells and values on the sheet.

    This can happen in the form of extra columns and/or rows in the used range beyond what you intended to use.

    The file size you are seeing now is likely the correct size for the amount of content you actually have. There are other forms of excess content that can take place in a file and eat up space, like named ranges, styles, formats even print settings. Its possible none, some or all of these are affecting things as well. Each is checked and remedied in different ways. Some like excess named ranges or styles can be fixed using tools that automate the process whereas excess cells generally cannot be remedied this way and requires human oversight as the base problem is the computer/program/code cant tell the difference between a cell with desired content in it or a cell with erroneous content in it.
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

  11. #11
    Registered User
    Join Date
    06-30-2018
    Location
    Austin, Texas
    MS-Off Ver
    2010
    Posts
    5

    Re: File size shrinks dramatically after deleting one inconsequential column

    Zer0Cool, thanks for the reply/explanation. I have no idea what I might have done to cause the problem but I'm glad it's fixed. Thanks again to all for the clues that illuminated the problem.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 08-18-2021, 10:24 PM
  2. [SOLVED] Listbox size shrinks when items are loaded
    By efernandes67 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-30-2013, 10:37 AM
  3. Replies: 1
    Last Post: 05-26-2012, 06:44 AM
  4. Spreadsheet shrinks to abour 1/3 size when...
    By dj16 in forum Excel General
    Replies: 3
    Last Post: 04-14-2009, 04:03 PM
  5. Replies: 2
    Last Post: 02-27-2008, 04:39 AM
  6. Drop down list shrinks as you go down column
    By D.Farns in forum Excel General
    Replies: 7
    Last Post: 06-16-2006, 08:40 AM
  7. The picture use as background increase dramatically the size
    By .·:m·a·r·l·a:&m in forum Excel General
    Replies: 1
    Last Post: 03-11-2005, 10:06 AM
  8. Worksheet shrinks in size in Excel 2000
    By keith253 in forum Excel General
    Replies: 2
    Last Post: 01-13-2005, 02:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1