+ Reply to Thread
Results 1 to 14 of 14

Removing blank spaces between number

  1. #1
    Registered User
    Join Date
    10-14-2021
    Location
    South Africa
    MS-Off Ver
    2019
    Posts
    7

    Red face Removing blank spaces between number

    Good day everyone. I have tried most things and I can't get it right to remove the blank spaces between the numbers. How do I go about it? Find and replace don't work, trim don't work, sub as well and format cell. I have attached a basic csv file as an example

    Please help.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,410

    Re: Removing blank spaces between number

    They are none breaking spaces, code 160.

    R270*231,20 =CODE(MID(A15,5,1)) 160

    Use Find and Replace | Replace | Find what: ALT 0160 | Replace with: (nothing) | Replace All

    In the first box, Press and hold the Alt key and type 0160 on the numeric keypad. Leave the second box blank.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    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: Removing blank spaces between number

    I opened it, used find what " " (no quotes and hit the space bar once) and replace with left blank, hit replace all and they were gone.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    10-14-2021
    Location
    South Africa
    MS-Off Ver
    2019
    Posts
    7

    Re: Removing blank spaces between number

    Thank you so much will try this out as well.

  5. #5
    Registered User
    Join Date
    10-14-2021
    Location
    South Africa
    MS-Off Ver
    2019
    Posts
    7

    Re: Removing blank spaces between number

    I will then have to check out my excel or just re-install it.

  6. #6
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,408

    Re: Removing blank spaces between number

    Quote Originally Posted by Urian View Post
    I will then have to check out my excel or just re-install it.
    Why? Did you try what TMS posted?

  7. #7
    Registered User
    Join Date
    10-14-2021
    Location
    South Africa
    MS-Off Ver
    2019
    Posts
    7

    Re: Removing blank spaces between number

    Hi tried it and nothing could be found

  8. #8
    Registered User
    Join Date
    10-14-2021
    Location
    South Africa
    MS-Off Ver
    2019
    Posts
    7

    Re: Removing blank spaces between number

    I have tried it nothing happens. I read that the data could be protected so have selected all data went to format cell - protection and unselect locked.
    Then I tried to remove the R so that I may use it in a simple math equations =A15*1 and it give me value, but when I add a new cell and type it out and do simple math =A2*1 then I get an answer. What could be the problem? I once again tried I opened it, used find what " " (no quotes and hit the space bar once) and replace with left blank, hit replace all and Use Find and Replace | Replace | Find what: ALT 0160 | Replace with: (nothing) | Replace All

    In the first box, Press and hold the Alt key and type 0160 on the numeric keypad. Leave the second box blank. and no results was found???

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,870

    Re: Removing blank spaces between number

    I took your sample workbook and did find and replace using Alt +0160 and it worked for me. I then tried an alternative method. I brought the data into Power Query/Get and Transform found on the Data Tab of the Ribbon. In the PQ editor,I selected Transform and Replace values. I then insert in the window Alt +0160 and left the resultant blank. The result is that it removed the space in that case also.

    Are you attempting this in the same file that you provide to us as your sample?
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  10. #10
    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: Removing blank spaces between number

    My keyboard space must have matched the space in your csv file, but just an FYI, I have found that if the keyboard space doesn't match the space in the cell, just click in the cell and put your cursor at the beginning of the space, highlight the space holding down either your mouse or the shift key and right arrow, then copy. Paste that in the find what part of find and replace, leave the replace blank, hit replace all and it will work.

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,410

    Re: Removing blank spaces between number

    Sam's suggestion is pretty reliable (and what I tried second, after a normal space failed).

    To use Alt-0160, you MUST have (and use) the numeric block, not the numbers on the main keypad.

  12. #12
    Registered User
    Join Date
    10-14-2021
    Location
    South Africa
    MS-Off Ver
    2019
    Posts
    7

    Re: Removing blank spaces between number

    Thank you so much it worked now. Lol I was using a laptop and I did not have numeric keyboard, but it's fixed thank you every for the help.

  13. #13
    Registered User
    Join Date
    10-14-2021
    Location
    South Africa
    MS-Off Ver
    2019
    Posts
    7

    Re: Removing blank spaces between number

    This worked as well lol. So crazy

  14. #14
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,870

    Re: Removing blank spaces between number

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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] Removing blank spaces START and END without TRIM
    By makinmomb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-07-2014, 10:24 PM
  2. Removing blank spaces after text
    By ops154 in forum Excel General
    Replies: 6
    Last Post: 01-16-2014, 03:21 PM
  3. [SOLVED] Removing blank spaces before and after in a cell using VBA
    By rz6657 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-26-2013, 06:54 PM
  4. Removing blank space or spaces at end of a string
    By grumpyguppy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-14-2013, 03:34 AM
  5. [SOLVED] Removing blank spaces from a spreadsheet while referencing from another sheet.
    By PhoenixAscendant in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-18-2012, 02:35 AM
  6. Removing blank spaces from the beginning of cells
    By Research RN in forum Excel General
    Replies: 2
    Last Post: 06-17-2009, 11:39 AM
  7. Removing spaces in a blank cell
    By DTran22 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-29-2006, 09:24 PM

Tags for this Thread

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