+ Reply to Thread
Results 1 to 3 of 3

Get Multiple Substrings from Cell until end of Cell

  1. #1
    Registered User
    Join Date
    11-27-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    2

    Get Multiple Substrings from Cell until end of Cell

    Hi, I am having an issue in creating a formula for a task. I have a column of cells that contain a massive string. This string holds the name of a user in between the characters "CN=" and ",OU".

    I am currently using this formula: =IFERROR(MID(LEFT(F5,FIND(",OU",F5)-1),FIND("CN=",F5)+3,LEN(F5)), "Orphan")

    This works for the first value, but I would like for it to continue to extract substrings until the cell is empty.

    Any help would be greatly appreciated!!

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

    Re: Get Multiple Substrings from Cell until end of Cell

    an example string would be helpful!
    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    "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

  3. #3
    Registered User
    Join Date
    11-27-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Get Multiple Substrings from Cell until end of Cell

    SubstringExample.xlsx

    Here is an excel sheet showing the original string on the right, and my wanted result on the left.

+ 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. copy a cell multiple times depending on cell value starting on a specific cell
    By weritadiojomiel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-17-2013, 05:25 AM
  2. [SOLVED] Match multiple substrings in a cell against a lookup table and return concatenated values
    By stevewc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-13-2013, 10:50 AM
  3. Look for multiple substrings in a sring
    By Kman287 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-08-2013, 09:03 AM
  4. Replies: 3
    Last Post: 11-21-2012, 03:28 PM
  5. Changing multiple substrings within a string
    By RogueArchon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-14-2012, 12:57 PM

Tags for this Thread

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