Results 1 to 3 of 3

Array Vs Non-Array (What are the Pros & Cons?)

Threaded View

  1. #1
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Array Vs Non-Array (What are the Pros & Cons?)

    i first got exposed to a non-array way of doing a formula by user Marcol. the problem with array formulas is that it slows down Excel (especially in a big file) & for basic users, it is definitely easier to press ENTER rather than CTRL + SHIFT + ENTER. While the 2nd reason is definitely valid, i'm not sure about the speed. i couldnt find any source that had such testing, so i simply assumed it's faster until i recently had the time to test the results.

    In the file attached are 3 worksheets with different formulas in Column G. the test i did actually separates this 3 worksheets into 3 workbooks instead. and instead of just 5 rows each, i had 25,000 rows (A2:C25000 & G2:G25000). you just have to copy the formulas down if you want to. for convenience's sake, i shall not upload 3 workbooks of 25,000 rows, with each file around 5MB.

    I used 3 methods; 1st sheet using the array formula, 2nd one using the INDEX method Marcol introduced me to, & the 3rd using a new formula in Excel 2010 called AGGREGATE
    so the results are surprisely as such....
    Methods Speed of Calculation File Size
    Array 1:01 min 5410 KB
    Non-Array with INDEX 1:19 min 5215 KB
    Non-Array with Aggregate 0:58 min 4920 KB

    so the 2nd method is actually slower than the 1st, despite it being a non-array formula. The file size though, is a little smaller. It's only the 3rd method with the new formula that actually saves in speed & size.

    Comments, anyone?
    Attached Files Attached Files

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

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