+ Reply to Thread
Results 1 to 4 of 4

Text to Columns not using Wizard

Hybrid View

  1. #1
    Registered User
    Join Date
    03-01-2010
    Location
    Columbia, SC
    MS-Off Ver
    Excel 2003
    Posts
    2

    Text to Columns not using Wizard

    Hello: I have many citations that I'd like to separate in to different columns (author, title, publication, etc.), and it appears the Text to Column wizard won't address my specific needs because all the delimiters are different. And of course all the text strings are of different lengths, so I can't use the functions that address that. Is there a formula or function I could apply to this. Here is an example of a citation:

    McClary, Ben H. "Washington Irving's Amiable Scotch Friends: Three Unpublished Letters to the John Gibson Lockharts." Studies in Scottish Literature. 4.( 1966): 101-104. p101. MLA International Bibliography. Gale. Bruccoli Clark Layman. 28 Jan. 2010

    Thank you for your help!

  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: Text to Columns not using Wizard

    sample workbook would help!
    "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
    03-01-2010
    Location
    Columbia, SC
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Text to Columns not using Wizard

    Attached, Mr. Wilson. Thx!
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686

    Re: Text to Columns not using Wizard

    I'm certain someone has a solution with far more finesse, but this appears to work, if I understand you correctly.

    It seems although your delimiters are different, your data is consistant, at least the first 10 rows I checked.
    Formulas assume:
    - the Author ends at the first "
    - the Title ends at the second "
    - the Publication is the sentence following the Title
    - the Remaining Info is all beyond the Publication

    CAUTION: If your Title or Publication were to be 2 sentences (containing 2 periods) the formula would not return the desired results.

    B2 =MID(A2,1,FIND("""",A2,1)-2)

    C2 =MID(A2,FIND("""",A2,1)+1,FIND("""",A2,FIND("""",A2,1)+1)-LEN(B2)-3)

    D2 =MID(A2,(LEN(B2)+LEN(C2)+5),FIND(".",A2,(LEN(B2)+LEN(C2)+5))- (LEN(B2)+LEN(C2)+5) +1)

    E2 =MID(A2,LEN(B2)+LEN(C2)+LEN(D2)+6,LEN(A2))

    copy formulas down

+ 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