Marbleking, you're welcome, hope you found how to activate these functions as they are supposed to be available if you are using MS365......

@ HansDouwe,

Can you please explain how the SORTBY works here?
when I try to apply it as a separate segment it returns an error.
So how does it work for you with the BYROW?

Thanks!

=INDEX(SORTBY(A1:K1,A2:K12,-1),1)