+ Reply to Thread
Results 1 to 6 of 6

check cells

  1. #1
    Forum Contributor
    Join Date
    05-16-2010
    Location
    glasgow scothland
    MS-Off Ver
    Excel 2007
    Posts
    112

    check cells

    Hello,

    In my worksheet i need to check cells to make sure they have data before the next range can accept data.

    Example.

    I want to make sure range N4:Q11 has data in each cell before range P15:Q18 can accept data.

    If range N4:Q11 has all data and P15:Q18 starts accepting data and if someone decides to clear any data from first range
    i would like excel to stop them.

    I would appreciate any help with this.

    Thanks.
    Last edited by mdshotgun; 06-12-2014 at 07:28 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: check cells

    Hi

    You can use a custom validation to range P15:Q18 for not allowing the users to use this range unless if the other range is full of data using this formula in custom validation bar

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


    but you can not force the users to don't delete data without to use VBA.

    edit: because as i understand you need to allow them to type anuthing in first range but you don't want to allow them to delete data in that range.
    Last edited by Fotis1991; 06-11-2014 at 06:26 AM. Reason: edit
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    05-16-2010
    Location
    glasgow scothland
    MS-Off Ver
    Excel 2007
    Posts
    112

    Re: check cells

    Hello Fotis1991,

    Thanks for your reply.

    The data in file is sensitive,so i have mocked up a dummy sheet example.

    I have attempted to write some code myself but i am no programmer
    but it will give me the msgbox when there is a cell empty in the range
    but it seems to go into an infinite loop.

    I would think my code is a mile off what is needed.
    Attached Files Attached Files

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: check cells

    This looks to work.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    05-16-2010
    Location
    glasgow scothland
    MS-Off Ver
    Excel 2007
    Posts
    112

    Re: check cells

    Thanks again for the reply and the help.

    Because i commented out the Exit Sub it made it go into an infinite loop.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: check cells

    Exactly!!

    You are welcome and thanks for the feedback.

+ 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. possible to check for file in multiple folders, then check for values in specific cells?
    By mattheritage in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2014, 08:33 AM
  2. Automatically check one or more check boxes when a parent check box is manually checked
    By Steverizer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-28-2013, 01:56 PM
  3. Replies: 0
    Last Post: 03-21-2013, 02:46 AM
  4. [SOLVED] Need cells from Worksheet1 to check corresponding cells in worksheet2 and respond
    By publius190 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2012, 06:19 PM
  5. Check for cells that reference empty cells?
    By leaning in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-19-2010, 04:19 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