Power Query Course in Spanish
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Easy TEXT Q

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Location
    Dallas, TX
    Posts
    316
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hello all,

    I have a list of text that looks like this:

    LAKE AUSTIN SUMMARY 1003
    HOUSTON BLDR SUMMARY 1004
    VISALIA SUMMARY 1005
    ORLANDO BLDR NORTH SUMM 1006
    AUSTIN BLDR SUMMARY 1007
    COLUMBUS SUMMARY 1008

    I want to reverse it and have the number on the right in front of the alpha. I know how to get the =right(A1,4) in a cell, and I was going to use MID to get the text, but i think the MID function goes from left to right. How can I get the left portion of text out of this string?

    Thanks guys/gals

    Steve

  2. #2
    MrExcel MVP Barrie Davidson's Avatar
    Join Date
    Feb 2002
    Location
    Winnipeg
    Posts
    2,330
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-05-01 19:25, spg2112 wrote:
    Hello all,

    I have a list of text that looks like this:

    LAKE AUSTIN SUMMARY 1003
    HOUSTON BLDR SUMMARY 1004
    VISALIA SUMMARY 1005
    ORLANDO BLDR NORTH SUMM 1006
    AUSTIN BLDR SUMMARY 1007
    COLUMBUS SUMMARY 1008

    I want to reverse it and have the number on the right in front of the alpha. I know how to get the =right(A1,4) in a cell, and I was going to use MID to get the text, but i think the MID function goes from left to right. How can I get the left portion of text out of this string?

    Thanks guys/gals

    Steve
    Steve, try using:

    =RIGHT(A1,4)&" "&LEFT(A1,LEN(A1)-5)

    Hope this helps you out!

    Regards,

    Barrie Davidson

    "You're only given a little spark of madness. You mustn't lose it." - Robin Williams

  3. #3
    Board Regular
    Join Date
    Feb 2002
    Location
    Dallas, TX
    Posts
    316
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    That's it! I forgot about LEN, thanks.

    Steve

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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