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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
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
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

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