+ Reply to Thread
Results 1 to 7 of 7

Help with arrary formula

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Help with arrary formula

    What is this array formula doing? Is there a better way to write it? Please explain in detail.

    =MAX(IF('[Daily sales_2013_v78.xlsx]data2013'!$E$8:$NE$8='fcast-closings'!C$4,'[Daily sales_2013_v78.xlsx]data2013'!$E91:$NE91,""))

  2. #2
    Forum Contributor
    Join Date
    08-30-2007
    Location
    Vancouver, B.C.
    Posts
    149

    Re: Help with arrary formula

    The IF Formula:
    [data2013]E8 = [fcast-closings]C4, if true, [data2013]E91, if false, blank
    [data2013]F8 = [fcast-closings]C4, if true, [data2013]F91, if false, blank
    [data2013]G8 = [fcast-closings]C4, if true, [data2013]G91, if false, blank
    ...
    [data2013]NE8 = [fcast-closings]C4, if true, [data2013]NE91, if false, blank

    Once it has evaluated all the cells above, find the MAX value of the array.

  3. #3
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Help with arrary formula

    It returns the maximum value from range data2013'!$E91:$NE91
    for criteria specified in data2013'!$E$8:$NE$8.

    So let say for
    A B A B A A
    1 3 4 1 2 3

    It will return 4 for "A"
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  4. #4
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Re: Help with arrary formula

    Thank you. Is there a more effective formula to use? That formula is annoying.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Help with arrary formula

    Quote Originally Posted by ammartino44 View Post
    Is there a more effective formula to use?
    Not really. That formula is very succinct and uses as few "moving parts" as is possible to perform the task.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Help with arrary formula

    Another option for MAX calculation with array formula:

    =MAX(('[Daily sales_2013_v78.xlsx]data2013'!$E$8:$NE$8='fcast-closings'!C$4)*'[Daily sales_2013_v78.xlsx]data2013'!$E91:$NE91)

    And with non-array formula:

    =MAX(INDEX(('[Daily sales_2013_v78.xlsx]data2013'!$E$8:$NE$8='fcast-closings'!C$4)*'[Daily sales_2013_v78.xlsx]data2013'!$E91:$NE91,))
    Quang PT

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: Help with arrary formula

    Quote Originally Posted by ammartino44 View Post
    Thank you. Is there a more effective formula to use? That formula is annoying.
    Out of interest, what is it about that formula that is 'annoying'?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Dear Friends, I want to found Column Number and Row number in Arrary.
    By chetu121 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-29-2014, 05:41 PM
  2. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM
  3. Arrary with Findcontrol
    By Moody in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-22-2006, 06:35 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