+ Reply to Thread
Results 1 to 5 of 5

split the characters separated by colon

  1. #1
    Registered User
    Join Date
    05-11-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    37

    split the characters separated by colon

    hi friends
    I have a collections of characters like this

    ssplitcol= J:K,L,M,N
    from this i took K as
    ipos= instr(1,ssplitcol,":")
    ssplitFrom = Left(splitCols, iPos - 1)
    The result i got is J

    but my need is :
    if ssplitcol= K,L,M,N:J
    then how to extract J from this
    Please help me out in this
    thanks
    bujji

  2. #2
    Registered User
    Join Date
    05-11-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: split the characters separated by colon

    I got the solution friends

    ssplitColFRM = Right(splitCols, (Len(splitCols)) - (iPos))
    this will give the result

  3. #3
    Registered User
    Join Date
    05-24-2012
    Location
    Phoenix, Arizona
    MS-Off Ver
    2010
    Posts
    17

    Re: split the characters separated by colon

    Highlight the cells, columns or rows you need seperated.
    Under the Data tab in Data tools select 'text to columns'.
    Select 'delimited'.
    Click next.
    Check box in 'other' and type : into text box.
    Ckick next and finish.
    That's it. As long as you are using MSO2007-10.

  4. #4
    Registered User
    Join Date
    05-11-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: split the characters separated by colon

    Thank u brownie.. but i got the solution to my query.....

  5. #5
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: split the characters separated by colon

    Try this and see if it does what you want.

    Please Login or Register  to view this content.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

+ 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