Results 1 to 5 of 5

faster way to do countif via vba for large dataset

Threaded View

welchs101 faster way to do countif via... 03-10-2014, 09:42 AM
ragulduy Re: faster way to do countif... 03-10-2014, 09:50 AM
welchs101 Re: faster way to do countif... 03-10-2014, 01:18 PM
welchs101 Re: faster way to do countif... 03-10-2014, 05:36 PM
welchs101 Re: faster way to do countif... 03-10-2014, 09:58 PM
  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    faster way to do countif via vba for large dataset

    Hi,

    I am enclosing a test file which is just a small sample of the dataset I actually have to consider.

    Since the data set I am working with is large I cant use the application.countif type function.........its just way tooooo slow.


    using the enclosed file: what I am trying to calculate is the following:

    if I were to use equations in excel they might look like the following:

    =countif(
    ColN, "Open",
    ColF, "Site*",
    ColG, H2,
    ColX, <= I2,
    ColO, > DefnNameTAT)

    +

    countif(
    ColN, "Open",
    ColF, "Site*",
    ColG, H2,
    ColX, =&"All",
    ColO, > DefnNameTAT)


    Note: DefnNameTAT is a user defnd name and its value is located in M1


    I started the macro..........i thought using a scripting dictionary would be helpful.....


    I have probably confused someone......if so let me know.


    note: i had to keep deleting rows from my input file so that it would make the 1000kB file size requirment.........but i did not go back and update the last row values i put into the macro.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 01-23-2014, 10:13 AM
  2. How to calculate average in a large dataset
    By dolle in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-27-2013, 01:08 PM
  3. [SOLVED] Finding ALL CAPS in large dataset
    By renee705 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-30-2012, 02:35 PM
  4. [SOLVED] Graphing a large dataset
    By CTM2012 in forum Excel General
    Replies: 6
    Last Post: 06-18-2012, 03:48 PM
  5. Graphing a large dataset
    By CTM2012 in forum Excel General
    Replies: 9
    Last Post: 06-18-2012, 10:20 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