Cell should be disabled if condition, and if not data validation should be enabled

Makri93

New Member
Joined
Jan 8, 2025
Messages
1
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
  3. Mobile
  4. Web
Hello!

I am working on a sheet where the needs quickly is ramping up a bit. I am quite used to utilizing data validation rules, but now I have an added level of complexity. I will try to explain:

In the sheet there is a column within a table where I want the users to choose from a set list. Let's call this column Winter and people can choose vacation, work, etc. This comes from a list through data validation. Then I have a different column called "Full year" with only the possible values "Yes" or "No". The last column is called "Summer", and will contain the same data as in column "Winter". If people choose "Yes", then the cell in column "Summer" for that row is enabled and the same data validation as in the same row for "Winter" is active. If people choose "No", then the cell is grayed out and it becomes impossible to write anything in it.

This scenario could be described reverse too; if people choose "no" in column "Full year", the cell on that row in column "Summer" is disabled as a special rule. If people choose "Yes" the cell is untouched and normal data validation rules, same as in column "Winter" applies.

I have two theories as to how this can be done:

1. Create a separate list of values for column "Summer" that is similar to the first list for column "Winter" but added a value for N/A, with conditional formatting graying out the cell. However I do not know how to autofill the cell without using a formula.
2. Using VBA's, which I have no experience with.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi Makri93,

To avoid using VBA, I would use Personalised data validation with this formula:

- Name would be in column A;
- Full year would be in column B;
- summer and winter in C:D;
- List option would be in column $F$2:$F$1000;

Select C2:D* then go in DATA>Data validation and select "list" and in source place the following formula
Excel Formula:
=IF(LOWER($A2)="yes",$F$2:$F$1000,"")

Bests regards,

Vincent
 
Upvote 0

Forum statistics

Threads
1,225,400
Messages
6,184,761
Members
453,255
Latest member
excelbit

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top