+ Reply to Thread
Results 1 to 10 of 10

Formula for multiple values of text in cell to display text in another column

  1. #1
    Registered User
    Join Date
    11-08-2015
    Location
    Seattle, WA
    MS-Off Ver
    2013
    Posts
    4

    Formula for multiple values of text in cell to display text in another column

    I am attempting to create a formula to check data in a cell.

    Because the IF function has limitations, I assume there's a better way to do this.

    I have a column with cells filled with one of 16 names. I need a formula to check the name, then display one of 8 values.

    So, for example if Column A says Red or Green, I want the formula to display the text "Christmas" in the cell adjacent in Column B.

    Advice would be highly appreciated. I just need the proper function to use and the parameters.

    Thank you.
    Last edited by iridius; 11-08-2015 at 05:03 PM. Reason: Updating title to follow rules

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Need better formula

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  3. #3
    Registered User
    Join Date
    11-08-2015
    Location
    Seattle, WA
    MS-Off Ver
    2013
    Posts
    4

    Re: Need better formula

    Thread title has been updated. I hope it is satisfactory.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Formula for multiple values of text in cell to display text in another column

    Table with data and VLOOKUP? It would be easier to offer a solution if you could post a sample file.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Formula for multiple values of text in cell to display text in another column

    Perhaps something like this?
    B
    C
    D
    1
    a
    2
    a
    2
    2
    3
    b
    4
    4
    c
    6
    5
    d
    8
    6
    e
    10
    7
    f
    12
    8
    g
    14
    9
    h
    16

    D2=VLOOKUP(D1,$B$2:$C$9,2,0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    11-08-2015
    Location
    Seattle, WA
    MS-Off Ver
    2013
    Posts
    4

    Re: Formula for multiple values of text in cell to display text in another column

    Name Final Name
    Tye Westmark
    Cristie Gimble
    Tony Sepanski
    Starla Buccholz
    Keri Oldman
    Reimer Douglas
    Debra Liming
    Marka Kontos
    Carol Peterson
    Karen Ottison
    Joleen Sums
    Joseph Ahlf
    Brian Mays
    Freddy Mercury
    Robert Smith
    Steve Severin

    So, the first column is a list of 16 names. It's a mix of Client Representatives and their assistants. If it says the Client Rep or their assistant, I want the name of the client rep associated with their assistant to show in the adjacent cell.

    Name Final Name
    Tye Westmark Tye Westmark
    Cristie Gimble Tye Westmark
    Tony Sepanski Tony Sepanski
    Starla Buccholz Tony Sepanski
    Keri Oldman Keri Oldman
    Reimer Douglas Keri Oldman
    Debra Liming Debra Liming
    Marka Kontos Debra Liming
    Carol Peterson Carol Peterson
    Karen Ottison Carol Peterson
    Joleen Sums Joleen Sums
    Joseph Ahlf Joleen Sums
    Freddy Mercury Freddy Mercury
    Brian Mays Freddy Mercury
    Robert Smith Robert Smith
    Steve Severin Robert Smith

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Formula for multiple values of text in cell to display text in another column

    I see nothing that relates to "Client Rep or their assistant", but did you try to adapt my suggestion?

    upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula for multiple values of text in cell to display text in another column

    Create the table in D1:E17.

    Data Range
    A
    B
    C
    D
    E
    1
    Name
    Final Name
    ------
    Name
    Final Name
    2
    Tye Westmark
    Tye Westmark
    Tye Westmark
    Tye Westmark
    3
    Cristie Gimble
    Tye Westmark
    Cristie Gimble
    Tye Westmark
    4
    Tony Sepanski
    Tony Sepanski
    Tony Sepanski
    Tony Sepanski
    5
    Starla Buccholz
    Tony Sepanski
    Starla Buccholz
    Tony Sepanski
    6
    Keri Oldman
    Keri Oldman
    Keri Oldman
    Keri Oldman
    7
    Reimer Douglas
    Keri Oldman
    Reimer Douglas
    Keri Oldman
    8
    Debra Liming
    Debra Liming
    Debra Liming
    Debra Liming
    9
    Marka Kontos
    Debra Liming
    Marka Kontos
    Debra Liming
    10
    Carol Peterson
    Carol Peterson
    Carol Peterson
    Carol Peterson
    11
    Karen Ottison
    Carol Peterson
    Karen Ottison
    Carol Peterson
    12
    Joleen Sums
    Joleen Sums
    Joleen Sums
    Joleen Sums
    13
    Joseph Ahlf
    Joleen Sums
    Joseph Ahlf
    Joleen Sums
    14
    Brian Mays
    Freddy Mercury
    Freddy Mercury
    Freddy Mercury
    15
    Freddy Mercury
    Freddy Mercury
    Brian Mays
    Freddy Mercury
    16
    Robert Smith
    Robert Smith
    Robert Smith
    Robert Smith
    17
    Steve Severin
    Robert Smith
    Steve Severin
    Robert Smith


    Then, this formula entered in B2 and copied down:

    =VLOOKUP(A2,D$2:E$17,2,0)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  9. #9
    Registered User
    Join Date
    11-08-2015
    Location
    Seattle, WA
    MS-Off Ver
    2013
    Posts
    4

    Re: Formula for multiple values of text in cell to display text in another column

    That is unfortunately not what I need. Let me restate. I unfortunately don't have Excel here on my laptop to make a sample file (it's on my desktop which is being repaired).

    I have a file that contains a list of over 5,000 unique items in Column A. Column B contains a person assigned to each unique item. There are 16 persons, so obviously their names repeat. Eight of those persons are client reps, the other 8 are the names of assistants to the client reps. Each client rep gets one assistant. I need to create a formula to check all 16 names and return the client rep. So, for example, if B2 contains Tye Westmark, it would return Tye Westmark, because he's a client rep. If B3 contains Cristie Gimble, the formula should return Tye Westmark, because Cristie Gimble is his assistant. To be clear, the formula needs to check ALL 16 names in each cell in Column B.

    Is that more clear?

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula for multiple values of text in cell to display text in another column

    Quote Originally Posted by iridius View Post
    Is that more clear?
    Unfortunately, not for me.

    What you just described sounds like what I suggested in post #8.

+ 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. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  2. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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