Results 1 to 28 of 28

more efficient way to do for-loop using application.worksheetfunction.countifs

Threaded View

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

    more efficient way to do for-loop using application.worksheetfunction.countifs

    Hi,

    I have a macro which takes ~ 46sec to run.

    In this file:
    Two sheets of data: Out_Sht, Query_sht

    I use a for-loop going through each of the LotID values on the Out_Sht using an application.worksheetfunction.countifs designation to count using specified criteria (see code).

    What i have works but i takes a really long time and i was wondering if there was a better way more efficient way.

    Any suggestions?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] worksheetfunction countifs, counting down and across, application defined error
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-16-2012, 11:58 AM
  2. worksheetfunction.countifs with loop from multiple worksheets
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2012, 04:55 PM
  3. worksheetfunction.countifs with loop
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-02-2012, 01:26 PM
  4. Replies: 0
    Last Post: 12-16-2011, 09:01 AM
  5. error trying to use "Application.WorksheetFunction.Sum(CountIfs"....in vba
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2011, 09:15 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