+ Reply to Thread
Results 1 to 4 of 4

String search - multiple occurrences

  1. #1
    Registered User
    Join Date
    06-11-2009
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    12

    String search - multiple occurrences

    I know I should be able to solve this but I have confused myself greatly. In the attached file I am attempting to extract a part of a string into two(2) columns. The string is defined as a text field and contains two distinct pieces of information separated by a "-". My problem is that some of the strings contain multiple "-" and I need to separate the string based upon the placement of the last (in the case of multiple) "-".

    The attached file gives examples of the string, my desired Field 1 and Field 2 and the current results of my formulas. I would prefer to do this outside of VBA. Any assistance, or direction to a good Excel string tutorial, given will be much appreciated.

    John Countzler
    Attached Files Attached Files
    Last edited by jcountzler; 11-23-2010 at 10:32 PM. Reason: Request responded to and solved

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

    Re: String search - multiple occurrences

    H jcountzler,

    See the attached with the formula you desire.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    06-11-2009
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: String search - multiple occurrences

    Thank you for a formula to handle the multiple "-"s in the string. I have this issue with other data types that I will be able to use this technique on as well. Thanks again.

    John

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: String search - multiple occurrences

    Appreciate this is Solved by MarvinP but simply to illustrate another approach:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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