+ Reply to Thread
Results 1 to 10 of 10

Extracting strings of text from Columns of data(text)

Hybrid View

welshmagic69 Extracting strings of text... 04-23-2007, 08:53 AM
NBVC Assuming Original String is... 04-23-2007, 10:57 AM
welshmagic69 (slight Problem If this can... 04-23-2007, 01:08 PM
NBVC Does this work? ... 04-23-2007, 01:24 PM
welshmagic69 Still a few problems 04-23-2007, 01:59 PM
NBVC I don't see any attachments. ... 04-23-2007, 02:01 PM
welshmagic69 Example File Attached 04-23-2007, 02:13 PM
NBVC Thank you. See attached. ... 04-23-2007, 02:22 PM
welshmagic69 Many Thanks - It Works 04-23-2007, 02:43 PM
NBVC Great! You're very... 04-23-2007, 02:50 PM
  1. #1
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Does this work?

    =IF(LEN(MID(A1,SEARCH("Approved By",A1)+12,LEN(A1)))-LEN(SUBSTITUTE(MID(A1,SEARCH("Approved By",A1)+12,LEN(A1))," ",""))=1,MID(A1,SEARCH("Approved By",A1)+12,LEN(A1)),MID(A1,SEARCH("Approved By",A1)+12,FIND(" ",SUBSTITUTE(MID(A1,SEARCH("Approved By",A1)+12,LEN(A1))," ","#",1))-1))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  2. #2
    Registered User
    Join Date
    04-23-2007
    Posts
    7

    Question Still a few problems

    NBVC

    Hi still a few problems with the last code (in column D) of my attached example, in that D1 is ok, D2 has John Smithers [][]Please, D3 is ok, D4 has "Thomas Guy [] Please" and D5 is ok.

    I think the problem lies where there is a Ctrl +enter in the Column A

    Any ideas

    Rob aka welshmagic69

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    I don't see any attachments. Please try attaching your sample sheet again.

  4. #4
    Registered User
    Join Date
    04-23-2007
    Posts
    7

    Example File Attached

    Sorry

    Example File Attached

    Rob aka welshmagic69
    Attached Files Attached Files

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Thank you.

    See attached.

    I added a hidden column, column D to get rid of the carriage returns....

    Formula used: =SUBSTITUTE(A1,CHAR(10)," ")

    Then I used my previously suggested formula and replaced references to column A with references to column D.

    Hope this does it.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-23-2007
    Posts
    7

    Thumbs up Many Thanks - It Works

    NBVC

    It Works !!!


    Many Thanks


    Rob aka welshmagic69

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Great!

    You're very welcome!

+ 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