If b1 = 1, then b2 = Yellow

S

Shelly

Cell B1 is using data validation referring to a named range. There are 4
possible values: Level 1, Level 2, Level 3, Level 4.

I have another named range with the number of days associated with each
Level. So, if the user selects Level 1 from the dropdown list in B1, I want
the default number of days (10) to be put automatically into B2.

If the user selects Level 2 from the dropdown list in B1, I want the default
number of days (20) to be put automatically into B2.

And the same for Level 3 (30 days) and Level 4 (40 days).

I know there is a way to do this, I think by putting the 2 lists next to
each other... but I can't remember how to do it!

Help! Thanks!
 
A

an01digital

I think what you need to do is change the data validation on the B2 as
soon as the cell B1 is changed. For this I think you can use the cell
change event and than put some code to delete the validation and
replace it with new one with an if condition.

I think you can get the cell change code in many posts in this group
and you can simply record the validation code.

Regards
Ankur
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top