Data validation

Medinukas

New Member
Joined
Apr 18, 2018
Messages
11
Is there any way with data validation to restrict entry or leave the cell empty or with a sign if another cell has value.
For example if cell p3 has any value Q3 is blank or has a minus sign
Thanks in advance.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Try this

Data Validation
In Settings change Allow to Custom
and enter this as a formula

=(AND(P3<>"",OR(Q3="",Q3="-",Q3="+")))

Q3 will only accept blank, plus or minus if P3 has a value
otherwise it will accept anything.
(You didn't say what Q3 should accept if P3 DOESN'T have a value)
 
Upvote 0
Try this

Data Validation
In Settings change Allow to Custom
and enter this as a formula

=(AND(P3<>"",OR(Q3="",Q3="-",Q3="+")))

Q3 will only accept blank, plus or minus if P3 has a value
otherwise it will accept anything.
(You didn't say what Q3 should accept if P3 DOESN'T have a value)
If p3 does not have any value Q3 should accept any value
 
Upvote 0

Forum statistics

Threads
1,223,975
Messages
6,175,749
Members
452,667
Latest member
vanessavalentino83

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