ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Prevent entry based on another cell value (https://www.excelbanter.com/excel-worksheet-functions/15928-prevent-entry-based-another-cell-value.html)

Melissa

Prevent entry based on another cell value
 
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

JulieD

Hi Melissa

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

click OK

Cheers
JulieD

"Melissa" wrote in message
...
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




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

"Melissa" wrote in message
...
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





All times are GMT +1. The time now is 04:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com