+ Reply to Thread
Results 1 to 4 of 4

Application.worksheetfunction.sumifs on large dataset

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Application.worksheetfunction.sumifs on large dataset

    Hi,

    I am trying to find a more efficient way of doing something where i am using

    application.worksheetfunction.sumifs

    in my macro.

    In the excel file there is a summary sheet and in column-A is a list of LotIds.
    A second sheet "raw_data" contains the data ranges used in the vba code.

    based on the lotids in column-A of the summary sheet i calc a sum as follows:

    Please Login or Register  to view this content.
    output_subj_id_array is just an array of the lotids on summary sheet column - A

    the ranges listed are ranges found on the raw_data worksheet


    the current code takes about 43seconds........

    any idea how to make more efficient...........should i use scripting dictionary........if so how to do this?

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: more efficient way to do application.worksheetfunction.sumifs on large dataset

    Hi Welchs,
    I have two options
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: more efficient way to do application.worksheetfunction.sumifs on large dataset

    hi nilem,

    thanks for responding.........i will review your answers. sorry for not getting back to you until now......its saturday here and had to go to kids soccer game.

    thanks.

  4. #4
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: more efficient way to do application.worksheetfunction.sumifs on large dataset

    nilem,

    the scripting.dictionary example works great!!!!! and very very fast.......thanks.

+ 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. How to use > in WorksheetFunction.Sumifs
    By davidman1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-02-2013, 10:40 AM
  2. Application, WorksheetFunction or both?
    By Benni in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-04-2012, 08:59 PM
  3. [SOLVED] Code optimization - WorksheetFunction.SumIfs() function
    By nfuids in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-11-2012, 10:50 AM
  4. Application.WorksheetFunction
    By roger09 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-29-2011, 09:07 AM
  5. [SOLVED] application.worksheetfunction
    By Ozgur Pars in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-18-2006, 03:15 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