+ Reply to Thread
Results 1 to 11 of 11

Am I Excel-constrained or RAM-constrained

Hybrid View

  1. #1
    Registered User
    Join Date
    02-05-2015
    Location
    Baltimore
    MS-Off Ver
    2007
    Posts
    5

    Am I Excel-constrained or RAM-constrained

    I have an Excel file that I have been adding things to for about 3 years. Over time it has grown and grown and grown.

    However, in the last few days, the file seems to be too big.

    It's only a 4 MB file itself, which isn't that big of a deal. But according to the Windows task manager, it requires over 1.6 GB of memory to run.

    The file itself consists of hundreds of tabs, hundreds of named ranges in the name manager, and a tiny bit of VBA (the VBA cycles through a list of about 150 different sites to present a customized set of reports for that site).

    Obviously I need to get this data put together in something other than Excel eventually, but right now, I just need it to work.

    So, is this file memory constrained? (I've got 8 GB RAM and a Core i7 processor and plenty of storage so I'd go get 16 GB of RAM in this case).

    Or am I reaching the limits of Excel? (In which case, I've got de-cruftify this file somewhat.)

    Bonus question: why does this file need 1.6 GB of RAM to operate, anyway?

    Time is critical - any help would certainly be appreciated.

  2. #2
    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,047

    Re: Am I Excel-constrained or RAM-constrained

    Hi, welcome to the forum

    Few questions....
    - is it just taking up room, or is is slowing down too?
    - assuming you have a main tab for data entry? (if not, maybe you should?), when you press End Home, where do you end up?
    If it is "out in the middle of nowhere", delete rows until you get to where you know (for sure) where the last actual row of data is...repeat this for columns
    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

  3. #3
    Registered User
    Join Date
    02-05-2015
    Location
    Baltimore
    MS-Off Ver
    2007
    Posts
    5

    Re: Am I Excel-constrained or RAM-constrained

    1 - It's slowing down the whole machine. It also partially crashes often - that is, it still sort of works, but I can't change the tab at the top to the "File" tab. Sometimes it won't save, and I get the error message "Document not saved."

    2 - I do not have a main data entry tab. Most of the tabs are small sets of data, and the remaining tabs use a vlookup to get that data. End home goes to the lower right hand corner of the data on the page.

    I have a feeling it's the number of name ranges - I've never counted them, but if I delete everything and save the "blank" file, it's still 1.2 MB. Once I delete all of the names in the the name manager, then the file is as small as a blank Excel file is. Maybe over 500 named ranges? I think having over 500 named ranges and over 200 tabs is somehow the problem.

    I'm hoping it's a memory problem--if so, I'm off to the local store to get two sticks of 8GB RAM. If not.......well, I'm fucked.

    Big report due tomorrow.

    (No one would design anything like this on purpose - I was a n00b three years ago and pretty exited that I could make a single page report for 150 sites automagically.......but once that happened, everybody and their little sister whanted to be included in the report, plus keep the historical data......and the file kept getting bigger and crazier. As long as it worked, I didn't mind the sort of insane spaghetti it had become. But now...... )

  4. #4
    Registered User
    Join Date
    02-05-2015
    Location
    Baltimore
    MS-Off Ver
    2007
    Posts
    5

    Re: Am I Excel-constrained or RAM-constrained

    Ok, it's about 350 named ranges. Not as much as I thought.

    It's also about 370 data tabs and 60 "display" pages. So, more than I thought.

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,603

    Re: Am I Excel-constrained or RAM-constrained

    Do you have many volatile functions? If so, switch to manual calcualtions and hit F9 AFTER entering the data.

  6. #6
    Registered User
    Join Date
    02-05-2015
    Location
    Baltimore
    MS-Off Ver
    2007
    Posts
    5

    Re: Am I Excel-constrained or RAM-constrained

    Quote Originally Posted by Pepe Le Mokko View Post
    Do you have many volatile functions? If so, switch to manual calcualtions and hit F9 AFTER entering the data.
    There are a hojillion vlookups against the hundreds of data tables. The link didn't specify that vlookup was volatile? Does that help?

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,603

    Re: Am I Excel-constrained or RAM-constrained

    VLOOKUP is not volatile but can be sluggish. INDEX/MATCH is faster.

    There is also this technique to remove unwanted formats ( if you have many different formats, sheet -s tend to grow fast.

  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,047

    Re: Am I Excel-constrained or RAM-constrained

    Also, are you using whole column/row ranges? if so, change them to specific ranges

    Check especially for SUMPRODUCT() formulas with overly large ranges, and Conditional Formatting that you dont really need, or that goes way down beyond where you need it to be

  9. #9
    Registered User
    Join Date
    02-05-2015
    Location
    Baltimore
    MS-Off Ver
    2007
    Posts
    5

    Re: Am I Excel-constrained or RAM-constrained

    Yeah, they are often whole column ranges - like if there are 180 rows by 20 columns, the range will be column A - column S from 1 - the end. (It was just faster when I started this and I never got out of the habit.)

    If I make the range 1 - 180 (edit: insert) for all 360+ data sheets (end edit), do you believe this will help? I just want to make sure I understand the advice.

    Thanks!
    Last edited by OhNo; 02-05-2015 at 04:16 PM. Reason: clarification

  10. #10
    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,047

    Re: Am I Excel-constrained or RAM-constrained

    depending on the formulas, yes it will

    Did you try the end-home thing yet?
    Last edited by FDibbins; 02-06-2015 at 02:19 AM. Reason: corrected typo

  11. #11
    Registered User
    Join Date
    02-03-2015
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Office 365 (Excel 2013)
    Posts
    1

    Re: Am I Excel-constrained or RAM-constrained

    Hi Ohno,

    I had a similar issue.
    I had a file in XLSX format with over 100 tabs, with a tab added each week over the span of two years.
    The file was 18MB, had instability issues and was slow even on a computer with 16GB of ram and an i7-4790K @ 4.5GHz.

    I went through the file recently and cleared all empty but formatted areas and changed to binary format.
    The file went from 18MB to a paltry 0,6MB and it is now stable and lightning fast.

    So this is definitely what I would start doing in your situation. And if you don't need to import the file into external programs, I would recommend binary format
    Last edited by Isiir; 02-05-2015 at 10:17 PM.

+ 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. Constrained regression using Excel solver
    By samquerty in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 01-30-2017, 11:05 AM
  2. Replies: 0
    Last Post: 09-28-2012, 08:18 AM
  3. Use Solver for Constrained Regression
    By abhirules in forum Excel General
    Replies: 1
    Last Post: 04-22-2010, 12:19 PM
  4. Choosing specific constrained cells from a separate sheet
    By aslambilal in forum Excel General
    Replies: 2
    Last Post: 07-20-2009, 10:55 AM
  5. Print settings / Can rows be constrained?
    By Turquoise_dax in forum Excel General
    Replies: 2
    Last Post: 06-27-2006, 02:11 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