+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : split string

  1. #1
    Registered User
    Join Date
    05-03-2011
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    48

    split string

    Helo
    Gurus

    first thanks for all the help this forum is extending and all those gurus who are helping

    please advice how do i split a dynamic strng

    when i say dynamic it means that i get different values in the cell

    like this in the drop down
    user selects only one of the list

    ABCDEF,1234
    ABC,2543
    2543
    ABCDEFGH,2437

    ...........

    now

    i want to split the string to have
    BAS:THIS IS A FORMULA IN SAP

    IF user selects ABCDEF,1234
    BAS(ABCDEF),1234

    if user selects ABC,2543
    BAS(ABC),2543

    IF user selects
    2543
    then
    just 2543


    thanks
    Last edited by APPLEBEE; 06-29-2011 at 02:32 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: split string

    Perhaps:

    =IF(ISNUMBER(A1+0),A1,"BAS("&SUBSTITUTE(A1,",","),"))
    Last edited by NBVC; 06-29-2011 at 02:32 PM. Reason: One extra quote got in there somehow....
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-03-2011
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: split string

    thanks

    that was Awesome

    it solved my problem

    i am greatful to this forum and to you once again

+ 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