У меня есть такой лист
Date Student1 Student2 Student3 ... StudentN date1 score1 score2 score3 ... scoreN date2 score1 score2 score3 ... scoreN date3 5 8 4 ... scoreN
Как получить только три столбца, отсортированные по максимальному значению в последней строке (последней дате)?
Желаемый результат:
Date Student2 Student1 Student3 date1 score1 score2 score3 date2 score1 score2 score3 date3 8 5 4
Пример: https://docs.google.com/spreadsheets/d/1mVnPkOhCE0V1SFE2eNT-UVcSP8VbFfDCivgsPHeAOzQ/edit?usp=sharing
попробовать:
=ARRAYFORMULA(QUERY(TRANSPOSE(QUERY(TRANSPOSE({QUERY(A1:G; "offset "&COUNTA(A1:A)-ROW(A1); 0); TO_TEXT(A1:G)}); "where Col1 is not null order by Col1 desc"; 1)); "select Col1,Col2,Col3,Col4 where Col1 is not null offset 1"; 0))