+ Reply to Thread
Results 1 to 4 of 4

Reverse text in a cell

  1. #1
    Registered User
    Join Date
    01-28-2014
    Location
    Brno
    MS-Off Ver
    Excel 2010
    Posts
    70

    Reverse text in a cell

    Hi,

    I'm trying to come up with formula (no VBA), which takes text from let's say cell A1 and displays it in cell B2 in reverse order (for instance aad1 in A2 will be displayed as 1daa in B2).

    I know the formula for numbers, but struggling with formula for text. So far I came up with (assuming text in cell A2 is "aab") =MID(A2,LEN(A2)+1-ROW(INDIRECT("1:"&LEN(A2))),1) - when I select it and press F9 I get: ={"b";"a";"a"}, however, after confirming the formula with CSE I only get first letter b. So what I'm trying to do is to "tell" excel to convert {"b";"a";"a"} to baa, but with no success so far.

    I also would like to avoid type of formula below where I add characters together (this one works for 3 characters).

    =MID(A2,LEN(A2)+1-ROW(INDIRECT("1:"&LEN(A2))),1)&MID(A2,LEN(A2)+1-ROW(INDIRECT("1:"&LEN(A2)))-1,1)&MID(A2,LEN(A2)+1-ROW(INDIRECT("1:"&LEN(A2)))-2,1)

    Any help would be gratefully appreciated.

    Thanks

    Pepe
    Attached Files Attached Files

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Reverse text in a cell

    Hi.

    I'm afraid that it simply cannot be done apart from via the multiple concatenations that you point out.

    It's perhaps the most significant failing on the part of Microsoft - in terms of worksheet formulas - that they have yet to introduce array-processing capability for the family of text functions within Excel.

    As you know, we can come up with workarounds for this shortcoming, e.g. for concatenating numerics, though no such shortcuts exist for non-numerics, and so we are left with the choice of either tortuously-long concatenated formulas or else VBA.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    01-28-2014
    Location
    Brno
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Reverse text in a cell

    Thanks XOR LX,

    That's the answer I was afraid of. So we might only hope these kind of functions will be introduced in some of forthcoming Office version.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Reverse text in a cell

    Indeed, but don't hold your breath!

    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Reverse Number in Text Excel
    By Hani2002 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-08-2014, 09:18 AM
  2. [SOLVED] How to Reverse Contents in an Excel cell (Text or a Number)
    By CeeGee in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-06-2014, 07:40 AM
  3. Reverse Data In A Cell / Reverse Cell Contents
    By nostawydoc in forum Excel General
    Replies: 5
    Last Post: 12-18-2009, 05:20 PM
  4. [SOLVED] reverse text
    By Peterke in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-24-2006, 11:25 AM
  5. reverse text
    By tom mcdonald in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-01-2005, 09:05 PM

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