restrict cell entry cellb
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

replyReply Fri 1 May 2009, 09:53Delegate Francis said...

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!

For upcoming training course dates see: Pricing & availability

replyReply Fri 1 May 2009, 10:53Trainer Anthony said...

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

replyReply Fri 1 May 2009, 12:25Delegate Francis said...

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'

replyReply Sun 3 May 2009, 23:53Trainer Anthony said...

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.

 

Please browse our web site to find out more about
excel-xp-training and other Microsoft training courses.

Excel tip:

Importing Numbers in Excel 2010

Occasionally, when importing data into Excel you find that the some of the imported values are treated as text.

To convert these numbers to actual values, click on an empty cell and press Ctrl+C.

Next, select the range that contains the values you need to change and in the Clipboard Group on the Home tab, click the Paste drop-down arrow and choose Paste Special. In the Paste Special dialog box, select Add and then click OK.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard