How to improve spreadsheet speed when single-threaded VBA is the bottleneck.

My brother works with massive Excel spreadsheets and needs to speed them up. Gigabytes in size and often with a million rows and many sheets within the workbook. He's already refined the sheets to take advantage of Excel's multi-thread recalculation and
seen significant improvements, but he's hit a stumbling block. He uses extensive VBA code to aid clarity, but the VB engine is single-threaded, and these relatively simple functions can be called millions of times. Some functions are trivial (e.g. conversion
functions) and just for clarity and easily unwound (at the expense of clarity), some could be unwound but that would make the spreadsheets much more complex, and others could not be unwound. 
He's aware of http://www.analystcave.com/excel-vba-multithreading-tool/ and similar tools but they don't help as the granularity is insufficiently fine. 
So what can he do? A search shows requests for multi-threaded VBA going back over a decade.
qts

Hi,
>> The VB engine is single-threaded, and these relatively simple functions can be called millions of times.
The Office Object Model is
Single-Threaded Apartments, if the performance bottleneck is the Excel Object Model operation, the multiple-thread will not improve the performance significantly.
>> How to improve spreadsheet speed when single-threaded VBA is the bottleneck.
The performance optimization should be based on the business. Since I’m not familiar with your business, so I can only give you some general suggestions from the technical perspective. According to your description, the size of the spreadsheet had reached
Gigabytes and data volume is about 1 million rows. If so, I will suggest you storing the data to SQL Server and then use the analysis tools (e.g. Power Pivot).
Create a memory-efficient Data Model using Excel 2013
and the Power Pivot add-in
As
ryguy72 suggested, you can also leverage some other third party data processing tool
according to your business requirement.
Regards,
Jeffrey
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • I have ios5 on iphone 4, but it makes iphone too much slower, release update to improve phone speed, when i touch home button, it have slower reaction, too while i scroll in menu and shuting down the applications, infinity blade is frozing

    i have ios5 on iphone 4, but it makes iphone too much slower, release update to improve phone speed, when i touch home button, it have slower reaction, too while i scroll in menu and shuting down the applications, infinity blade is frozing during video game parts and during playing its 3 or 4x slower reactions, make update for ios5 please,
    - reminders are ok
    - camera- perfect
    - newstand - perfect
    - icloud too

    Hi
    I have a iPhone 4S this is not siri it is actally something to help those who have some sort of disability by reading the screen you can disable this by going to general then go to the bottom to accessability
    Hope this helps you

  • How come type appears fuzzy when we preview articles on the iPad?

    Hi, I need some help. How come type appears fuzzy when we preview articles on the iPad? Thanks!

    Here's a screenshot:

  • After I reset the iPod I lost all of the iPod contents.  When I attempted to resynch I learned the iPod did not have enough space.  How can this be so when I have nothing on the iPod?

    Please help!.
    After I reset the iPod I lost all of the iPod contents.  When I attempted to resynch I learned the iPod did not have enough space.  How can this be so when I have nothing on the iPod?

    You will prbably had other sync setting than the default ones
    Check if the option "Only sync marked songs" is checked.

  • How to Improve performance issue when we are using BRM LDB

    HI All,
    I am facing a performanc eissue when i am retriving the data from BKPF and respective BSEG table....I see that for fiscal period there are around 60lakhs records. and to populate the data value from the table to final internal table its taking so much of time.
    when i tried to make use of the BRM LDB with the SAP Query/Quickviewer, its the same issue.
    Please suggest me how to improve the performance issue.
    Thanks in advance
    Chakradhar

    Moderator message - Please see Please Read before Posting in the Performance and Tuning Forum before posting - post locked
    Rob

  • How to improve query performance when reporting on ods object?

    Hi,
    Can anybody give me the answer, how to improve my query performance when reporting on ODS object?
    Thanks in advance,
    Ravi Alakuntla.

    Hi Ravi,
    Check these links which may cater your requirement,
    Re: performance issues of ODS
    Which criteria to follow to pick InfoObj. as secondary index of ODS?
    PDF on BW performance tuning,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802
    Regards,
    Mani.

  • How to make round curves when you are animatting with the Rec mode?

    Hi! I am making a project in motion. I recored a freind writing words and stuff in the roof of my house with two flashlights. My plans was to follow the lights with motion traking: Analize move or match move. And then add a particle emmite for making something like this: http://www.youtube.com/watch?v=MZf2W3S7gV0&feature=fvw . When i tried to make the match move it was imposible. So i desided to make it manually with the REC button. And it work perfectly, the only problem is that it can's achive the round cruves (bezier like). I can only make squared like turns and it looks awful. I have also tried bezier as a path but i don't know how to make the particle emmiter follow it with different speeds, becouse the movement of the flashlight is inconstant.
    What can i do to make a round curved path and make a particle emmiter follow it with the rec button with the different speeds of the flashlights? Please help me!!!! I have to deliver this work for tuesday!
    Thanks for you time y hope you can help me out as soon as possible.
    Juan Javier.
    PD Sorry for my english! jajajaja.

    Juan Javier Ibarra Pitts wrote:
    When i tried to make the match move it was imposible.
    Hi
    Why was it impossible?
    It sounds like tracking is the only way your going to achieve what your after given the way you've shot your footage and the spatial and temporal nuances therein.
    You'll find comprehensive instructions on how to track particles to footage starting on page 49 of this document:
    http://manuals.info.apple.com/en/MotionSupplementalDocumentation.pdf
    Regards.

  • How do I sign in when I don't know the password? I have tried reset and that did not work.

    How do I sign in when I dont know the password? I tried pushing reset and that did not wprk.

    Please try the steps mentioned in this article and see if that helps. 
    If my post answers your question, please mark it as "Accept as Solution"

  • How to know whether a method is thread-safe through the java-doc?

    In some book, it says that SAXParserFactory.newSAXParser() is thread-safe,but in the java-doc,it doesn't say that.
    newSAXParser
    public abstract SAXParser newSAXParser()
    throws ParserConfigurationException,
    SAXExceptionCreates a new instance of a SAXParser using the currently configured factory parameters.
    Returns:
    A new instance of a SAXParser.
    Throws:
    ParserConfigurationException - if a parser cannot be created which satisfies the requested configuration.
    SAXException - for SAX errors.
    I want to know, how to know whether a method is thread-safe?

    System.out is a PrintStream object. None of the methods there use the synchronized modifier, but if you look in the source code, you will find out it is thread-safe, because it will use synchronized blocks whenever it writes some text.
    The source code is in the src.jar file which you can extract.
    I didn't find any comments about that PrintStream is thread-safe in the API.

  • Petition:Keep a single thread for all the hate messages(fw upgra

    I really mean it. There are so many threads already existing which have been created only to blame creative or the mods for the delay of the firmware upgrade for Touch/Xtra. All of them only act as a means to vent the member's anger and hate. Almost every other day, there is a new thread made to yell out at creative. Why not put up a single thread and merge all the hate messages under one thread?
    Who knows, maybe it will become a hot topic!

    Catherina-CL wrote:
    At the moment, I'm trying to merge new threads about the Zen Touch/Xtra MTP firmware into one thread. Instead of starting a new thread, it's best to post in an existing one. There isn't much point in having 5 threads about the same topic.
    Cat
    I agree completely!

  • HOW TO KEEP SCREEN ON WHEN USING GPS OR SHOOTING THE VIDEO

    I was wondering if there any setting I could leave the screen on when using GPS or shooting the video, I'm currently set backlight timeout is 2 mins. After 2 mins device will automatically out and I have to reenter the password for continue my video, This is very inconvenience when using GPS or shooting the video.  
    Is there any one out there can assist? thanks in advance. 

    Did you get an answer?

  • How to improve download speed

    Is there any Internet Download Managerment Software for Mac OX ? Many thanks,

    Is there any Internet Download Managerment Software
    for Mac OX ? Many thanks,
    There's also iGetter: http://www.igetter.net
    You may also want to look on how to optimize your network settings to achieve an overall networking improvement (not just "download speed")
    There are 2 utilities that do this for you:
    http://www.enigmarelle.com/broadbandoptimizer.py
    http://www.pimpmyosx.com
    Of course, if you're familiar with unix you can achieve such (and even better) optimizations by writing your own scripts
    a few Macs running 9.x, a bunch of Macs running 10.4.x and some serious SGI workstations running Irix 6.5.x
    Message was edited by: fu

  • How to improve query performance when query with mtart

    hi all,
    I need to know what is the best way to query out MATNR when i have values for MTART and WERKS?
    When a user select a MTART and WERKS, a whole bunch of MATNR related to them are display out. How do i improve this query so that it does not take a long time?
    Thanks
    Willliam Wilstroth

    Is that what you are looking for???
    select a~matnr a~mtart ... b~werks ...
           into table <itab>
           from mara as a
           inner join marc as b
           on a~matnr = b~matnr
           where mtart = p_mtart
           and   werks = p_werks.
    There is an index on MTART in table MARA.
    <b>T           Material Type</b>
    Kind Regards
    Eswar

  • How to improve upload speeds with new Airport Extreme?

    Hi!
    Just plugged in a new Airport Extreme to replace a BT HomeHub 3.0.  The wi-fi download speeds have generally increased over a wider range in the house but the wi-fi upload speeds have dropped to under 1Mbps.
    Speeds to laptop linked via ethernet appear fine (both up & download).
    Initially thought that I may have messed-up the set-up but the fact that the wired connection works fine makes me think this is something to do with the Airport settings - a scary thought as I don't really know much about this stuff.
    As range was really the reason for getting the AP Extreme I'm contemplating plugging the HomeHub back in and just trying to use the AP to extend the old HHub system rather than setting up a new AP system...
    Any suggestions would be most gratefully received!
    Thanks

    ... just a quick note to say that the appears to be resolved after a long telephone call to apple service dept (very patient - very helpful).
    In my naivety I had attempted to revert back to using the homehub (3.0) router and connecting the APExtreme into one of the Ethernet LAN ports but this didn't work!  So called the apple helpline & we went back to basics until it worked.  One point to note that may help anyone finding themselves in a similar position...
    I had followed the instruction to reset the APEBS depressing the button first whilst powered then without power and during the unit being reconnected to power supply thinking tha this would do a full restore to factory defaults (effectively undoing all the messing- around I may have done flounderinng through the settings) but it was only when I was directed to do a full reset through the Airport Utility settings [Edit\Advanced\Restore Defaults] that this worked (for me).
    Download and upload speeds are now up to 93% of advertised speeds wired, & wireless with some fluctuations which appear to be network delivery related rather than anything to do with the APEBS.  It's working well with an APExpress which had been struggling (intermittentlyout of range) which is connected to stereo and Apple TV.
    By the way - thanks to other posts regarding importance of not connecting an audio out cable to phono sockets on the stereo (horrible sound quality) using a redundant CD channel it works great.
    All-in-all, very happy with it so far.

  • How to improve connection speed?

    I recently converted to AT&T Uverse, and it's at a 6 rate speed. But my connection acts awfully slow.
    I don't have a full memory; I seem to be using only 40% of my hard drive memory!
    Any notion of why it's slow here? Suggestions for things to check into?
    BEST!

    Connection speed is dictated by your ISP, I would STRONGLY recommend contacting AT&T and letting them know what your poblem is. How much RAM and HD space on your computer has absolutely no bearing on the Internet connection speed.
    Good luck.

Maybe you are looking for

  • Tax calculation in SD Billing

    Hi all of you, We have configured the tax procedure and created the tax codes. Tax codes are working fine in FI module and in MM module. The condition types with access sequence MWST and account keys using in tax procedure, we have taken the same for

  • FM for getting org units

    Hi, Is there a FM by which we can get the list of all the lower level depts assigned to a main dept. I mean all the org unit IDs below a specific org unit ID. I am searching for something similar to FM: BBP_OM_STRUC_GET_USER_FROM_ORG, which will give

  • XmlElement  Input Parameter to the webmethod.

    Here is the WSDL Snippet. <s:element name="RegisterService"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="InputElement"> <s:complexType> <s:sequence> <s:any /> </s:sequence> </s:complexType> </s:element> </s:sequence> </s

  • Better to install 10.5 clean or over 10.4.11?

    He folks, See my other post on iTunes/Safari crashing; we have now backed up everything on the MacHD and are planning on proceeding with re-install of 10.4 from disc. However: We have a local shop that has 10.5, so we thought about buying that and in

  • Request with sub-query

    I've a report with sub-query. I ran it separately to test it and it was fine. When I ran the whole report, I always get error with it. Could someome put some light on it? Thanks, Ted