+ Reply to Thread
Results 1 to 4 of 4

Parsing out a string portion by case change

  1. #1
    Registered User
    Join Date
    01-29-2015
    Location
    St. Paul, MN
    MS-Off Ver
    Excel for Mac 2011
    Posts
    2

    Parsing out a string portion by case change

    I have a number of data that look like this in the same cell:

    James L. DotiChapman University
    Dennis J. MurrayMarist College
    Arthur F. Kirk Jr.Saint Leo University
    Susan H. FuhrmanTeachers College, Columbia University
    Michael S. RothWesleyan University (Conn.)

    I'm trying to think of a way to split each up into the name and then the school, for example "James L. Doti" and "Chapman University."

    My idea was to use the RIGHT() function and then the SEARCH() to find the index where there is a case change and no space, e.g. "iC", but I don't know how to detect this.

    Thanks.

  2. #2
    Forum Contributor
    Join Date
    07-29-2014
    Location
    Oz
    MS-Off Ver
    2010
    Posts
    142

    Re: Parsing out a string portion by case change

    I'm not sure of a way to test for Case in a formula. If you can use VBA (macros) in your file, and your list is in column A without a header row, you can use the below code. It will put the results in columns B and C.

    1. Right click on the sheet tab and click "View Code"
    2. Paste the below code into the window that appears.
    3. In the Tools menu, click "references"
    4. Scroll down to "Microsoft VBScript Regular Expressions 5.5" and check the box for it and then click OK.
    5. Put your cursor somewhere in the code you pasted and press "F5" to run the macro.

    Please Login or Register  to view this content.
    Dan
    Don't forget to ☆ me if I helped you!

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Parsing out a string portion by case change

    Hi and welcome to the forum,

    See if my User Defined Function is a little easier to understand and works for you.

    See the attached.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    01-29-2015
    Location
    St. Paul, MN
    MS-Off Ver
    Excel for Mac 2011
    Posts
    2

    Re: Parsing out a string portion by case change

    Thank you both very much! The second solution was a little bit easier since I haven't worked with macros before.

+ 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. need help identifying a portion of a string
    By lc500 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-28-2012, 09:30 PM
  2. Replies: 0
    Last Post: 10-04-2012, 04:16 AM
  3. (SOLVED) Change ALL CAPS words from in string into Title Case
    By agf12555 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-21-2011, 09:02 PM
  4. Extracting portion of string from right most
    By Genx in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-25-2008, 03:21 PM
  5. [SOLVED] Changing Case in a Portion of a Cell
    By Bob H in forum Excel General
    Replies: 5
    Last Post: 08-15-2006, 06:15 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