+ Reply to Thread
Results 1 to 5 of 5

Delete spaces in cell content

  1. #1
    Forum Contributor
    Join Date
    09-17-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    115

    Delete spaces in cell content

    A column contains a list of numbers which either have spaces between the numbers or are followed by a space. How do I delete all spaces from the selection A:A?

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,754

    Re: Delete spaces in cell content

    This should help

    http://www.extendoffice.com/document...ve-spaces.html
    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

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: Delete spaces in cell content

    Select column A
    Ctrl+H
    Search: one space here
    Replace with: leave empty

    PS. check if numbers are really numbers now (not texts which only look like numbers)
    Best Regards,

    Kaper

  4. #4
    Forum Contributor
    Join Date
    09-17-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    115

    Re: Delete spaces in cell content

    is that CTRL+F ? The normal replacement does not work, is there an alternative to delete spaces in all cells within a range of cells?

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: Delete spaces in cell content

    Ctrl+H (like cHange, but Ctrl+C is used for other purpose :-P) should open directly second tab (change <=> replace) of Find dialog (Ctrl+F).

    May be these characters are not spaces, but for instance non-breaking spaces (Alt160)? Quite often case in for instance data imported from financial documents.
    if b1:
    =SUBSTITUTE(A1,CHAR(160),"")
    works with A1 then here we are.
    easy way - copy formula all way down
    then copy column B and paste special as values to column A

    or use numeric keypad (keep left Alt pressed and type 0160 on numeric keypad, release Alt) to enter this non-breaking-space into search and replace dialog instead of normal space.

+ 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. IF same CONTENT FOUND IN CELL A THEN DELETE CONTENT IN B,C or D
    By mecutemecute in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-11-2013, 01:16 AM
  2. [SOLVED] delete cell content when other cell's content is removed
    By Pretpik in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-11-2012, 11:06 PM
  3. Replies: 5
    Last Post: 09-25-2006, 04:34 PM
  4. how do I delete the last two spaces in a cell
    By brantty in forum Excel General
    Replies: 2
    Last Post: 07-26-2006, 08:20 PM
  5. [SOLVED] I have spaces following names in my cell, how do I delete them?
    By LostandConfused in forum Excel General
    Replies: 2
    Last Post: 02-13-2006, 01:10 AM

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