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

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
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,215,338
Messages
6,124,357
Members
449,155
Latest member
ravioli44

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