Conditional Data Validation

Patience

Active Member
Joined
Mar 30, 2006
Messages
275
This is something I have just thought about which might help me a little bit on creating a workbook for other users.

Is it possible to put data validation on a cell dependent on the contents of a different cell.

Eg if A1=1, B1 can only contain "YES" OR "NO", but if A1=2, B1 can only contain "Oui" or "Non".

Does/can this work?

Thanks. :)
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,887
Hi Patience

Use in B1 Data>Validation>Settings>Custom:

=OR(AND(A1=1,OR(B1="Yes",B1="No")),AND(A1=2,OR(B1="Oui",B1="Non")))

Hope this helps
PGC
 

Forum statistics

Threads
1,181,724
Messages
5,931,688
Members
436,798
Latest member
spprtpplcm

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
Top