+ Reply to Thread
Results 1 to 4 of 4

Mid Function

  1. #1
    Registered User
    Join Date
    02-21-2012
    Location
    Idaho Falls, ID
    MS-Off Ver
    Excel 2007
    Posts
    4

    Mid Function

    I have data that was originally in three columns, that was then combined usins a concatenate formula. I used an additional formula to then remove all duplicates from that data, now I want to use another formula to seperate the data back into the three columns. I don't want to use "text to columns" because I want it to update as the data is updated.

    Here's how the data looks;

    DAVID BARTON`MIKES LOADING SERVICE, INC`242342

    I would like "Dave Barton", "Mikes Loading Service, Inc" in their own columns...(I don't actually need the last string of characters at this point.

    I'm having no problems getting the first string of characters using the following formula:
    =LEFT(J2,FIND("`",J2,1)-1)

    But, I'm stumped on the "mid"

    Best regards,
    Last edited by spencerl; 02-24-2012 at 12:34 PM.

  2. #2
    Registered User
    Join Date
    07-07-2009
    Location
    Orange County, California
    MS-Off Ver
    Microsoft 365; Excel 2010
    Posts
    40

    Re: Mid Function

    spencerl
    it is tricky since your 1st group name length is not fixed. you will have to find the 2nd group name to apply the "MID" function.
    assume your data is in column L and you "don't actually need the last string of characters", try this:
    =SUBSTITUTE(MID(L11,FIND("`",L11,1),LEN(L11)-FIND("`",L11)+1),"/","",1)
    good luck

  3. #3
    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,933

    Re: Mid Function

    for the middle part of your requirement, try...
    =MID(A9,FIND("`",A9,1)+1,FIND("`",A9,FIND("`",A9,1)+1)-FIND("`",A9,1)-1)
    for the last part, try...
    =RIGHT(A9,LEN(A9)-FIND("`",A9,FIND("`",A9,1)+1))
    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

  4. #4
    Registered User
    Join Date
    02-21-2012
    Location
    Idaho Falls, ID
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Mid Function

    Quote Originally Posted by integra View Post
    spencerl
    it is tricky since your 1st group name length is not fixed. you will have to find the 2nd group name to apply the "MID" function.
    assume your data is in column L and you "don't actually need the last string of characters", try this:
    =SUBSTITUTE(MID(L11,FIND("`",L11,1),LEN(L11)-FIND("`",L11)+1),"/","",1)
    good luck
    Great thank you, it worked not I just need to trim off the beginning ` and the last string of characters.

+ 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