Forum Discussion
ch2221655
Aug 25, 2021Copper Contributor
How to sort numbers in a cell separated by a comma
I need to sort numbers within a cell. 2018-09484, 2019-05944, 2016-03137 to 2016-03137, 2018-09484, 2019-05944
- Aug 25, 2021
=TEXTJOIN(", ",TRUE,SORT(FILTERXML("<y><z>"&SUBSTITUTE(A1,", ","</z><z>")&"</z></y>","//z")))
Detlef_Lewin
Aug 25, 2021Silver Contributor
=TEXTJOIN(", ",TRUE,SORT(FILTERXML("<y><z>"&SUBSTITUTE(A1,", ","</z><z>")&"</z></y>","//z")))
ch2221655
Aug 25, 2021Copper Contributor
Detlef_Lewin Thank you!