Prevent entry based on another cell value

M

Melissa

Hi every one
A1=5
B1=10
If C1 is is not between 5 and 10 then D1 is "locked" for entry.
I suppose some sort of custom conditional formatiing would do this but Im
not sure how to do it.
Thanks!
Melissa
 
J

JulieD

Hi Melissa

click on D1
choose data / validation
under allow choose
custom
type in formula
=AND(C1>A1,C1<B1)

click OK

Cheers
JulieD
 
B

Bernie Deitrick

Melissa,

Select cell D1, then use Data | Validation, then choose "Custom" and use
the formula

=AND(C1>=A1,C1<=B1)

HTH,
Bernie
MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top