+ Reply to Thread
Results 1 to 3 of 3

Macro to execute Sumifs furmula faster

  1. #1
    Registered User
    Join Date
    01-11-2014
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2010
    Posts
    46

    Macro to execute Sumifs furmula faster

    Hi,

    I have a daily working excel file where I need to summarize a vast excel data. Most of the time, I use Sumifs with 3-5 conditions. However, due to a very numerous rows, the excel hangs up. Most of the time, it reaches 300,000 rows. I tried concatenating all the conditions in 1 column as suggested by other sites but no luck. I saved a macro and I switched off the calculation mode, copy and paste formula and switch on the calculation mode. It's almost same though.

    I was wandering if someone out there has the intelligence to work around this problem.

    Thanks in advance,

    Alner

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Macro to execute Sumifs furmula faster

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED

    AddFile.jpg

    To add a file to a post
    Last edited by davesexcel; 09-18-2016 at 07:20 AM.

  3. #3
    Registered User
    Join Date
    01-11-2014
    Location
    Dubai, UAE
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Macro to execute Sumifs furmula faster

    Hi Everyone,

    I attached an excel file which I hope it can demonstrate the problem.

    The main objective is to match items based on various criteria located in different columns. I have created various "SUMIFS" depending on these criteria. All matched items are marked as "YES" and then user will opt to move out the items to different sheet.

    My problem is, at the time if copying the sumif formula, it takes very long time and sometimes excel will no longer respond.

    I use the below code to update/copy the SUMIF function to all rows for one of the criteria. This code is repeated with different criteria and cell where the formula is copied from.

    Please Login or Register  to view this content.


    I hope someone can find solution.
    Attached Files Attached Files
    Last edited by ALNER; 02-12-2017 at 03:56 AM. Reason: i forgot to put the code

+ 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. Execute a macro in a closed workbook, or open and execute without the user noticing
    By cearaujo123 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-09-2015, 06:44 PM
  2. Faster alternative to sumifs and averageifs needed
    By BlueDan2015 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-30-2015, 06:44 AM
  3. Macro efficiency - Execute process faster
    By Zoediak in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-08-2014, 02:37 PM
  4. Replies: 7
    Last Post: 07-01-2014, 08:15 AM
  5. Furmula oddity
    By The MAGpie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-20-2014, 04:00 AM
  6. SUMIFS furmula
    By atlant15 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 12-17-2012, 03:38 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