+ Reply to Thread
Results 1 to 3 of 3

Speed up/Streamline countifs/sumifs code/formula

  1. #1
    Forum Contributor
    Join Date
    06-28-2018
    Location
    New York
    MS-Off Ver
    MS Office 2010
    Posts
    184

    Speed up/Streamline countifs/sumifs code/formula

    Good Afternoon,

    I am trying to speed up a portion of the following macro/formula, specifically the 1st and 3rd lines of code below. I believe the first line using countifs is the slow down as the data set is ~21k rows. Any assistance would be greatly appreciated. Thank you.

    The first line looks for an order number (H4) that shows up in a named range (OrderNum) more than one time but in different locations.

    The third line first checks to see of the previous test did in fact find the same order number in different locations. If so perform a sumif to see if the amounts net to zero.



    Please Login or Register  to view this content.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,861

    Re: Speed up/Streamline countifs/sumifs code/formula

    At the beginning of your VBA, insert the following lines
    Please Login or Register  to view this content.
    Then at the end of the code put

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    06-28-2018
    Location
    New York
    MS-Off Ver
    MS Office 2010
    Posts
    184

    Re: Speed up/Streamline countifs/sumifs code/formula

    Hi Alan,

    Thanks for taking the time to look into this. I actually have the screen updating code in the macro. Also and surprisingly it actually runs slower when i use the application.calculation 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. [SOLVED] Sumifs/Countifs formula for data table?
    By manny88 in forum Excel General
    Replies: 10
    Last Post: 01-14-2017, 03:34 PM
  2. Making CountIFS and SUMIFS Formula Dynamic
    By HangMan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-30-2015, 04:58 AM
  3. Formula help - COUNTifs, or SUMifs or?
    By jomu84sa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-16-2014, 05:27 AM
  4. [SOLVED] COUNTIFS and SUMIFS formula help
    By jmcole in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-05-2014, 07:56 PM
  5. Countifs and Sumifs VBA code with criterias between 2 date range
    By Jul Stev in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-05-2013, 07:08 AM
  6. [SOLVED] How can I streamline/ speed up my code- it is currently crashing excel
    By strud in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-14-2013, 08:10 AM
  7. Tips required to speed up / streamline working code generated by macro recorder.
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2010, 11:24 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