+ Reply to Thread
Results 1 to 9 of 9

Extracting text from a string

Hybrid View

simonelvin Extracting text from a string 10-10-2014, 06:26 AM
boopathiraja Re: Extracting text from a... 10-10-2014, 06:34 AM
Jockney Re: Extracting text from a... 10-10-2014, 06:37 AM
boopathiraja Re: Extracting text from a... 10-10-2014, 06:45 AM
Jockney Re: Extracting text from a... 10-10-2014, 06:34 AM
boopathiraja Re: Extracting text from a... 10-10-2014, 06:37 AM
simonelvin Re: Extracting text from a... 10-10-2014, 06:36 AM
Jockney Re: Extracting text from a... 10-10-2014, 06:49 AM
boopathiraja Re: Extracting text from a... 10-10-2014, 06:58 AM
  1. #1
    Registered User
    Join Date
    01-04-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Extracting text from a string

    Hi

    im having difficulties in extracting a name from a text string. the string is as follows: CN=Adrian Mills,OU=ARP,OU=Misc,OU=EastSuffolk Users,DC=EastSuffolk,DC=local

    What I want is the name, (i.e. Adrian Mills) from the string. The cell reference the text string is in is M12.

    I have tried nu,erous efforts, but can only figure this out to return values up to the space, or comma etc.

    Thanks!

  2. #2
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Extracting text from a string

    Try this
    Formula: copy to clipboard
    =MID(M12,FIND("=",M12)+1,LEN(M12))
    Click just below left if it helps, Boo?ath?

  3. #3
    Registered User
    Join Date
    08-06-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Extracting text from a string

    Sorry Boopathiraja that would pull everything after the first "=" Simonelvin is asking for just the name within the string.

  4. #4
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Extracting text from a string

    Quote Originally Posted by Jockney View Post
    Sorry Boopathiraja that wo.

    Hi Refer post #5

  5. #5
    Registered User
    Join Date
    08-06-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Extracting text from a string

    Formula: copy to clipboard
    =mid(m12,find("=",m12)+1,find(",",m12,find("=",m12)+1)-find("=",m12)-1)

  6. #6
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Extracting text from a string

    Ok then this

    Formula: copy to clipboard
    =MID(M12,FIND("=",M12)+1,FIND(",",M12)-FIND("=",M12)-1)

  7. #7
    Registered User
    Join Date
    01-04-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Extracting text from a string

    Awesome, thanks guys!

  8. #8
    Registered User
    Join Date
    08-06-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Extracting text from a string

    Sorry you posted that as I was letting you know. Good to see we both thought of the same answer. Nice to know I'm not doing everything the long way round

  9. #9
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Extracting text from a string

    thats fine

+ 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. [SOLVED] Extracting a text string from a URL, almost there
    By Timmy22 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-25-2014, 01:26 PM
  2. Extracting numbers and text from inconsistent text/number formatted string
    By Brandivil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-25-2013, 01:46 PM
  3. [SOLVED] Extracting Text from a string of Text & Digits of variable length
    By hastex in forum Excel General
    Replies: 6
    Last Post: 06-06-2012, 09:11 AM
  4. Extracting text from a string
    By excelhelp18 in forum Excel General
    Replies: 1
    Last Post: 04-05-2012, 03:08 AM
  5. Extracting from a text string
    By AmyTaylor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-24-2005, 08:34 AM

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