One way:Formula:
=LET(a,TOCOL(A2:A100,1),pos,SORT(FILTER(a,a>=0),1,-1),neg,SORT(FILTER(a,a<0)),v,VSTACK(pos,neg),h,HSTACK(v,SEQUENCE(ROWS(v))),
hs,XLOOKUP(a,INDEX(h,,1),INDEX(h,,2)),hs)
One way:Formula:
=LET(a,TOCOL(A2:A100,1),pos,SORT(FILTER(a,a>=0),1,-1),neg,SORT(FILTER(a,a<0)),v,VSTACK(pos,neg),h,HSTACK(v,SEQUENCE(ROWS(v))),
hs,XLOOKUP(a,INDEX(h,,1),INDEX(h,,2)),hs)
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks