+ Reply to Thread
Results 1 to 4 of 4

Locking Formulas Not Data???

  1. #1
    Registered User
    Join Date
    10-17-2008
    Location
    Jacksonville, FL
    Posts
    2

    Locking Formulas Not Data???

    I would of not have posted here, but I can not find my answer.

    How do I lock a cell's formula while allowing users to enter data without altering the formula?

    I probably should have posted here 2 hours ago

    Thanks in advance
    Jason

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Hi Jason, and welcome to the forum.

    It's not quite clear what you mean. Where are the users entering data? In the same cell as the formula or elsewhere?

    If the former then clearly a cell can only contain one thing. Either an entered value or a formula.

    If the latter, are you saying that you don't want a formula to evaluate if a cell on which it is dependent is changed. Then the only thing you can do is switch to manual calculation

    And what do you mean by 'lock'.
    If you unlock all the cells to which you want to allow access, by going to the cell formatting and unticking the locked box, you can then switch on sheet protection. Now you can't enter a value in the formula cell, but you can in the cells you've unlocked.

    Is this what you mean?

    Regards

  3. #3
    Registered User
    Join Date
    10-17-2008
    Location
    Jacksonville, FL
    Posts
    2
    Richard,

    It is a little hard to explain my issue, but i need to be able to enter data into a cell that has a formula, without deleting that forumla. Does this help at all.


    Let me see if this helps

    I have a cell that has X amount

    I have another cell that I need to enter Z% in and it will compute Z%*X = Y

    Vice Versa I would like to be able to enter Y amount which will compute Z% from X amount

    Please disregard if this does not make since.

    I am fairly good at creating formulas but cant figure how to lock I know I couldsimply delete one of the two options to input but would like to be able to do either.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Hi,

    As I said in the last post, you can't do it. A cell can only contain one thing, either a constant or a formula.

    The only thing you can do is resort to some VBA code in the Worksheet Selection change event. i.e.

    Please Login or Register  to view this content.
    HTH

+ 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. how do i shift data but have formulas stay in place?
    By vphreeze in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 06-10-2008, 04:01 AM
  2. Using formulas to display data on new sheet
    By shalie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-20-2007, 07:57 PM
  3. Replies: 5
    Last Post: 09-17-2007, 11:16 AM
  4. importing data:What i would like to do is be able to import
    By censura in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-01-2007, 08:32 AM
  5. locking a data validation list based upon cell value
    By abrazee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-18-2006, 04:46 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