Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Using a formula in an adjacent cell:
Using a VBA macro:
Sub ReverseString()
Dim WB As Workbook
Dim WS As Worksheet
Dim R As Integer
Set WB = Excel.ActiveWorkbook
Set WS = WB.Worksheets("reverse")
' Меняется столбец A1
R = 1
While (WS.Cells(R, 1).Value <> "")
s = Split(WS.Cells(R, 1).Value, "-")
WS.Cells(R, 1).Value = Join(Array(s(2), s(1), s(0)), "-")
R = R + 1
Wend
End Sub
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question