Excel – IF/THEN drop down list

data validationmicrosoft excel

After an extensive search, all I seem to find are cascading drop down list topics. My situation is:

If M173=true then allow drop down list in cell K72, otherwise blank.

For reference, M173 is true or false dependent on whether a check box is checked or not elsewhere on the sheet.

I've tried various if statements and vlookups inside cell K72 and even indirect after opening up the data validation tab.

Is this possible without VBA?

Best Answer

Like you said you can use another cell M1 for example :
=If(M173=True,"Fine","No")
I used Fine just in case you need Yes in another place.
Select the options of your Dropdown List and define Name Fine
In K72 create Data Validation, choose List
In Source write:
=Indirect(M1)
In that case when M1 is different from Fine the dropdown is empty, when you have Fine in M1 K72 will show the values that you want to choose from the list

Update for Drop Down List become blank
Define name a blank cell No make it in a special place so you don't use it for any value (near the Fine list or yes list)
Keep the data validation Source like before =Indirect(M1)
If M1 = "No" the List will become blank (you have to choose the blank to clear the cell if it has any value)
If M1="Yes" or "Fine" whatever you choose the List will have the options you need
Just use normal word for Define Name do not use TRUE, False...

To Clear it automatically you will need VBA

Related Question