protecting formulas cells
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 » Protecting formulas in cells

Protecting formulas in cells

resolvedResolved · Urgent Priority · Version 2003

replyReply Fri 11 Feb 2011, 13:30Delegate Christina said...

Christina has attended:
Excel Advanced course
Excel VBA Intro Intermediate course

Protecting formulas in cells

Hello,

Please can you help me resolve my query? I have a cell which has data validation in it to produce a drop down list. However I would like to link this cell as follows:

=IF(Left(D17,3)="450","Please select from the drop down list","")

Note: Cell D17 is a drop down list that they can select a series of numbers from 110 to 450

I can write the formula but the problem I have is when it appears "Please select from the drop down list", and they select a code, this then deletes the formula for the next time and as this is a form used by many people it will cause confusion.

Do you know if this is even possible to do?

Thank you for your help

For upcoming training course dates see: Pricing & availability

replyReply Fri 11 Feb 2011, 15:39Trainer Anthony said...

RE: Protecting formulas in cells

Hi Christina, thanks for your query. This is possible to do...using code. The second you select an item from a drop down list on a cell, that value will indeed overwrite the cell value, eradicating your formula.

Why not put your formula in the adjacent cell and use a colon at the end of the text to direct the user, as so:

=IF(Left(D17,3)="450","Please select from the drop down list:","")

Otherwise, I'm afraid you'll need to code any text that appears conditionally dependent on input from the user!

Anthony

Fri 18 Feb 2011: Automatically marked as resolved.

 

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

Excel tip:

Quickly copy a formula across sheets

Suppose you have a formula in cell Sheet1!B2, say =A1*5%, that you wish to copy to cell B2 on Sheet2, Sheet3 and Sheet4. Instead of using copy and paste, try this: (1) Select Sheet1!B2. (2) Group Sheet1 with the worksheets Sheet2, Sheet3 and Sheet4 by holding down Ctrl and clicking on the tabs of the sheets to group them. (3) Press the F2 key, then immediately press Enter to copy the formula in Sheet1!B2 across the grouped sheets.

Remember to ungroup the sheets afterwards! Right-click on any tab and choose Ungroup Sheets to do that.

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