+ Reply to Thread
Results 1 to 5 of 5

Removing Spaces from string

  1. #1
    Registered User
    Join Date
    12-21-2005
    Posts
    16

    Removing Spaces from string

    I want to be able to remove spaces from a string, that may have muiltiple words to create a string with no spaces.
    For example "sin city" to become "sincity"

    The strings will be of a random length and may contain more than 2 words such as "master & commander"

    Thanks

  2. #2
    Beege
    Guest

    Re: Removing Spaces from string

    kat

    Search/Replace

    Select column

    Use " " for search (space)
    Use "" for replace (no space)

    Beege

    "katmando" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I want to be able to remove spaces from a string, that may have
    > muiltiple words to create a string with no spaces.
    > For example "sin city" to become "sincity"
    >
    > The strings will be of a random length and may contain more than 2
    > words such as "master & commander"
    >
    > Thanks
    >
    >
    > --
    > katmando
    > ------------------------------------------------------------------------
    > katmando's Profile:
    > http://www.excelforum.com/member.php...o&userid=29803
    > View this thread: http://www.excelforum.com/showthread...hreadid=542452
    >




  3. #3
    Ardus Petus
    Guest

    Re: Removing Spaces from string

    =SUBSTITUTE(A1," ","")

    HTH
    --
    AP

    "katmando" <[email protected]> a écrit
    dans le message de news:
    [email protected]...
    >
    > I want to be able to remove spaces from a string, that may have
    > muiltiple words to create a string with no spaces.
    > For example "sin city" to become "sincity"
    >
    > The strings will be of a random length and may contain more than 2
    > words such as "master & commander"
    >
    > Thanks
    >
    >
    > --
    > katmando
    > ------------------------------------------------------------------------
    > katmando's Profile:
    > http://www.excelforum.com/member.php...o&userid=29803
    > View this thread: http://www.excelforum.com/showthread...hreadid=542452
    >




  4. #4
    Dave Peterson
    Guest

    Re: Removing Spaces from string

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

    is one way

    katmando wrote:
    >
    > I want to be able to remove spaces from a string, that may have
    > muiltiple words to create a string with no spaces.
    > For example "sin city" to become "sincity"
    >
    > The strings will be of a random length and may contain more than 2
    > words such as "master & commander"
    >
    > Thanks
    >
    > --
    > katmando
    > ------------------------------------------------------------------------
    > katmando's Profile: http://www.excelforum.com/member.php...o&userid=29803
    > View this thread: http://www.excelforum.com/showthread...hreadid=542452


    --

    Dave Peterson

  5. #5
    Registered User
    Join Date
    12-21-2005
    Posts
    16
    Thanks. the substitute was the one i needed

    cheers

+ 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