Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jimdk
 
Posts: n/a
Default lock formula in excel

Is it possible to lock a formula in Excel so that it cannot be changed, but
still allow the cell content to be changed?
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

A cell can contain a formula or a value.

If you type in that value, then you've lost the formula.

Are you saying you want to let the user override the results of the formula, but
not use a different formula?

If yes, then how about an alternative:

Use 3 cells (say A2, B2 and C2):

Put your formula in A2 (with the label Default in A1)
put the label Override in B1
Then use a formula in C2:
=if(b2="",a2,b2)
And put "Use this Value" in C1.

Then lock all your cells and come back and unlock the cells that the users can
type in.

========
An alternative would be to have an event macro look for a change. If it sees a
value in that cell, then it's ok.

If it sees a formula, it throws it away and plops the original formula into the
cell.

But personally, I like the layout of 3 columns. It's easier to see what's
happening.


jimdk wrote:

Is it possible to lock a formula in Excel so that it cannot be changed, but
still allow the cell content to be changed?


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Formula in an Excel comment The Window Cleaner Excel Discussion (Misc queries) 0 March 10th 05 11:03 AM
How do I get the formula bar in excel 2003 unionhall Excel Discussion (Misc queries) 1 February 17th 05 10:10 AM
Need excel formula to display 28.50hrs in HRS & MINS? rbc Excel Worksheet Functions 4 January 6th 05 12:21 PM
Suddenly Excel can't calculate formula!!! Bob H Excel Worksheet Functions 2 November 30th 04 08:35 PM


All times are GMT +1. The time now is 08:29 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"