+ Reply to Thread
Results 1 to 5 of 5

Multi-cel array formula not working

  1. #1
    Registered User
    Join Date
    10-15-2008
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    93

    Multi-cel array formula not working

    Hi there

    Please see attached sample workbook. Row 37 current has formulas between columns AQ and IP that return a value 2 or 4. Conditional formatting on these cells then gives them an appropriate colour.

    Due to the large number of cells involved, I wanted to use a multi-cell array formula instead. I have attempted this on row 50 which should give the same results, but as you will see this is not happening.

    Could you please help me figure out where the problem is?

    Many thanks
    Sunil
    Attached Files Attached Files
    Last edited by sunilmulay; 06-22-2009 at 08:47 AM.

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Multi-cel array formula not working

    In general, array formulas take longer to calculate. Nevertheless, for what it's worth try the following...

    1) Select AQ50:IP50.

    2) Enter the following formula and confirm with CONTROL+SHIFT+ENTER...

    =IF((AQ10:IP10>=AG50)*(AQ16:IP16<=AH50),IF(AN50="Y",4,2),"")

  3. #3
    Registered User
    Join Date
    10-15-2008
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Multi-cel array formula not working

    Hi Domenic

    Thanks for your help - yes that works.

    In my workbook users may create hundreds of rows such as that one. Before the user even starts the workbook stands at 15Mb in Excel 2003 format and 5Mb in 2007 format. This is why I though I'd try the array formulas as they would probably (hopefully) shrink the size down dramatically.

    What's your advice/view on this?

    And also, I see how you have structured your formula, which is of course much neater. Why didn't my version work though? Wasn't it technically correct?

    Appreciate your feedback.

    Many thanks
    Sunil

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Multi-cel array formula not working

    File size aside Array formulae (incl. Sumproduct) are generally much slower performance wise than non-array formulae, this is amplified when used in conjunction with large ranges, worse still if used in a Volatile context ... it would be my advice to avoid using Arrays in any significant quantity, ie concentrate on efficiency of calculation rather than elegance.

  5. #5
    Registered User
    Join Date
    10-15-2008
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Multi-cel array formula not working

    Thanks for your advice.

    Reading through one of the links you forwarded, it seems that for range arrays there could be benefits in terms of speed as well as size.

    I'm wondering if I should give it a try, because I am a bit concerned about the file size really. Speed wise, the workbook seems to be doing alright.....

    many thank again - I will spend some time reading through those posts.....

    Regards
    Sunil

+ 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