+ Reply to Thread
Results 1 to 3 of 3

Macro to execute Sumifs or other formula faster

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

    Macro to execute Sumifs or other formula 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. Is there a way we can code this with macros so that it will run faster?

    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

  2. #2
    Registered User
    Join Date
    11-18-2014
    Location
    australia
    MS-Off Ver
    2015
    Posts
    43

    Re: Macro to execute Sumifs or other formula faster

    the short answers are

    yes, it freezes currently
    yes, VBA will be better
    yes, you can use your formulas in VBA with some modifications

    i would write each formula into a function, then call the correct function based on the user input.
    Last edited by ferday; 02-14-2017 at 02:13 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 or other formula faster

    Hi ferday,

    I'm a newbie in VBA. Can you write me how to write each formula into a function?

+ 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. Macro to execute Sumifs furmula faster
    By ALNER in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-12-2017, 03:47 AM
  2. 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
  3. Faster alternative to sumifs and averageifs needed
    By BlueDan2015 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-30-2015, 06:44 AM
  4. Macro efficiency - Execute process faster
    By Zoediak in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-08-2014, 02:37 PM
  5. Replies: 7
    Last Post: 07-01-2014, 08:15 AM
  6. Formula? Or Macro? Which is faster?
    By ad9051 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-15-2011, 09:50 AM
  7. faster way to get to result - formula/macro
    By tx12345 in forum Excel General
    Replies: 1
    Last Post: 09-16-2006, 02:55 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