+ Reply to Thread
Results 1 to 5 of 5

sorting text from one cell into 3 other cells based on text criteria

  1. #1
    Registered User
    Join Date
    01-14-2014
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    17

    sorting text from one cell into 3 other cells based on text criteria

    Hello! I am new to this forum and I really need some help! I am trying to take text from one column and seperate it into three colums...the text is grouped in one cell and shown as such, " NS1, NP3, HE2" and so forth. My difficulty is that the 3-letter text entires are of several possibilities, the possible entries on any one cell will be any possible combo of the 3 following groups: NS1, NS2, NS3, LS1, LS2, LS3, MS1, MS2, MS3, HS1, HS2, HS3 (THE "S's") , NP1, NP2, NP3, LP1, LP2, LP3, MP1, MP2, MP3, HP1, HP2, HP3 (the "P's"), NE1, NEE2, NE3, LE1, LE2, LE3, ME1, ME2, ME3, HE1, HE2, HE3 (the "E's")

    so the column/one cell will always have a combo of the 3 types...I wish to sort them into 3 seperate columns based on their type, (or the second letter in each; S, P, E)

    additionally I need a column to the left of the 3 new columns displaying the highest of the ratingsa occuring (N, L, M, or H ...these referring to "None" "Low" "Medium" and "high")

    this has been a nightmare - if anyone can help I would be eternally grateful!

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: sorting text from one cell into 3 other cells based on text criteria

    Provide a spreadsheet with a few examples and desired results.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Registered User
    Join Date
    01-14-2014
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: sorting text from one cell into 3 other cells based on text criteria

    here is an example of what I have and what I'm trying to accomplish...eventually I would like to retrieve the data from a seperate worksheet if possible :-)
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: sorting text from one cell into 3 other cells based on text criteria

    in A3:
    =IF(ISERR(FIND("H",F3)),IF(ISERR(FIND("M",F3)),IF(ISERR(FIND("L",F3)),"N","L"),"M"),"H")

    in B3:
    =MID(F3,FIND("S",F3)-1,3)

    in C3:
    =MID(F3,FIND("E",F3)-1,3)

    in D3:
    =MID(F3,FIND("P",F3)-1,3)

    Highlight those formulas and then drag them down for the other rows.

  5. #5
    Registered User
    Join Date
    01-14-2014
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: sorting text from one cell into 3 other cells based on text criteria

    Thank you!! Massive headache has been avoided! It works perfectly!! Is there a reference I can put somewhere in there to call the column F from another worksheet? I will play with it and see :-)

+ 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] one column that returns a text based on criteria in other cells
    By nicko54 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-16-2013, 12:24 AM
  2. Replies: 2
    Last Post: 02-20-2012, 05:59 PM
  3. Replies: 2
    Last Post: 12-03-2011, 03:51 AM
  4. Replies: 0
    Last Post: 08-24-2011, 08:15 PM
  5. Count text cells based on two criteria
    By aet999 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2006, 12:40 PM

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