+ Reply to Thread
Results 1 to 7 of 7

Mulitple text options in range of cells equals unique values in different range of cells

  1. #1
    Registered User
    Join Date
    09-14-2016
    Location
    Phoenix, AZ
    MS-Off Ver
    2010
    Posts
    5

    Mulitple text options in range of cells equals unique values in different range of cells

    If I have one of the following three different text options, "Supplier Escape" "Customer Escape" or "Internal Escape" populated in range J4:J3000 I would like for each option to equate to a specific number value in the corresponding cell in range N4:N3000.

    For example: If supplier escape is in cell J9 then the value in H9 should be 5.
    If internal escape is in J11 then the value in H11 should be 30

  2. #2
    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: Mulitple text options in range of cells equals unique values in different range of cel

    Hi, welcome to the forum

    Maybe something like this?

    =if(J9="supplier*",5,if(J9="Customer*",15,if(J9="Internal*",30,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

  3. #3
    Registered User
    Join Date
    09-14-2016
    Location
    Phoenix, AZ
    MS-Off Ver
    2010
    Posts
    5

    Re: Mulitple text options in range of cells equals unique values in different range of cel

    Quote Originally Posted by FDibbins View Post
    Hi, welcome to the forum

    Maybe something like this?

    =if(J9="supplier*",5,if(J9="Customer*",15,if(J9="Internal*",30,0)))
    Ford- Thank you for following up with me! Still have a few bugs. Let me know if you have any other suggestions! They're much appreciated.
    It doesn't reject the formula; however, when I plug it in to the cell where I'm trying to populate the specific value, all I get is 0

    =IF(J7="Supplier Escapes",5,IF(J7="Customer Escapes",10,IF(J7="Internal Escapes",30,0)))

  4. #4
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Slough
    MS-Off Ver
    Excel 2007
    Posts
    469

    Re: Mulitple text options in range of cells equals unique values in different range of cel

    This works fine for me. Don't see why you are having issues? Cell J7 would have to match 100%. I assume it does?

  5. #5
    Registered User
    Join Date
    09-14-2016
    Location
    Phoenix, AZ
    MS-Off Ver
    2010
    Posts
    5
    Quote Originally Posted by DannyJ View Post
    This works fine for me. Don't see why you are having issues? Cell J7 would have to match 100%. I assume it does?
    Gentlemen-
    I am an idiot and yes it works, unlike my brain on occasion.

  6. #6
    Registered User
    Join Date
    09-14-2016
    Location
    Phoenix, AZ
    MS-Off Ver
    2010
    Posts
    5
    Quote Originally Posted by pvancool View Post
    Ford- Thank you for following up with me! Still have a few bugs. Let me know if you have any other suggestions! They're much appreciated.
    It doesn't reject the formula; however, when I plug it in to the cell where I'm trying to populate the specific value, all I get is 0

    =IF(J7="Supplier Escapes",5,IF(J7="Customer Escapes",10,IF(J7="Internal Escapes",30,0)))
    I realized my issue and do thank you for sharing you're knowledge!

  7. #7
    Registered User
    Join Date
    09-14-2016
    Location
    Phoenix, AZ
    MS-Off Ver
    2010
    Posts
    5
    Quote Originally Posted by DannyJ View Post
    This works fine for me. Don't see why you are having issues? Cell J7 would have to match 100%. I assume it does?
    Gentlemen-
    I am an idiot and yes it works, unlike my brain on occasion.

+ 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. Count unique values in a range of cells
    By zbomb2000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-22-2015, 04:56 AM
  2. Macro to get unique values from range of cells?
    By wyndham29 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-23-2015, 09:55 PM
  3. Replies: 3
    Last Post: 06-25-2014, 03:28 AM
  4. [SOLVED] If Value in a range of cells equals X, then echo value (name) in another range of cell
    By tonytorero in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-03-2013, 06:23 PM
  5. Replies: 0
    Last Post: 10-11-2012, 03:55 AM
  6. [SOLVED] find unique values in a range that contains text and empty cells
    By bombicci in forum Excel General
    Replies: 4
    Last Post: 07-04-2012, 09:17 AM
  7. [SOLVED] force unique values in a range of cells?
    By keithb in forum Excel General
    Replies: 1
    Last Post: 08-08-2005, 04:05 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