+ Reply to Thread
Results 1 to 7 of 7

Return MAX (or LARGE) for each 2D array's row with only ONE "spill" formula

  1. #1
    Registered User
    Join Date
    11-27-2015
    Location
    Sao Paulo, Brazil
    MS-Off Ver
    MS Office 365
    Posts
    42

    Question Return MAX (or LARGE) for each 2D array's row with only ONE "spill" formula

    Supposed I have the following table highlighted in light grey below (2D array "$A$1:$O$15")...

    To extract the largest amount from each row down column Q is indeed a simple task using the MAX function (LARGE would also do the job...).

    2D Spilled MAX for Each Row.png

    However, in real life my table is dynamic... so its number of rows and columns may increase at any moment's notice - and I can't afford to copy down the basic/static formula every time that happens.

    So, what I really need is a "spill" type formula, on the above case in cell "Q1", that returns me the largest amount for each row down the column, and that allows the answer span to grow and shrink accordingly...

    And as usual, please no macros/VBA, and on this case the use of a helper column on a named table also would not help me since this is something I need to embed inside another formula.

    Thanks in advance for any help on this!

    Leonardo

    P.S.:
    I've also posted the same question under the Microsoft Community board.
    https://answers.microsoft.com/en-us/...e-976bcd966ba6
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Return MAX (or LARGE) for each 2D array's row with only ONE "spill" formula

    Pl see file.
    In R1 then copied down say for 10000 rows.

    =IF(COUNT($A1:$O1)=COLUMNS($A1:$O1),MAX($A1:$O1),"")
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,792

    Re: Return MAX (or LARGE) for each 2D array's row with only ONE "spill" formula

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-27-2015
    Location
    Sao Paulo, Brazil
    MS-Off Ver
    MS Office 365
    Posts
    42

    Re: Return MAX (or LARGE) for each 2D array's row with only ONE "spill" formula

    Thanks a bunch! That sure did the trick!

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,792

    Re: Return MAX (or LARGE) for each 2D array's row with only ONE "spill" formula

    You're welcome & thanks for the feedback.

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2503 and WPS V2024(12.1.0.18543)
    Posts
    4,027

    Re: Return MAX (or LARGE) for each 2D array's row with only ONE "spill" formula

    Cell Q1 formula

    HTML Code: 
    Last edited by wk9128; 08-22-2021 at 09:36 AM.

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,792

    Re: Return MAX (or LARGE) for each 2D array's row with only ONE "spill" formula

    @wk9128 That is getting the max value of the column, not the row.

+ 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. Array Formula to return column name if row contains "yes"
    By Tai1001 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2021, 06:02 AM
  2. Replies: 3
    Last Post: 06-19-2017, 11:36 AM
  3. Help with lookup formula to return "Available" or "Unavailable" based on last entry
    By AntonyCole1979 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-07-2017, 05:14 PM
  4. [SOLVED] Help with lookup formula to return "Available" or "Unavailable" based on last entry
    By AntonyCole1979 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-07-2017, 12:28 PM
  5. [SOLVED] Formula to Locate Matching Data in Worksheets and return "1" or "0" to a specified Cell
    By hammer2 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-30-2015, 04:52 AM
  6. Replies: 3
    Last Post: 02-16-2011, 02:55 PM
  7. If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 AM

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