+ Reply to Thread
Results 1 to 8 of 8

Reducing File Size

  1. #1
    Registered User
    Join Date
    08-20-2014
    Location
    CLT
    MS-Off Ver
    2010
    Posts
    61

    Reducing File Size

    Good afternoon,

    I have a weekly report I create that steadily increases file size and is up to 17MB. I have just reset the report for the year which allowed me to delete numerous rows; however, the file size is still 16MB. Each week I just update the previous weeks file with the new information and the file seems to grow by approximately 1MB. This current report only has ~200 rows in it. Any ideas on what I can do to reduce the file size? Prior weeks with the same amount of pivots have been as low as 13MB. The report consists of numerous pivot tables (14 pivots) which will eventually use a range of 3,000+ rows for 7 and a different range consisting of up to 300 rows for the other 7. Do pivots somehow store memory from past ranges?

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Reducing File Size

    It is a common practice to save excel files as .xlsb (Excel Binary Workbook) in order to reduce the size. This is a relatively new extension but it is becoming a very popular one.
    To learn more about .xlsb format see link below

    http://blog.datasafexl.com/excel-art...binary-format/
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Reducing File Size

    Your data range might still be linked to your source data. Try Data, Connections, Edit Links. Break the links if possible.
    Pete

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,888

    Re: Reducing File Size

    I'd suggest checking if there's unnecessary PivotCache that's duplicated from same data source.

    Following link has code to check.
    http://ramblings.mcpher.com/Home/exc...ets/pivotcache

    Also, check used range of each sheet (CTRL + END) and clear unnecessary contents/formats.

  5. #5
    Registered User
    Join Date
    08-20-2014
    Location
    CLT
    MS-Off Ver
    2010
    Posts
    61

    Re: Reducing File Size

    Thank you! Is there any other way of achieving this without using xlsb extension out of curiosity? I found some things regarding Pivot Cache, would that be applicable in this situation do you think?

  6. #6
    Forum Contributor
    Join Date
    12-18-2016
    Location
    London
    MS-Off Ver
    Microsoft 2013
    Posts
    145

    Re: Reducing File Size

    Select the range which you do not need any kind of formatting.
    Home Tab > Editing Group > Clear > Clear Formats
    And
    Save the Excel file in .xlsb File Format

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Reducing File Size

    As Amanda has suggested, formatting can play a big part in file size.

    Also, it is often related to formulae or blank cells being copied down the entire worksheet; or formatting; or Conditional Formatting. If you do use Conditional Formatting extensively, deleting and adding rows can break up the CF rules which take a lot of processing.

    The first thing that I would try is to press Ctrl-End on each worksheet and see where it ends up. If it is way beyond the actual data, then you need to delete excess rows and columns. Select all the rows after the live data and delete them using the Delete icon on the ribbon rather than the Delete key. Similarly with columns.

    I would be inclined to re-create all the Pivot Tables from scratch. That said, if you've cleaned up the data, it might be worth copy the data sheets to a new workbook and starting afresh there. Clean workbook ... clean start. And it gives you a backup should you get anything wrong
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  8. #8
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Reducing File Size

    Reason behind large file size :
    > File type : If file extention .xlsx save it as an Excel Binary Worksheet (.xlsb)
    >Unused / blank column & row. Kindly delete those. (Locate CTRL + END cell on each worksheet)
    >Remove Conditional Formatting.
    >Which formulas use. Formulas like SUMPRODUCT SUMIF and VLOOKUP or HLOOKUP tend to increase the size and slow down the workbook.
    >Pictures: Do you have any images in your file?
    >Pivot Tables: Pivot Tables store the underlying data so (depending on the number of Pivot Tables) in worst case, each Pivot Table contains the data set.
    >File link with others.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

+ 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. [SOLVED] Reducing xlsm file size.
    By Graham Pall in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-10-2015, 10:31 AM
  2. [SOLVED] Reducing the size of the CSV while saving the file
    By plasma33 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-20-2012, 02:46 AM
  3. Reducing file size
    By jonnyyyl in forum Excel General
    Replies: 11
    Last Post: 04-07-2012, 12:10 PM
  4. Reducing file size
    By danidanii in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 03-14-2011, 08:35 AM
  5. [SOLVED] Reducing File Size
    By Jay in forum Excel General
    Replies: 8
    Last Post: 07-23-2006, 06:25 AM
  6. [SOLVED] reducing file size
    By FBr in forum Excel General
    Replies: 0
    Last Post: 03-08-2006, 09:35 PM
  7. [SOLVED] Reducing file size
    By Scott Summerlin in forum Excel General
    Replies: 2
    Last Post: 08-25-2005, 12:05 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