A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
The original formula is already sorting Column 2 (ni(⊥)) in descending order because the last two arguments are:
2,-1
where 2 means sort by the second column and -1 means highest to lowest.
If you would like to sort by Column 1 (Δσi (⊥) [N/mm²]) instead, you only need to change one part of the formula:
2,-1
to
1,-1
This will sort the results by Column 1 from highest to lowest while keeping the corresponding values in Column 2 aligned with each row.
You can copy this one:
=SORT(
FILTER(
HSTACK(
'[Fatigue Assesment_as per 17949_Welded Joints.xlsm]S1'!$E$1466:$E$2065,
'[Fatigue Assesment_as per 17949_Welded Joints.xlsm]S1'!$F$1466:$F$2065*$I$3
),
('[Fatigue Assesment_as per 17949_Welded Joints.xlsm]S1'!$E$1466:$E$2065<>"-")*
(BYROW(
'[Fatigue Assesment_as per 17949_Welded Joints.xlsm]S1'!$E$1466:$E$2065,
LAMBDA(r,SUM(r)>0)
)),
"N"
),
1,
-1
)