+ Reply to Thread
Results 1 to 6 of 6

Speed up a 100k AverageIf formulas

Hybrid View

Coaster Speed up a 100k AverageIf... 07-29-2010, 06:56 PM
DonkeyOte Re: Is it possible to speed... 07-30-2010, 02:08 AM
Coaster Re: Is it possible to speed... 08-02-2010, 09:57 AM
DonkeyOte Re: Is it possible to speed... 08-02-2010, 12:14 PM
Coaster Re: Is it possible to speed... 08-03-2010, 09:25 PM
DonkeyOte Re: Speed up a 100k AverageIf... 08-04-2010, 02:09 AM
  1. #1
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Is it possible to speed up a +100k AverageIfs formulas?

    The first quick-win in these scenarios is to remove the requirement for the multi conditional test in the first instance.

    Using your sample file - if you concatenate the fields of interest to a "key" on Sheet 1 then you can revert to AVERAGEIF using a single test based on the key.

    '1'!H3
    =$A3&"@"&$B3
    copied down for all rows
    You can then revert your formulae to:

    F4:
    =AVERAGEIF('1'!$H:$H;$A4&"@"&LOOKUP(REPT("Z";255);$F$2:F$2);Mxx)
    copy across but modify the final named range in each column (avoid using INDIRECT for obvious reasons)
    In terms of performance - on my machine your original matrix took around 4.5 seconds to execute whereas utilising the above the calc time drops to around 0.6 seconds.

    If the performance gains remaining insufficient then the next thing to do would be to look into sorting your data on Sheet 1 (appropriately).
    Sorting permits use of Binary Search based calculations which on large sets invariably offer some efficiencies and also has other advantages too regards helper calcs to reduce burden.
    Last edited by DonkeyOte; 07-30-2010 at 02:11 AM. Reason: typo in narrative

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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