+ Reply to Thread
Results 1 to 6 of 6

most CPU/ RAM efficient methods for ranges

  1. #1
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    most CPU/ RAM efficient methods for ranges

    Over time, I've received incredible help from members of this forum. With that help I've built a workbook which meets my needs. (Thank you!)

    Now I want to make it as CPU/RAM efficient as possible, given that my computer isn't hugely powerful.

    Because I work with static .csv files, I've created a "template" workbook with multiple tabs. I paste the .csv files into a "Paste Data" tab in the template.

    The other tabs in the workbook have about 35 columns with formulas and precedents, all of which are often involved in thousands of "Solver" iterations. And that's the challenge... how to recalculate all the cells as quickly as possible.

    In column A of the worksheets where excel does the calculations, my formula is =if('PasteData'!A1>0,'PasteData'!A1,"")

    From there, many of the other columns in theses worksheets will have formulas which begin with =if(A1="","", (rest of formula). Or sometimes I'll put the calculated # of rows in $G$3, then use =if(ROW()>$G$3,"",(rest of the formula)

    So.... would changing over to dynamic range names improve calculation speed? (I've rarely used range names so I'm not familiar with their advantages/limitations).

    Thanks!
    Last edited by jrtaylor; 06-25-2017 at 06:15 PM.

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

    Re: most CPU/ RAM efficient methods for ranges

    You should probably look at converting your data to Structured Tables and avoid using the =IF(A1="","",...) construct completely.
    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


  3. #3
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    Re: most CPU/ RAM efficient methods for ranges

    Thanks. Can a structured table be dynamic in range? Some csv data might have 300 rows, other data might have 3,000. I need the "pretty" tab of my workbook (where I summarize/graph output) to have blank cells if there is no data. Thanks

  4. #4
    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,461

    Re: most CPU/ RAM efficient methods for ranges

    Hypothetically, as I can only guess what the sheets do, I would create "empty" tables on each sheet. Use VLOOKUP to bring across the relevant data in the first row only PLUS the necessary formula for the sheet, again, only on row 1. I'd then copy the raw data in column A to each sheet. In theory, if you preselect ALL the target sheets, you'd only need to copy the data once. The Structured Tables should automatically populate all the formulae. You could automate the process by recording a macro to clear the target sheets and copy across the raw data.

  5. #5
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    Re: most CPU/ RAM efficient methods for ranges

    Thank you both. I'll work on this.

  6. #6
    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,461

    Re: most CPU/ RAM efficient methods for ranges

    You're welcome. Thanks for the rep.

+ 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] Checking for a specific number in several ranges, popup if it exists (Most efficient way?)
    By Hyflex in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 07-23-2015, 01:20 PM
  2. Replies: 6
    Last Post: 05-27-2014, 05:20 AM
  3. [SOLVED] efficient way to copy ranges over multiple sheets?
    By bauerbach in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-03-2012, 09:12 AM
  4. UserForm Methods
    By j_Southern in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2011, 05:21 AM
  5. if else methods
    By momo123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-17-2009, 05:10 AM
  6. for each methods
    By momo123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-16-2009, 11:37 PM
  7. [SOLVED] Most efficient formula/combining multiple data cell ranges/seperat
    By Tiff in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-02-2006, 12:00 PM

Tags for this Thread

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