+ Reply to Thread
Results 1 to 2 of 2

VBA Sum by 2 criteria (SumIFs), Need Help

  1. #1
    Registered User
    Join Date
    01-05-2023
    Location
    Travelers Rest
    MS-Off Ver
    365
    Posts
    2

    VBA Sum by 2 criteria (SumIFs), Need Help

    Hello!
    I am having difficulty finding a work around to a sumifs formula i have in my vba code. I have tried to modify suggestions i found on the forums about using the dictionary (I am new to dictionary) but i have not had much success.
    I am attempting to get a sum of allocated time for a given machine for each day of its calendar. I would very much appreciate suggestions on how to get past this line of code. The file is typically ~200K lines (when the Prod & Calendar tabs are combined on Load Query

    Line of code under 'Calculate Formulas of the Load_Query module that is sometimes crashing the report


    I have attached a sample file with the full code. The Load_Query sheet is populated by combining Prod Order Capacity and Calendar Entry sheets
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by jdwhitn; 05-24-2023 at 08:14 AM. Reason: Better Title description

  2. #2
    Registered User
    Join Date
    01-05-2023
    Location
    Travelers Rest
    MS-Off Ver
    365
    Posts
    2

    Re: VBA Sum by 2 criteria (SumIFs), Need Help

    Hi all,
    I found this old post by kalak but I cannot figure out how to adapt it for my situation, can anyone give me a direction to go?

    His old post is "Re: VBA to enter 50,000 SUMIF's faster?" sorry I cannot enter the link

    His code is related to a sumif situation, how can I add a second criteria?

+ 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] Formula Optimization
    By Kanuck in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-03-2016, 09:27 PM
  2. [SOLVED] Formula Optimization
    By Kanuck in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-21-2016, 04:42 AM
  3. Replies: 10
    Last Post: 12-16-2015, 03:16 PM
  4. Sumproduct formula optimization
    By sinspawn56 in forum Excel General
    Replies: 4
    Last Post: 11-06-2012, 02:23 PM
  5. [SOLVED] Code optimization - WorksheetFunction.SumIfs() function
    By nfuids in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-11-2012, 10:50 AM
  6. looking for bar optimization formula for Excel
    By seaflyer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2010, 09:37 AM
  7. [SOLVED] Excel Optimization HELP!!!
    By tblue7 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-09-2005, 07:06 PM

Tags for this Thread

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