+ Reply to Thread
Results 1 to 5 of 5

Deleting blank spaces in cells

  1. #1
    Registered User
    Join Date
    05-16-2006
    Posts
    3

    Deleting blank spaces in cells

    Hi all
    I have spreadsheet (converted from report) which contains cells that contain data and blank spaces. I want to keep the data and delete the blank spaces. All cells are not formatted the same eg some are 4 blank spaces and then text, some are text and 14 blank spaces. Please help!

    * Great Thanks for all your help
    Last edited by Mr Gow; 05-17-2006 at 12:23 AM.

  2. #2
    Norman Jones
    Guest

    Re: Deleting blank spaces in cells

    Hi Mr Gow,

    Look at the Trim function in Excel help.

    Trim will remove the leading and trailing spaces.



    ---
    Regards,
    Norman



    "Mr Gow" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi all
    > I have spreadsheet (converted from report) which contains cells that
    > contain data and blank spaces. I want to keep the data and delete the
    > blank spaces. All cells are not formatted the same eg some are 4 blank
    > spaces and then text, some are text and 14 blank spaces. Please help!
    >
    >
    > --
    > Mr Gow
    > ------------------------------------------------------------------------
    > Mr Gow's Profile:
    > http://www.excelforum.com/member.php...o&userid=34511
    > View this thread: http://www.excelforum.com/showthread...hreadid=542758
    >




  3. #3
    JMB
    Guest

    RE: Deleting blank spaces in cells

    You can set up a helper column and use the TRIM function to remove extra
    spaces.

    =TRIM(B1)

    Then copy this formula as far as necessary, copy, click Edit/PasteSpecial -
    values. Then delete the original data. Play with it a little bit, just be
    sure to back up your data.


    "Mr Gow" wrote:

    >
    > Hi all
    > I have spreadsheet (converted from report) which contains cells that
    > contain data and blank spaces. I want to keep the data and delete the
    > blank spaces. All cells are not formatted the same eg some are 4 blank
    > spaces and then text, some are text and 14 blank spaces. Please help!
    >
    >
    > --
    > Mr Gow
    > ------------------------------------------------------------------------
    > Mr Gow's Profile: http://www.excelforum.com/member.php...o&userid=34511
    > View this thread: http://www.excelforum.com/showthread...hreadid=542758
    >
    >


  4. #4
    Norman Jones
    Guest

    Re: Deleting blank spaces in cells

    Hi Mr Gow,

    Depending on the nature of the spaces, you may also wish to visit David
    McRitchie's TrimAll page at:

    http://www.mvps.org/dmcritchie/excel/join.htm#trimall


    ---
    Regards,
    Norman



  5. #5
    Dave Peterson
    Guest

    Re: Deleting blank spaces in cells

    If you want to get rid of all the spaces--including any between words:

    Select the range to fix
    edit|replace
    what: (spacebar)
    with: (leave blank)
    replace all

    Mr Gow wrote:
    would become
    MrGowwrote:



    Mr Gow wrote:
    >
    > Hi all
    > I have spreadsheet (converted from report) which contains cells that
    > contain data and blank spaces. I want to keep the data and delete the
    > blank spaces. All cells are not formatted the same eg some are 4 blank
    > spaces and then text, some are text and 14 blank spaces. Please help!
    >
    > --
    > Mr Gow
    > ------------------------------------------------------------------------
    > Mr Gow's Profile: http://www.excelforum.com/member.php...o&userid=34511
    > View this thread: http://www.excelforum.com/showthread...hreadid=542758


    --

    Dave Peterson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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