+ Reply to Thread
Results 1 to 3 of 3

Value selected in one cell needs to change the value of another cell that has drop down

  1. #1
    Registered User
    Join Date
    10-28-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    1

    Value selected in one cell needs to change the value of another cell that has drop down

    Hi all, I have a spreadsheet in which I need a dropdown list cell's value to change based upon the value in another dropdown list cell. Cell H4 is a dropdown list created by way of the Data Validation button and can only contain "Y" of "N" values. Cell C15 is also a dropdown list created by way of the Data Validation button. Cell H4 will be entered first and then cell C15 will be entered. What I need is this, when a value is selected from the dropdown list in cell C15, then the value of cell H4 will change accordingly. For example, if "48g PET" is selected from the dropdown list in C15, then the value should be set in H4 to "Y", or for example in the opposite side, if "50t PET" is selected from the dropdown list in C15, then the value should be set in cell H4 to "N". There are 7 avaliable selections in the dropdown list in C15 and each value should set the value in H4 to either "Y" or "N". Can anybody give me an easy way to accomplish this?

    Thank you!

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Value selected in one cell needs to change the value of another cell that has drop dow

    H4: =IF(OR(C15="48g PET",C15="value2 for yes",C15="value3 for yes",....),"YES","NO")

  3. #3
    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,929

    Re: Value selected in one cell needs to change the value of another cell that has drop dow

    Hi, welcome to the forum

    Let me see if I understand you?

    You make a selection from a DD on H4 - this can be Y or N
    Then you make a selection in C15 from 7 different options
    Based on what was selected in C15, you want H4 to change to Y or N?

    If this is what you want, it doesnt sound like you want a DD on H4, you want (probably) a vlookup that will look into a table containing te 7 selection options, each with a Y or N

    If you still have a problem, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    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

+ 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. Lock/Unlock a cell based on the value selected from drop down in adjacent cell
    By mahesnrm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-23-2013, 08:28 AM
  2. Change cell fill color when unprotected cell selected -
    By Stratfordoaks in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-18-2013, 06:16 PM
  3. Replies: 2
    Last Post: 09-03-2012, 02:56 PM
  4. Replies: 11
    Last Post: 08-31-2010, 01:30 PM
  5. Change a macro to from and absolute cell reference to selected cell.
    By dcgrove in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-05-2010, 01:19 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