ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Cell protection - with a twist (https://www.excelbanter.com/excel-discussion-misc-queries/77020-cell-protection-twist.html)

George

Cell protection - with a twist
 
I would like to protect a cell so that the number that is entered must be a
negative number. Is this possible?
e.g if 654 is entered - the cell rejects this positive number.
George

bigwheel

Cell protection - with a twist
 
Try data validation and set the validation criteria to numbers less than zero

"George" wrote:

I would like to protect a cell so that the number that is entered must be a
negative number. Is this possible?
e.g if 654 is entered - the cell rejects this positive number.
George


Elkar

Cell protection - with a twist
 
Yes, you can do this with Data Validation.

1. Select your cell.
2. Choose "Validation..." from the Data Menu
3. Select either "Whole Number" or "Decimal" depending on your needs
4. Then select "Less than"
5. Type 0 in the Maximum field.
6. You can then also customize the error message when an invalid number is
entered if you wish

HTH,
Elkar


"George" wrote:

I would like to protect a cell so that the number that is entered must be a
negative number. Is this possible?
e.g if 654 is entered - the cell rejects this positive number.
George


George

Cell protection - with a twist
 
worked like a treat - thanks

"bigwheel" wrote:

Try data validation and set the validation criteria to numbers less than zero

"George" wrote:

I would like to protect a cell so that the number that is entered must be a
negative number. Is this possible?
e.g if 654 is entered - the cell rejects this positive number.
George



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

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