+ Reply to Thread
Results 1 to 6 of 6

Remove Space in Text

Hybrid View

  1. #1
    Tian
    Guest

    Remove Space in Text

    I know how the "trim" function works, but is there a function in excel to
    remove all the space in text? Example would be

    from "281P 358" to "281P358"

    Thanks

  2. #2
    Dave O
    Guest

    Re: Remove Space in Text

    One way: highlight the range in question, and from the menu click >Edit
    >Replace. Search for a single space, and replace with nothing.



  3. #3
    Dave Peterson
    Guest

    Re: Remove Space in Text

    =substitute(a1," ","")

    replaces all the spaces in A1 with nothing.



    Tian wrote:
    >
    > I know how the "trim" function works, but is there a function in excel to
    > remove all the space in text? Example would be
    >
    > from "281P 358" to "281P358"
    >
    > Thanks


    --

    Dave Peterson

  4. #4
    Kevin B
    Guest

    RE: Remove Space in Text

    Formula example assumes that the value you want to strip the spaces from is
    in A1:


    =SUBSTITUTE(A1," ","")
    --
    Kevin Backmann


    "Tian" wrote:

    > I know how the "trim" function works, but is there a function in excel to
    > remove all the space in text? Example would be
    >
    > from "281P 358" to "281P358"
    >
    > Thanks


  5. #5
    Ron Coderre
    Guest

    RE: Remove Space in Text

    Try this:

    For text in A1

    B1: =SUBSTITUTE(A1," ","")
    Removes ALL spaces

    Does that help?

    ***********
    Regards,
    Ron

    XL2002, WinXP-Pro


    "Tian" wrote:

    > I know how the "trim" function works, but is there a function in excel to
    > remove all the space in text? Example would be
    >
    > from "281P 358" to "281P358"
    >
    > Thanks


  6. #6
    Tian
    Guest

    RE: Remove Space in Text

    Thanks for the help, everyone. It works.

    "Ron Coderre" wrote:

    > Try this:
    >
    > For text in A1
    >
    > B1: =SUBSTITUTE(A1," ","")
    > Removes ALL spaces
    >
    > Does that help?
    >
    > ***********
    > Regards,
    > Ron
    >
    > XL2002, WinXP-Pro
    >
    >
    > "Tian" wrote:
    >
    > > I know how the "trim" function works, but is there a function in excel to
    > > remove all the space in text? Example would be
    > >
    > > from "281P 358" to "281P358"
    > >
    > > Thanks


+ 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