+ Reply to Thread
Results 1 to 3 of 3

Apply sumifs in VBA on very large range

  1. #1
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Apply sumifs in VBA on very large range

    Hi everyone,

    I have a sumifs formula that needs to be applied to about 130,000 rows across about 560 columns (total is just under 73 million cells).

    =sumifs('Sheet1'!$L$2:$L$130000,'Sheet1'!$J$2:$J$130000,$A2,'Sheet1'!$B$2:$B$130000,B$1) - Note, $A2 and B$1 are in the worksheet that I want the results in (I.e. Sheet2)

    I have a feeling it would be extremely slow if I just applied the formula in excel 2010 directly.

    How can I apply a sumifs formula in VBA for such a range?

    Thanks!!

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Apply sumifs in VBA on very large range

    I would try doing this in Powerpivot as it seems to handle millions of calculations better than excel.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Apply sumifs in VBA on very large range

    Hello Groovicles,

    I can tell you from experience VBA will not be of much help. Files this large will either hang or crash Excel because of memory resource limitations. This has nothing to do with your RAM or hard disk space. The memory resources are set in the Excel application and there is no way to change them.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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. Very slow process, sorting large table to identify range to apply array formulae
    By jasonmcasey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2015, 03:40 AM
  2. Replies: 19
    Last Post: 07-14-2014, 09:24 AM
  3. Replies: 3
    Last Post: 06-24-2014, 11:04 AM
  4. Sumifs, large & rank
    By M1234 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-28-2013, 11:23 AM
  5. Sumifs using large named range
    By CRIMEDOG in forum Excel General
    Replies: 2
    Last Post: 08-26-2011, 11:43 AM

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