+ Reply to Thread
Results 1 to 14 of 14

White Space at begining of a number

  1. #1
    Registered User
    Join Date
    02-16-2015
    Location
    Dublin, Ireland
    MS-Off Ver
    Office 2013
    Posts
    10

    Exclamation White Space at begining of a number

    Hello,
    I have tried removing the white spaces at the start of this number ** 135 000 but there remains 2 spaces.
    I have used Trim() and have tried find and replace the spaces with nothing.
    I have reformatted the cell to number
    I have tried clean()
    None of these methods have worked.
    Any ideas would be gratefully appreciated?
    Regards
    David

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: White Space at begining of a number

    I hit against a particularly hard space at the beginning, I finally clicked into the cell and using the cursor highlighted the space before the numbers, then did a find and replace where I pasted the spaces into find and left blank the replace, then did replace all and that got rid of them. Give it a try to see if that works.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: White Space at begining of a number

    Could it be char(160), especially if the data has come from the web.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: White Space at begining of a number

    Please show the excel file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Registered User
    Join Date
    02-16-2015
    Location
    Dublin, Ireland
    MS-Off Ver
    Office 2013
    Posts
    10

    Re: White Space at begining of a number

    Sorry about this but how do I show the excel file

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: White Space at begining of a number

    ... or a zerowidth non breaking space, which defaults to char 63?

    if you use =code(a1) what do you see, if a1 contains your problem number?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Registered User
    Join Date
    02-16-2015
    Location
    Dublin, Ireland
    MS-Off Ver
    Office 2013
    Posts
    10

    Re: White Space at begining of a number

    What's char(160)?
    Thanks

  8. #8
    Registered User
    Join Date
    02-16-2015
    Location
    Dublin, Ireland
    MS-Off Ver
    Office 2013
    Posts
    10

    Re: White Space at begining of a number

    Yes Glenn I see 160

  9. #9
    Registered User
    Join Date
    02-16-2015
    Location
    Dublin, Ireland
    MS-Off Ver
    Office 2013
    Posts
    10

    Re: White Space at begining of a number

    Thanks Special - K it is char 160
    But I don't know how to solve this
    Regards

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: White Space at begining of a number

    You're lucky. char 160 is a non-breaking space and it's easy to lose. If your data are in A1

    =SUBSTITUTE(A1,CHAR(160),"")

    will get rid of it. I can't remember, but you may need a -- at the start of the formula or a +0 at the end to turn it back into a number.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: White Space at begining of a number

    You're lucky. char 160 is a non-breaking space and it's easy to lose. If your data are in A1

    =SUBSTITUTE(A1,CHAR(160),"")

    will get rid of it. I can't remember, but you may need a -- at the start of the formula or a +0 at the end to turn it back into a number.

  12. #12
    Registered User
    Join Date
    02-16-2015
    Location
    Dublin, Ireland
    MS-Off Ver
    Office 2013
    Posts
    10

    Re: White Space at begining of a number

    Thanks a million Glenn,
    That works a treat and both the +0 or -- work to change it to a number
    I very grateful !!!
    Regards

  13. #13
    Registered User
    Join Date
    02-16-2015
    Location
    Dublin, Ireland
    MS-Off Ver
    Office 2013
    Posts
    10

    Re: White Space at begining of a number

    Thanks all this is now solved for me
    Kind regards
    David

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: White Space at begining of a number

    You're welcome and thanks for the reputation...

+ 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. Add white space above and below cells
    By Getfothers in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2013, 02:05 AM
  2. white space
    By forumexcel in forum Excel General
    Replies: 2
    Last Post: 03-16-2012, 05:15 PM
  3. Help with white space
    By komet12 in forum Excel General
    Replies: 3
    Last Post: 10-26-2009, 04:59 PM
  4. White Space in a Cell
    By Gina O'Brien in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 06-17-2005, 10:05 AM
  5. [SOLVED] White Space in PDF from Excel
    By Antony in forum Excel General
    Replies: 0
    Last Post: 05-23-2005, 04:06 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