+ Reply to Thread
Results 1 to 2 of 2

Locking cells so formulas are never removed

Hybrid View

  1. #1
    Registered User
    Join Date
    04-09-2014
    Location
    Mississippi
    MS-Off Ver
    Excel 2010
    Posts
    19

    Locking cells so formulas are never removed

    I have built a multi-page spreadsheet with many formulas which utilize data from other cells throughout the entire spreadsheet. Now that I have completed the spreadsheet, I would love to be able to lock the cells with formulas, while still being able to plug (more like copy and paste) data into cells which are referenced. Is there a way to do this?

    Additionally, is there a way to lock a cell formula where you can "delete" or "clear" the value in the cell without erasing the formula in the cell? For instance, here is an example:

    A1 contains a plugged in value of "10".
    A2 has a formula which states: =(A1*-1) which returns the value "-10".

    I would like to be able to highlight the entire column and erase the numbers plugged in manually, and in return the value displayed by the formulas, however, I do not want to erase the formula in the cells. Is this possible???

    Thanks ahead of time and my compliments to all the quick and helpful responses I have received on this website!

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,787

    Re: Locking cells so formulas are never removed

    To protect cells with formulas, configure the Locked option for cells appropriately (Home, Format, Lock Cell). Cells are locked by default, so unlock any cells where you want to allow user input. Then Protect the sheet (Review, Protect Sheet).

    I'm a little unclear on your second question but let me answer both. You cannot "reset" a formula to show anything other than the result that it is written to calculate. You cannot select a range and hit DELETE and have that only apply to values while leaving formulas alone. If the formula cells are locked you will get an error.

    You can delete the values by selecting them, and you can write formulas that will show a blank if the referenced cell is blank.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Mantaining Pivot Table Design when formulas are removed
    By Magpie716 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-03-2013, 11:40 AM
  2. Locking specific cells eventually changing to locking all cells
    By davidingilbert in forum Excel General
    Replies: 1
    Last Post: 03-19-2013, 06:50 PM
  3. Help with macro, automatical locking cells when excel is closed but only locking 1 sh
    By snoopy1461 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-21-2011, 11:29 AM
  4. Replies: 1
    Last Post: 07-21-2006, 11:05 AM
  5. Locking Formulas to Cells
    By spartikus in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-22-2006, 01:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1