Ask
25

Why a workbook balloons to hundreds of megabytes, and what actually shrinks it

A file that grows without the data growing is nearly always one of a short list of causes. In rough order of how often it is the answer.

  • The used range is enormous. Something once touched row 900,000 and the file has remembered ever since. Check where Ctrl with End takes you. If it is far past your data: delete the entire block of empty rows and columns below and to the right, save, close, reopen. This alone routinely takes a file down by most of its size.
  • Formatting applied to whole columns. Selecting column A and setting a fill colours a million cells. Format the used range, not the column.
  • Conditional formatting rules that have been copied. Open the rules manager and look at the count. Copying rows duplicates rules, and thousands of near-identical rules is both size and slowness.
  • Images and shapes pasted at full resolution, including invisible leftovers. There is a selection pane that lists every object on the sheet; people are usually surprised.
  • Volatile formulas everywhere. Not size but the same symptom, since the file feels unusable. Anything that recalculates on every change makes a large sheet crawl.
  • Old defined names and links to dead workbooks. Both accumulate silently.

If it is still large: the file is a zip. Rename a copy and open it, and the folders will show you where the weight is, usually one sheet or one media folder. That takes a minute and turns guessing into looking.

The structural fix: when a workbook is genuinely holding a lot of rows, move the data out and keep the workbook as the view. Spreadsheets are excellent interfaces and mediocre databases.

8 answers Share
Report

Answering anonymously, a moderator will review it first.

  • @split_the_data · 3w ago

    Moved a 600MB workbook to a small database with the sheet as a front end and it went to a couple of megabytes.

    Worth saying what you give up though: everyone loses the ability to just open the file and poke at it, which for a small team is a real cost. I would only do this once the file is genuinely unusable, not as a matter of principle.

    17
    Share
    Reply

    Answering anonymously, a moderator will review it first.

    Report
  • @used_range_trap · 3w ago · 2 replies

    The used range is the answer more often than everything else combined, and the reason it is so common is that it is invisible: you delete the contents, the cells stay used.

    The fix people miss is that deleting the rows is not enough on its own. You have to delete, then save and reopen, because the stored range is only rebuilt on save. Plenty of people try this, see no change, and conclude it was not the problem.

    24
    Share
    Reply

    Answering anonymously, a moderator will review it first.

    Report
    • @pivot_cache_pat · 2w ago

      Formatting applied to whole columns is the other invisible one. Selecting column A and styling it can touch a million rows.

      11
      Share
      Reply

      Answering anonymously, a moderator will review it first.

      Report
  • @pivot_cache_pat · 2w ago · 2 replies

    Missing from the list and it was my whole problem: pivot table caches. Every pivot stores its own copy of the source data, and if six pivots point at the same 200,000 rows you are carrying six copies inside the file.

    Sharing one cache between them took a 340MB file to 60MB without deleting anything. It is a checkbox when you create the pivot and nobody ever finds it.

    22
    Share
    Reply

    Answering anonymously, a moderator will review it first.

    Report
    • @used_range_trap · 2w ago

      That one is genuinely invisible from the sheet, which puts it in the same family as the used range.

      13
      Share
      Reply

      Answering anonymously, a moderator will review it first.

      Report
  • @images_pasted · 2w ago

    A database with the sheet as a front end is right and it is a bigger change than people expect. Worth it above a certain size.

    8
    Share
    Reply

    Answering anonymously, a moderator will review it first.

    Report
  • @file_ballooned · 3w ago · 2 replies

    The zip trick is the fastest diagnostic here and nobody knows it. Rename a copy, open it, look at which folder is heavy. Two minutes and you stop guessing which of the six causes above it is.

    1
    Share
    Reply

    Answering anonymously, a moderator will review it first.

    Report
    • @images_pasted · 2w ago

      The zip diagnostic will show you this immediately: if the media folder is the heavy one, somebody pasted screenshots. A pasted image keeps its full resolution regardless of how small it looks on the sheet.

      I found 90MB of screenshots that were displayed at thumbnail size.

      17
      Share
      Reply

      Answering anonymously, a moderator will review it first.

      Report