+ Reply to Thread
Results 1 to 5 of 5

Conditional cell locking/protection

  1. #1
    Registered User
    Join Date
    03-28-2007
    Posts
    18

    Conditional cell locking/protection

    Does anybody know of a way to selectively lock/unlock a cell from editing based on the value chosen in another cell? Caveat is that the Excel document cannot contain macros.

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Can you provide any additional details of what is in the original cell? (The cell that causes the other one to lock). Also, what would be in the destination cell?

    You can use a conditional data validation phrase to do what you would like, but I forewarn you, it is somewhat limiting.

  3. #3
    Registered User
    Join Date
    03-28-2007
    Posts
    18
    Something simple such as "yes" or "no" would suffice. For example, cell A1 might ask the question, "will a constant growth rate be applied?" with cell B1 having the values "yes" and "no" in a drop-down.

    If the value of the drop-down is "yes", then the user enters a growth rate into C1, and that rate would be used in the programmed formulas in C2:Z2 to calculate growth. If the user chooses "no", he would have to manually enter the numbers that would otherwise be automatically calculated.

    I usually lock the spreadsheets after I set up a model so that only the variables/inputs can be changed. In this simple example, I would want row 2 to remain locked if A1 is "yes", and unlocked if it's "no" so that the formulas can be overwritten by actual values.

  4. #4
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Do the numbers that will be enterred manually have a format? (ie, 1 decimal, 2 decimals, etc). Also, is there a maximum growth rate value that can be enterred manually?

    I recently had a problem somewhat similar to yours, and it was somewhat difficult to find a solution. I did come up with a method that I will admit is probably not the best/most efficient method, but it did work for me.

  5. #5
    Registered User
    Join Date
    03-28-2007
    Posts
    18
    I'm interested to know how you handled it. For the sake of argument, let's assume that the destination cells would be formatted currency to two decimal places. The growth rate in theory would go as high as 500%. The only other formatting I would have is chosen font/size/color on the destination cells.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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