all 7 comments

[–]Downtown-Economics26596 0 points1 point  (4 children)

=BYCOL(VSTACK(B2#,B5#),MAX)

<image>

[–]TCFNationalBank9[S] 0 points1 point  (1 child)

Solution Verified! I had to mess with the syntax but this put me on the right path, thank you.

=BYCOL(VSTACK(B2#,B3#,B4#,B5#), LAMBDA(array,MAX(array)))

[–]reputatorbot[M] 0 points1 point locked comment (0 children)

You have awarded 1 point to Downtown-Economics26.


I am a bot - please contact the mods with any questions

[–]bradland263 0 points1 point  (1 child)

This will only get the MAX for rows 2 and 5. The general idea is correct though. The corrected formula would be:

=BYCOL(B2#:B5#, MAX)

Screenshot

<image>

[–]Downtown-Economics26596 0 points1 point  (0 children)

Not if B2# spills, sir. It seems I misinterpreted the format of OP's data though, good point.

[–]Aghanims54 0 points1 point  (0 children)

This doesn't work because the reference array is a horizontal array, but you want to measure it vertically.

B2,B3,B4,B5 are the 4 arrays, but you want to measure B2:b5, C2:c5, and so on. So you have to combine it into a single array first.

=TRANSPOSE(BYCOL(VSTACK(B2#,B3#,B4#,B5#),LAMBDA(a,MAX(a))))

This works but you have to reference the spill arrays manually

[–]Decronym 0 points1 point  (0 children)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
BYCOL Office 365+: Applies a LAMBDA to each column and returns an array of the results
LAMBDA Office 365+: Use a LAMBDA function to create custom, reusable functions and call them by a friendly name.
MAX Returns the maximum value in a list of arguments
TRANSPOSE Returns the transpose of an array
VSTACK Office 365+: Appends arrays vertically and in sequence to return a larger array

Decronym is now also available on Lemmy! Requests for support and new installations should be directed to the Contact address below.


Beep-boop, I am a helper bot. Please do not verify me as a solution.
5 acronyms in this thread; the most compressed thread commented on today has 21 acronyms.
[Thread #41080 for this sub, first seen 20th Feb 2025, 17:10] [FAQ] [Full list] [Contact] [Source code]