+ Reply to Thread
Results 1 to 5 of 5

how to remove spaces in a cell/column

  1. #1
    P.M.SANJAY
    Guest

    how to remove spaces in a cell/column

    hi
    I want to remove spaces in a middle of a cell/column.

    regards

    P.M.SANJAY

  2. #2
    George Nicholson
    Guest

    Re: how to remove spaces in a cell/column

    Do you need something other than the SUBSTITUTE (and/or REPLACE) functions?

    --
    George Nicholson

    Remove 'Junk' from return address.


    "P.M.SANJAY" <PMSANJAY@discussions.microsoft.com> wrote in message
    news:072F323B-1FF4-4406-8FA9-1AE62C5158FA@microsoft.com...
    > hi
    > I want to remove spaces in a middle of a cell/column.
    >
    > regards
    >
    > P.M.SANJAY




  3. #3
    Bernard Liengme
    Guest

    Re: how to remove spaces in a cell/column

    Give us an example of what is in the cell
    --
    Bernard V Liengme
    www.stfx.ca/people/bliengme
    remove caps from email

    "P.M.SANJAY" <PMSANJAY@discussions.microsoft.com> wrote in message
    news:072F323B-1FF4-4406-8FA9-1AE62C5158FA@microsoft.com...
    > hi
    > I want to remove spaces in a middle of a cell/column.
    >
    > regards
    >
    > P.M.SANJAY




  4. #4
    Carole O
    Guest

    RE: how to remove spaces in a cell/column

    Here is VBA code from David McRitchie that works for me. Copy starting with
    Sub,open your spreadsheet, right click on the tab at the bottom, select View
    Code, paste the VBA code, and close out of VBA (file, close and return..).
    Highlight the columns that need the spaces removed, go to Tools, Macro,
    Macros, Run and select the RemoveAllSpaces, and select Run. That should do
    it!!

    Good luck!
    Carole O

    Sub RemoveAllSpaces()
    'David McRitchie 2000-10-24
    Application.ScreenUpdating = False
    Application.Calculation = xlCalculationManual
    Selection.SpecialCells(xlConstants).Replace What:=Chr(160), _
    Replacement:="", _
    LookAt:=xlPart, SearchOrder:=xlByColumns, MatchCase:=True
    Selection.SpecialCells(xlConstants).Replace What:=Chr(32), _
    Replacement:="", _
    LookAt:=xlPart, SearchOrder:=xlByColumns, MatchCase:=True
    Application.Calculation = xlCalculationAutomatic
    Application.ScreenUpdating = True
    End Sub



    "P.M.SANJAY" wrote:

    > hi
    > I want to remove spaces in a middle of a cell/column.
    >
    > regards
    >
    > P.M.SANJAY


  5. #5
    Forum Contributor
    Join Date
    12-14-2005
    Posts
    176
    Select your Column or Columns:
    Go To EDIT - REPLACE - in the FIND - press the space bar 1 time.
    Leave the REPLACE blank.

+ 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