Forum Discussion
DarrylJP
Nov 13, 2022Copper Contributor
Sorting Numbers Withing a Text String
Usually I can think of at least a thought process of where to go, but stumped on this one...
I have a text field with a six digit text string, as an example '201210', i would like to sort those six digits into a new text string, so in the example above i would end up with a new text string '221100'.
Anyone have an idea where to start with th
DarrylJP Below formula may help-
=LET(x,SUBSTITUTE(A1,"'",""),y,MID(x,SEQUENCE(LEN(x)),1),"'"&CONCAT(SORT(y,,-1))&"'")