View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default transpose characters in a cell (ex: ABC12345 changes to 54321CBA)

Try this one line UDF:

Function reverse(r As Range) As String
reverse = StrReverse(r.Value)
End Function

--
Gary''s Student - gsnu200753


"karen" wrote:

I looking to take a column of part numbers (mixed with text and numerals) and
transpose the character position from left-to-right - changing it to
right-to-left. An example would be 5YA124 would change to read 421AY5