+ Reply to Thread
Results 1 to 4 of 4

Conditionally Locking A Range

  1. #1
    Registered User
    Join Date
    10-04-2012
    Location
    Not here, it's rubbish!
    MS-Off Ver
    Excel 2003/2007/2010
    Posts
    66

    Conditionally Locking A Range

    Hi All,

    This problem is well beyond my Excel knowledge so I'd appreciate any help you guys can give me. Please have a look at the attached file which illustrates what I need to achieve.

    So, we basically have the building blocks of an Action Tracker spreadsheet that needs to prevent users doing certain things. F1 and F2, which are Data Validated as a list over N5 to N6 allows a user to choose if they want to allocate a Categpory or Owner to a stated Action (B5:B10). The default to both is "Yes' which allows the User to select a Category from a Data Validated list over L5 to L10 and an Owner from a Data Validated list over M5 to M10.

    If the User selects 'No' to either F1 or F2, is it possible to lock ranges C5:C10 and D5:D10 respectivley so when the sheet is protected, that they cannot make a choice from the drop down lists under Category or Owner?

    Many thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Conditionally Locking A Range

    Can you put a simple if statement in the data validation?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    10-04-2012
    Location
    Not here, it's rubbish!
    MS-Off Ver
    Excel 2003/2007/2010
    Posts
    66

    Re: Conditionally Locking A Range

    If I knew how to I would. I'm a bit of a cross newbie-intermediate Excel user.

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Conditionally Locking A Range

    Here is an example formula for your data validation that will only allow a selection if F1 and F2 are both Yes.

    Select C6:C10 and click on Data Validation and enter this formula in place of the existing formula.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This is for your column C. Repeat for column D making the necessary changes for the range.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. [SOLVED] Conditionally Format Dynamic Range
    By hamidxa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2014, 12:43 PM
  2. [SOLVED] Macro - Conditionally Define a Range
    By mblack3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-04-2013, 02:26 PM
  3. Conditionally locking the cell
    By vickey.narang in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-04-2010, 11:37 AM
  4. Conditionally Locking Cells
    By beesus311 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-25-2008, 01:28 PM
  5. conditionally formatting a range using VB
    By rodk in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-19-2008, 05:34 AM

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