+ Reply to Thread
Results 1 to 8 of 8

Restrict Data Entry if previous cell doesn't fall between a particular range

  1. #1
    Registered User
    Join Date
    12-12-2016
    Location
    Alabama, United States
    MS-Off Ver
    Excel 2007
    Posts
    32

    Restrict Data Entry if previous cell doesn't fall between a particular range

    Hi,
    I am using data validation to restrict entry in highlighted cell if previous cell does not contain the ranges between 1000000-2999999. I am confused on finding the proper formula to put in data validation.
    For example. I have two cells, cell D7 ( Number) and cell G7 ( Order). I wanted to restrict entry in G7 (Order) if cell D7 (Numbers) is not between the range of 1,000,000 and 2,999,999.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Restrict Data Entry if previous cell doesn't fall between a particular range

    G7 data validation

    Formula: =AND(D7>=1000000,D7<=2999999)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    12-12-2016
    Location
    Alabama, United States
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Restrict Data Entry if previous cell doesn't fall between a particular range

    I go to Data>Data Validation>Custom and I input the formula you provided. When I test it, it's still allowing entry in G7 when I put 1000001 in cell D7.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Restrict Data Entry if previous cell doesn't fall between a particular range

    Quote Originally Posted by dezspert22 View Post
    I go to Data>Data Validation>Custom and I input the formula you provided. When I test it, it's still allowing entry in G7 when I put 1000001 in cell D7.
    Isn't that what you wanted?

    G7 will only accept an entry if cell D7 contains a number between 1000000 and 2999999 (inclusive).

  5. #5
    Registered User
    Join Date
    12-12-2016
    Location
    Alabama, United States
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Restrict Data Entry if previous cell doesn't fall between a particular range

    Oh no I'm saying if the numbers are not between 1000000 and 2999999 then allow input. Sorry for miscommunication.

  6. #6
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Restrict Data Entry if previous cell doesn't fall between a particular range

    Use customize data validation with the following formula in G7
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    12-12-2016
    Location
    Alabama, United States
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: Restrict Data Entry if previous cell doesn't fall between a particular range

    Ok thank you it worked! I input in the wrong cell information but I got it! Thank you both!

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Restrict Data Entry if previous cell doesn't fall between a particular range

    Good deal. 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. Replies: 3
    Last Post: 12-18-2015, 03:16 PM
  2. restrict data entry basing on adjacent cell value
    By tkraju in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2014, 01:45 PM
  3. Restrict data entry if preceeding cell value is greater than or blank
    By GreggTO in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-07-2013, 11:46 AM
  4. Replies: 2
    Last Post: 03-12-2013, 03:27 AM
  5. Replies: 4
    Last Post: 02-01-2013, 10:18 AM
  6. Restrict data entry based on another cell
    By northbank in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-13-2012, 11:33 AM
  7. NEED HELP - How to disable a cell to restrict data entry
    By Sriram in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-18-2006, 10:50 AM

Tags for this Thread

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