+ Reply to Thread
Results 1 to 4 of 4

Trying to use a text string to separate values (If/Find question)

  1. #1
    Registered User
    Join Date
    06-23-2009
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Trying to use a text string to separate values (If/Find question)

    I post here from time to time and have found very helpful replies to my questions. Thanks a lot for that. Today i ran into something that i can't seem to solve and thought i'd shoot it out to the forum. I've got a lot of cells that contain a list of companies within each cell. Companies are separated with semi-colons and cells vary in the amount of companies that are listed. The last company in the list does not have a semi-colon and if the cell contains one company, there is no semi-colon.

    What i want to do is list each company separately in a new column. Is there a way to do this?

    Example cell:

    "Citigroup, Inc. (NYSE:C) (Investment Banking (Advisory Firm));

    Credit Suisse Group AG (SWX:CSGN) (Investment Banking (Advisory Firm));

    JPMorgan Chase & Co. (NYSE:JPM) (Investment Banking (Advisory Firm));

    Morgan Stanley (NYSE:MS) (Investment Banking (Advisory Firm))"

    Formula result would allow you to drag across four columns and get the individual companies only: IE

    Column B = Citigroup, Inc. (NYSE:C) (Investment Banking (Advisory Firm))
    Column C = Credit Suisse Group AG (SWX:CSGN) (Investment Banking (Advisory Firm))
    Column C = JPMorgan Chase & Co. (NYSE:JPM) (Investment Banking (Advisory Firm))
    Column C = Morgan Stanley (NYSE:MS) (Investment Banking (Advisory Firm))

    Thoughts? Any help would be appreciated. This is where i am but it's obviously wrong.

    =IF(FIND(";",A1)>0,LEFT(A1,FIND(";",A1)),A1) - It needs an iserr to balance cells with no ";" and a way to be repeated across columns.

  2. #2
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Trying to use a text string to separate values (If/Find question)

    You don't have to use a formula for this. Go to Data -> Text to columns and use ; as denominator
    When I say semicolon, u say comma!

  3. #3
    Registered User
    Join Date
    06-23-2009
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Trying to use a text string to separate values (If/Find question)

    The cells have break between values which throws off the Text to columns. How do you remove breaks, i tried a find and replace on <br> with no success.

  4. #4
    Registered User
    Join Date
    06-23-2009
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Trying to use a text string to separate values (If/Find question)

    Nevermind, found Clean.

+ 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] Find partial text string within another text string return original text into cell.
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-17-2013, 02:58 PM
  2. [SOLVED] Nested IF statements to FIND text string and return set values.
    By stuartm4h in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-12-2013, 12:03 PM
  3. [SOLVED] Find Text String or Key Word Between Date Ranges & Sum Values
    By mycon73 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2013, 07:22 PM
  4. VLOOKUP to find values in text string???
    By newbieexceldude in forum Excel General
    Replies: 6
    Last Post: 12-18-2012, 01:21 PM
  5. Find State Abbreviations in String and Post in Separate Column
    By griffinco in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-01-2012, 02:03 AM

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