double data validation

apgmin

Board Regular
Joined
Mar 1, 2010
Messages
150
Office Version
  1. 2013
Platform
  1. Windows
Hello,

In Cell AR2

I want the person to put only the letter "W", this I achieved through data validation

However I also want that the person cannot put anything if there is any value in cell AG2

Can anyone please help me in this, thanks in advance
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
What are you doing now to allow only "W"?

Try this as a custom validation rule:

Excel Formula:
=AND(AR2="W",AG2="")
 
Upvote 0
What are you doing now to allow only "W"?

Try this as a custom validation rule:

Excel Formula:
=AND(AR2="W",AG2="")
Not Working

I unticked ignore blank

When AG2 is blank it works ie, it restricts the user to put only "w" in AR2
However when there is any number in AG2, it does not allow the user to put anything in AR2

I also tried the following:
=if(ag2="","","W")


=IF(AG2="","",AR2="w")

THIS FORMULA WORKS, unclick ignore blank

thanks for teaching me that I can put formulas in data validation
 
Last edited:
Upvote 0
Solution

Forum statistics

Threads
1,224,823
Messages
6,181,179
Members
453,021
Latest member
Justyna P

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