+ Reply to Thread
Results 1 to 6 of 6

Trim function must remove all spaces between words.

  1. #1
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,014

    Trim function must remove all spaces between words.

    Hi experts,
    Trim is the WorksheetFunction which removes all extra spaces, but leaves one between words.
    I am looking for WorksheetFunction which removes all extra spaces and also removes all spaces between words.

    I need excel formula not vba.

    Thank you.
    Sub DontForgetThese()
         If Your thread includes any code Then Please use code tags...
         If Your thread has been solved Then Please mark as solved...
         If Anybody has helped to you Then Please add reputation...
    End Sub

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,911

    Re: Trim function must remove all spaces between words.

    So you want to get rid of ALL spaces?

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    BSB

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Trim function must remove all spaces between words.

    So in other words, remove ALL spaces.

    Try
    =SUBSTITUTE(A1," ","")

  4. #4
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Trim function must remove all spaces between words.

    Please Login or Register  to view this content.
    Like that?


    EDIT:
    Dang, ninja'd, although I like it when we all independently agree on the best answer.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  5. #5
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,014

    Re: Trim function must remove all spaces between words.


  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Trim function must remove all spaces between words.

    Interesting.
    The problem/solution in that thread is VERY different from the issue you described in your original post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] trim does not remove leading spaces?
    By inventorgeorge in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-06-2024, 09:38 PM
  2. Remove Spaces, Trim?
    By cybercab in forum Excel General
    Replies: 3
    Last Post: 02-11-2023, 02:39 PM
  3. How to use vba to remove extra spaces between words
    By Joe Walsh in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 08-09-2013, 09:37 AM
  4. Remove all spaces between words
    By Melf72 in forum Excel General
    Replies: 6
    Last Post: 09-06-2010, 08:11 PM
  5. Formula to remove spaces between words
    By jasonmcbride in forum Excel General
    Replies: 2
    Last Post: 03-31-2009, 08:54 PM
  6. How do I remove single spaces between words in spreadsheet?
    By spacecadet in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2007, 11:50 AM
  7. [SOLVED] Remove spaces between words
    By Heather Tavitian in forum Excel General
    Replies: 2
    Last Post: 09-30-2005, 09:05 PM

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