+ Reply to Thread
Results 1 to 3 of 3

Invert Text

  1. #1
    Gary's Student
    Guest

    Invert Text

    Is there an easy way to invert text? For example, if A1 = "Blanche DuBois"
    I would like invert(A1) to equal "sioBuD ehcnalB"

    Thanks in advance
    --
    Gary's Student

  2. #2
    David McRitchie
    Guest

    Re: Invert Text

    You can use StrReverse in a User Defined Function, or in a macro
    http://groups.google.com/groups?thre...TNGP11.phx.gbl

    Function ReverseText(cell)
    ReverseText = StrReverse(cell.Text)
    End Function

    usage:
    =ReverseText(A1)

    ---
    HTH, http://www.mvps.org/dmcritchie/excel/strings.htm
    David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

    "Gary's Student" <[email protected]> wrote in message
    news:[email protected]...
    > Is there an easy way to invert text? For example, if A1 = "Blanche DuBois"
    > I would like invert(A1) to equal "sioBuD ehcnalB"
    >
    > Thanks in advance
    > --
    > Gary's Student




  3. #3
    Gary's Student
    Guest

    Re: Invert Text

    Thank you. Works like a charm!
    --
    Gary's Student


    "David McRitchie" wrote:

    > You can use StrReverse in a User Defined Function, or in a macro
    > http://groups.google.com/groups?thre...TNGP11.phx.gbl
    >
    > Function ReverseText(cell)
    > ReverseText = StrReverse(cell.Text)
    > End Function
    >
    > usage:
    > =ReverseText(A1)
    >
    > ---
    > HTH, http://www.mvps.org/dmcritchie/excel/strings.htm
    > David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    > My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    > Search Page: http://www.mvps.org/dmcritchie/excel/search.htm
    >
    > "Gary's Student" <[email protected]> wrote in message
    > news:[email protected]...
    > > Is there an easy way to invert text? For example, if A1 = "Blanche DuBois"
    > > I would like invert(A1) to equal "sioBuD ehcnalB"
    > >
    > > Thanks in advance
    > > --
    > > Gary's Student

    >
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1