+ Reply to Thread
Results 1 to 3 of 3

Removing spaces

  1. #1
    Forum Contributor
    Join Date
    07-22-2008
    Location
    canada
    Posts
    123

    Removing spaces

    Hi,

    How do I remove the spaces around a character. If A1 contains " B " I would like to create a formula in c1 so that it would remove the spaces around the "B". Please help Thanks.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    There are several options
    If there are no other spaces in your range, highlight the range and do a search and replace on blanks.
    If you want initial and final blanks removed, in another cell/column try
    Please Login or Register  to view this content.
    TRIM removes excess blanks and CLEAN removes unprintable characters (which are often mistaken for blanks by the user).
    Then you can paste special>values back on top of the original cells

    ChemistB

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    janjan_376,

    I'm the 2nd mod today to move one of your threads to the correct forum. Please do read the rules below as I have requested (when you duplicate posted) as next time you may find the thread locked.


    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ 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