+ Reply to Thread
Results 1 to 6 of 6

Delimit strings

Hybrid View

  1. #1
    Registered User
    Join Date
    03-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    17

    Delimit strings

    Hi,

    Can you help me to delimit the strings using formula. Below is the sample data

    D:\Data\Personal\sramasam\desktop\Exceldata.xls D Data Personal sramasam desktop Exceldata.xls
    D:\Personal\sramasam\desktop\Exceldata.xls D Personal sramasam desktop Exceldata.xls


    Thank you in advance.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Delimit strings

    hi Ivhee. assuming data in A1, try this in B1 & copy down & across:
    =TRIM(MID(SUBSTITUTE($A1,"\",REPT(" ",100)),1+(COLUMNS($B1:B1)-1)*100,100))

    i used "\" as the delimiter, so the first one has the ":". you can use a different formula in Column B or if you don't want ":" at all, apply to the rest as well:
    =TRIM(SUBSTITUTE(MID(SUBSTITUTE($A1,"\",REPT(" ",100)),1+(COLUMNS($B1:B1)-1)*100,100),":",""))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    02-23-2013
    Location
    MD USA
    MS-Off Ver
    Excel 2016
    Posts
    29

    Re: Delimit strings

    I used this for when I had this issue, works great:

    (Copied and pasted from "Knowledge-Paks")
    To split delimited text into multiple cells:

    1) Open Microsoft Excel worksheet.
    2) Select the range of cells in a column on which you want to perform the split action.
    3) Click the 'Data' tab. (The 'Data' tab appears.)
    4) From the 'Data Tools' group, click the 'Convert Text to Table' icon. (The 'Convert Text to Columns Wizard' appears.)
    5) Ensure that the 'Delimited' option is selected.
    6) Click the 'Next' button. (The Delimiters screen appears.)
    7) From the 'Delimiters' group, select the appropriate check box. (The Data preview appears according to the selected delimiter.)
    8) Click the 'Next' button. (The Set data format screen appears.)
    9) From the 'Column data format' group, select the appropriate option.
    NOTE: You may select different cell location by entering appropriate range in the 'Destination' box.
    10) Click the 'Finish' button. (The cell values splits into two columns.)

  4. #4
    Registered User
    Join Date
    03-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Delimit strings

    Hi,

    I need to use formula instead of Text to Columns..

    Thanks for all your help.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Delimit strings

    cant you just use text to columns it would be quicker
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Registered User
    Join Date
    03-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Delimit strings

    Hi Benishiryo,

    Works great!! Thanks a lot for the help.


    Thanks also Mavenn!

+ 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. LOOKUP then Delimit
    By excellenthelp in forum Excel General
    Replies: 10
    Last Post: 10-30-2013, 11:41 AM
  2. How to delimit only uppercase string
    By CorinthianVortex in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-24-2013, 10:17 AM
  3. Various addresses to cell delimit
    By smpuki in forum Excel General
    Replies: 1
    Last Post: 07-23-2011, 04:47 PM
  4. Special delimit
    By tmoullet in forum Excel General
    Replies: 3
    Last Post: 11-16-2009, 04:48 PM
  5. How to import CSV and delimit
    By xIcePhoenix in forum Excel General
    Replies: 7
    Last Post: 11-13-2008, 08:41 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