Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Trimming 1 space at end of text string to create a number.

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    33
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I inherited a worksheet that has obviously been imported from some other Dbase format. Every single number has a " " (space) behind it, making it text. I tried using trim and Rtrim to get that space out so the value would be a number again, but it does not work. Can anyone help me out on this one?

  2. #2
    New Member
    Join Date
    Feb 2002
    Posts
    47
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Try this:

    =Value(Trim(a1))

  3. #3
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    If you already tried TRIM it probably isn't a space. Use =CODE(RIGHT(A1)) (where A1 contains one of your "numbers") to pick out this character. Click on the formula bar after selecting the cell containing =CODE(RIGHT(A1)) and press F9. What's the ASCII number that's displayed?

    Also, consider using =LEFT(A1,LEN(A1)-1)+0 to trim and convert your "number".>

    [ This Message was edited by: Mark W. on 2002-03-06 10:56 ]

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
  •