|  

» Rearranging a String in Alphabetic Order

Problem:

The cells in column A contain 3-letter strings.
We want to rearrange each string so that its characters are sorted in alphabetic order.

Solution:

Use the CHAR, SMALL, CODE, and MID functions as shown in the following formula:
=CHAR(SMALL(CODE(MID(A2,{1,2,3},1)),1))&CHAR(SMALL(CODE(MID(A2,{1,2,3},2)),2))&CHAR(SMALL(CODE(MID(A2,{1,2,3},3)),3))


Rate This Tip
12 34 5
Rating: 2.80     Views: 9264
No comments have been submitted.
Click here to post comment
For Registered Users
Name
Comment Title
Comments