Automatically Sort Fields Across a Row: Is there a formula?

londonparisrome

New Member
Joined
Aug 1, 2019
Messages
25
I am working on a solution for our school district PTA. I have 5 student names on one "family" record row, with hundreds of rows in the sheet. I would like to sort the student names alphabetically, and most people have listed the students in grade order.

For instance, the record may have cells A2-E2 with Larry, Bobby, Erin, Kim, Sam, and I need it to automatically sort to Bobby, Erin, Kim, Larry and Sam in columns F2-J2.

Is that possible? The end users of the spreadsheet I am creating are not very tech-savvy, so I was hoping to have am automated process.
 
Translate the English function COLUMNS() into your local Excel version language?

I use office 365 in English but with the European regional settings, which uses ";" in formulas and "," as a decimal point.
I tried that UDF with a new file, but without success.
Same result ...#value.
 
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
In G2 what does this produce?

=SortedNames(A2:E2;1)

If still a problem can you upload the sample file to a public file-share site & provide a link to it?
 
Upvote 0
I have already tried, replacing COLUMNS ($ G2: G2) with 1, 2, 3 and 4 but I got the same result #Value
I can't upload any file.
OK. Leave it that way.
Thank you for trying to help me.
 
Upvote 0
OK, can't think what else it might be unless maybe something to do with regional settings. :eek:
 
Upvote 0
None of the suggested variants work for me.

Thanks anyway.
 
Upvote 0

Forum statistics

Threads
1,214,940
Messages
6,122,356
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top