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
=TEXTJOIN(", ",TRUE,SORT(FILTERXML("<y><z>"&SUBSTITUTE(A1,", ","</z><z>")&"</z></y>","//z")))
2 Replies
- Detlef_LewinSilver Contributor
=TEXTJOIN(", ",TRUE,SORT(FILTERXML("<y><z>"&SUBSTITUTE(A1,", ","</z><z>")&"</z></y>","//z")))
- ch2221655Copper ContributorDetlef_Lewin Thank you!