+ Reply to Thread
Results 1 to 9 of 9

Automatically adding a space just before a bracket

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,386

    Automatically adding a space just before a bracket

    Hi,

    I have a list in which there is a absence of a single space just before bracket with which I cannot use function with some other speadsheet.I have shown a data in B column and the output/result in the same worksheet in D column.

    I hope some one resolve this issue of adding a single space just before the bracket.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Automatically adding a space just before a bracket

    Try this:

    Formula: copy to clipboard
    =SUBSTITUTE(B5,"("," (")
    Attached Files Attached Files
    Regards,
    Thangavel D

    Appreciate the help? CLICK *

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Automatically adding a space just before a bracket

    Try this

    In any cell in row5 and copy down
    Formula: copy to clipboard
    =SUBSTITUTE(B5,"("," (")
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

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

    Re: Automatically adding a space just before a bracket

    Or use Find & Replace to replace "(" with " (".

    (without the quotes!)

    BSB

  5. #5
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,386

    Re: Automatically adding a space just before a bracket

    Would prefer code rather than formula

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,835

    Re: Automatically adding a space just before a bracket

    Sub test()
        [b5:b1000] = [index(trim(substitute(b5:b1000,"("," (")),,)]
    End Sub

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

    Re: Automatically adding a space just before a bracket

    Use the macro recorder to record one of the suggestions!

    Formula: copy to clipboard
    Sub Macro1()
    ThisWorkbook.Sheets("Sheet1").Columns("B:B").Replace What:="(", Replacement:=" ("
    End Sub


    BSB

  8. #8
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,386

    Re: Automatically adding a space just before a bracket

    Thanx all of you for your kind help in resolving the issue.

  9. #9
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Automatically adding a space just before a bracket

    Quote Originally Posted by paradise2sr View Post
    Thanx all of you for your kind help in resolving the issue.
    Welcome & if you find our comments helps you then you can add reputation for us..

+ 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. Why Formula R1C1 put bracket automatically?
    By Jul Stev in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-30-2014, 07:59 AM
  2. Why Formula R1C1 put bracket automatically?
    By Jul Stev in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-30-2014, 07:36 AM
  3. Replies: 2
    Last Post: 07-18-2014, 03:00 AM
  4. Adding a space between 2 MID statements
    By trietta in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-11-2014, 07:46 PM
  5. Adding a space after a hex character
    By jaango123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-12-2011, 05:34 AM
  6. Remove String Within the Bracket and also the Bracket
    By seanyeap in forum Excel General
    Replies: 6
    Last Post: 04-23-2010, 10:24 AM
  7. [SOLVED] Adding a space with =A59&B59
    By Jim in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-16-2005, 08: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