+ Reply to Thread
Results 1 to 7 of 7

MAX per row across columns with dynamically spilled array

  1. #1
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    MAX per row across columns with dynamically spilled array

    Hi,

    Please see attached workbook. I have a table of date/time data and need to calculate the max value across columns for each row in the table. I want the result column to spill using a dynamic array formula. NOTE: The columns will not necessarily all be adjacent to each other.

    I have seen a suggested solution at the following link, but I don't yet have the BYROW and LAMBDA functions available in my version of O365 and therefore need an alternative solution:

    https://answers.microsoft.com/en-us/...e-976bcd966ba6

    Best regards,
    Marbleking
    Attached Files Attached Files
    Last edited by Marbleking; 09-07-2022 at 09:26 AM.

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

    Re: MAX per row across columns with dynamically spilled array

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    although this will only work for consecutive columns

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

    Re: MAX per row across columns with dynamically spilled array

    In J2
    Please Login or Register  to view this content.
    Format the column for dd/mm/yyyy hh:mm
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Re: MAX per row across columns with dynamically spilled array

    Thanks, these work

    I tried to accommodate the SUBTOTAL version to work with non-consecutive columns using a CHOOSE function like this, instead of Table1[@]:

    CHOOSE({1\2\3\4\5\6},Table1[@[Column A]],Table1[@[Column B]],Table1[@[Column C]],Table1[@[Column D]],Table1[@[Column E]],Table1[@[Column F]])

    Using the CHOOSE function provides the same array of columns for the current row, but the OFFSET function doesn't seem to be able to handle it.

    Regards,
    Marbleking

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

    Re: MAX per row across columns with dynamically spilled array

    You cannot use offset with an array, it only works with a range.
    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Re: MAX per row across columns with dynamically spilled array

    Thanks a lot, Fluff13

    This works for me!

    Regards,
    Marbleking

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

    Re: MAX per row across columns with dynamically spilled array

    Glad to help & thanks for the feedback.

+ 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. Two-way Lookup returning multiple text values (Spilled array formula)
    By DWX57 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-18-2022, 12:17 PM
  2. [SOLVED] Spilled Array to count the number of rows that a word is found in
    By BlankPage in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 04-09-2022, 06:27 AM
  3. [SOLVED] Appending more than two Columns using one Dynamic array or spilled formula.
    By kenesuino in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-02-2022, 03:43 AM
  4. Formula - Sum and multiplying - Dynamic array spilled behavior
    By ttch in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-30-2020, 02:54 PM
  5. [SOLVED] YTD with dynamic spilled array
    By MatthewHart74 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 12-14-2019, 07:49 AM
  6. YTD with spilled dynamic array
    By MatthewHart74 in forum Office 365
    Replies: 0
    Last Post: 12-12-2019, 12:05 PM
  7. Switching Rows and Columns in Array Reference Dynamically
    By k64 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-01-2015, 06:04 PM

Tags for this Thread

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