Forum Discussion
renee_crozier
Nov 27, 2024Brass Contributor
Reorder Cell Data Using Power Query
I'm trying to take a list of items, reorder the data in a single cell, and then alphabetize the column. Alphabetizing the column is easy but reordering the data in a cell is tripping me up. I know I ...
Mark_J_Walker
Nov 28, 2024Brass Contributor
Hi
If you haven't solved it yet, this formula should do it.
=TEXTJOIN(", ",,SORT(TEXTSPLIT(A2,", "),,,TRUE))
This is how the formula breaks down
Mark_J_Walker
Nov 28, 2024Brass Contributor
Sorry, I've just checked your post and see that I missed the requirements, I don't understand how you get from "c,a,b" -> "b" as an outcome, if you can explain that, I may be able to assist.