+ Reply to Thread
Results 1 to 8 of 8

How to add spaces to text?

  1. #1
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    How to add spaces to text?

    Hello Friends

    From input cell A1 text, Need the space removed text in B1 by using formula.

    thanks in advance
    Attached Files Attached Files
    Last edited by AliGW; 12-22-2017 at 03:49 AM. Reason: Title amended by moderator
    Sekar

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Need Space removed text

    What you have shown in your attachment is the opposite of what you are asking, so please clarify: do you want the spaces adding or removing?

    This will REMOVE spaces:

    =SUBSTITUTE(A1," ","")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Re: Need Space removed text

    Hello Ali

    Thanks for your formula. I have made a mistake here, my requirement is just reverse. So i am closing this thread and opened a new thread.

    https://www.excelforum.com/excel-for...ml#post4807552

    thanks again.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Need Space removed text

    Continue here, please. I have amended the title of the opening post. You know the rules about thread duplication - it is NOT allowed.
    Last edited by AliGW; 12-22-2017 at 03:49 AM.

  5. #5
    Forum Contributor
    Join Date
    04-19-2015
    Location
    pakistan
    MS-Off Ver
    2013
    Posts
    335

    Re: How to add spaces to text?

    Hi try this
    Please Login or Register  to view this content.
    =AddSpace(B1) into the Formula Bar, then press the Enter key.

  6. #6
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Re: How to add spaces to text?

    Hello gondal

    Thanks form your UDF which is working well.

    But please confirm for UDF whether we need to save the file in .xlsm format or .xlsx is sufficient.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: How to add spaces to text?

    If you don't save as .xlsm, when you close and re-open the file, you will lose the UDF.

  8. #8
    Forum Contributor
    Join Date
    04-19-2015
    Location
    pakistan
    MS-Off Ver
    2013
    Posts
    335

    Re: How to add spaces to text?

    xlsx cannot save any macro or udf enable sheet for more info see below link.!
    https://support.office.com/en-us/art...a-b83d51d46247

+ 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] Extra space or spaces in Text in Forum Post. BB Code for extra space ?
    By Doc.AElstein in forum The Water Cooler
    Replies: 21
    Last Post: 03-02-2016, 02:59 PM
  2. parsing text return space to space
    By dosmastr in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-15-2015, 12:09 AM
  3. Replies: 3
    Last Post: 12-13-2014, 05:11 PM
  4. Replies: 5
    Last Post: 10-10-2012, 06:04 AM
  5. Replies: 4
    Last Post: 02-07-2012, 07:47 AM
  6. Removing text from one cell if removed in another
    By lifeline in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2010, 06:28 AM
  7. [SOLVED] Excel 2003 / Send To / Mail Recipient / body text is removed
    By jmaynard2 in forum Excel General
    Replies: 1
    Last Post: 03-15-2005, 11:06 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