+ Reply to Thread
Results 1 to 2 of 2

Convert Array MAX formula to VBA

  1. #1
    Registered User
    Join Date
    05-31-2017
    Location
    Brunswick, ME
    MS-Off Ver
    2013 (work) and 365 (home)
    Posts
    70

    Convert Array MAX formula to VBA

    Howdy all!

    I need to convert this formula to a VBA code
    {=MAX(IF(RAW!A:A=Consolidate!A2,RAW!T:T,0))}

    My RAW ranges are up to 45,000 records, and the Consolidate sheet is up to 35,000 records, so running that as a formula is quite a slog.

    I'm just getting into VBA programming, and don't quite know how to handle this.

    Any assistance is much appreciated!

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

    Re: Convert Array MAX formula to VBA

    T'is better to run array (or any other formula) on tens of thousands of rows rather than a million plus rows.

    Is there a way you can overlay RAW!A:A and RAW!T:T with named dynamic ranges that limit the formulas to consider only rows with real data?

    http://www.utteraccess.com/wiki/Offs...Dynamic_Ranges
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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] Convert this array formula into VBA?
    By vpan in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 08-09-2016, 06:55 PM
  2. [SOLVED] Evaluate array formula & convert it to UDF
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-22-2015, 07:53 PM
  3. Convert array formula to VBA
    By nthnothing in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-06-2015, 10:23 PM
  4. [SOLVED] Convert array formula to vba
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-04-2015, 03:10 AM
  5. [SOLVED] How to convert formula array to columns
    By sekharks in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-01-2014, 03:10 AM
  6. convert array formula to vba
    By s4driver in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-04-2013, 09:54 PM
  7. Convert array formula into vba code
    By cbhawsar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2011, 02:40 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