+ Reply to Thread
Results 1 to 6 of 6

Separated first string which is separated by dash (-) or underscore (_) or space ( )

  1. #1
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Separated first string which is separated by dash (-) or underscore (_) or space ( )

    Dear all, I have having data in the cell A1:A , need to separate the data in the cell B1:B as below
    Please Login or Register  to view this content.
    Here I have added also the text “:Signaling”
    Last edited by nur2544; 10-03-2014 at 10:22 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Separated first string which is separated by dash (-) or underscore (_) or space ( )

    And your question is???

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Separated first string which is separated by dash (-) or underscore (_) or space ( )

    Try this

    =TRIM(LEFT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"-"," "),"_"," ")," ",REPT(" ",25)),25))&" "&":Signaling"

    A
    B
    1
    BSE22-0 BSE22 :Signaling
    2
    MGW14 MGW14 :Signaling
    3
    MGW14 MGW14 :Signaling
    4
    BSE41 HSL BSE41 :Signaling
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: Separated first string which is separated by dash (-) or underscore (_) or space ( )

    Hi AlKey, Yes it works perfectly ! , i appreciated it , thanks for your valuable time..

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Separated first string which is separated by dash (-) or underscore (_) or space ( )

    You're welcome and thank you for the feedback!

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,942

    Re: Separated first string which is separated by dash (-) or underscore (_) or space ( )

    Will this work for you?

    =IFERROR(LEFT(A1,FIND("-",SUBSTITUTE(SUBSTITUTE(A1," ","-"),"_","-"),1)-1),A1)&" :Signaling"

    oops should have refreshed lol

    edit: AlKey, that last part can be shorted by including the space with the text...
    &" :Signaling"
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] Sort all sheets alphabetically, values separated by underscore
    By sans in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-18-2012, 03:09 PM
  2. [SOLVED] MIN MAX value separated by dash
    By sans in forum Excel General
    Replies: 4
    Last Post: 04-24-2012, 06:40 AM
  3. Excel 2007 Adding Number Separated by a Dash
    By tnoble17 in forum Excel General
    Replies: 1
    Last Post: 01-16-2010, 10:07 AM
  4. Parsing Text Separated by A Space
    By scotfitz in forum Excel General
    Replies: 1
    Last Post: 11-13-2008, 02:19 PM
  5. combining cells separated by space
    By bubba1965 in forum Excel General
    Replies: 1
    Last Post: 03-15-2005, 01:45 AM

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