ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Mirror columns or text (https://www.excelbanter.com/excel-discussion-misc-queries/85160-mirror-columns-text.html)

PD

Mirror columns or text
 
If I have a phrase in a column for example academy of music philadelphia,
how do I mirror that text to read philadelphia music of academy. Can I
rotate the text then mirror it? Any suggestions please let me know. Mirror
is the key here but I have no Idea how to do it.

Academy of music philadelphia
philadelphia music of academy

Toppers

Mirror columns or text
 
This a UDF to mirror string:

use like normal function:

in b1

=MirrorStr(A1)

where A1 contains string

HTH

Function MirrorStr(ByVal rStr As String)
Dim v As Variant
v = Split(rStr, " ")
s = ""
For i = UBound(v) To LBound(v) Step -1
s = s & v(i) & " "
Next i
MirrorStr = Trim(s)
End Function


"PD" wrote:

If I have a phrase in a column for example academy of music philadelphia,
how do I mirror that text to read philadelphia music of academy. Can I
rotate the text then mirror it? Any suggestions please let me know. Mirror
is the key here but I have no Idea how to do it.

Academy of music philadelphia
philadelphia music of academy



All times are GMT +1. The time now is 03:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com