restrict cell entry cellb

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Restrict cell entry in 'Cell-B' based on value entered in 'Cell-

Restrict cell entry in 'Cell-B' based on value entered in 'Cell-

resolvedResolved · Urgent Priority · Version 2003

Francis has attended:
Excel Advanced course

Restrict cell entry in 'Cell-B' based on value entered in 'Cell-

Hi

How do I do the following:

1. Upon entering '0' in Cell-A, I would like Cell-B to be blocked (inaccessible) from modification with an error message saying 'Not Granted!'

2. Upon entering '1' or '3' in Cell-A, I would like Cell-B to be open for value entry

Thanks a lot!

RE: Restrict cell entry in 'Cell-B' based on value entered in 'C

Hi Francis. You need to use the Data-Validation tool to do this, although that may limit you to one criteria of data entry. In cell B1 select Data-Validation, Allow: "Custom" and enter "=RC[-1]=1" in the formula dropdown. This will permit editing of cell B1 unless there is a 0 in cell A1.

Two criteria for data entry into a cell may be possible if you tease them apart and send a separate value to another cell and run the data validation tool on that, but really a simple macro might be the best way forward.

Hope this helps,

Anthony

RE: Restrict cell entry in 'Cell-B' based on value entered in 'C

hhmmm.....the formula is actually rejecting all entries to Cell-A

NB: Cell-A is actually 'D7' and Cell-B is actually 'G7'

RE: Restrict cell entry in 'Cell-B' based on value entered in 'C

Hi Francis. My formula includes a relative reference which you'll need to modify if the cells aren't adjacent. For this sort of criteria selection have you tried a macro?

Anthony

Mon 11 May 2009: Automatically marked as resolved.

 

Training courses

 

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Hide separate columns in Excel 2010

If you want to hide columns not adjacent to each other for example, Columns A, C and E then:-

1) Click on the fist column to be hidden i.e. A

2) Press and hold down the CTRL key

3) While holding the CTRL key, left click on the rest of the columns you want to hide i.e. C and E

4) Right click and choose Hide

View all Excel hints and tips


Server loaded in 0.1 secs.