+ Reply to Thread
Results 1 to 5 of 5

Data Validation

  1. #1
    Registered User
    Join Date
    10-25-2010
    Location
    cardiff wales
    MS-Off Ver
    Excel 2007
    Posts
    29

    Data Validation

    hi all
    could someone help me on a data validation exercise
    basically I want to control what a user enters into a single cell based on others eg

    A B
    1 20 500
    2 50 500
    3 75 500
    4 100 300

    column A is a thickness and column b is a width what I want to happen if the user enters a thickness in cell D1 and a width in cell D2 I want an error to pop up if for instance the user enters 100 as a thickness to only allow a maximum of 300 in the width. likewise if the user enters a thickness less than 100 in cell D1 to allow him to enter up to 500

    I hoe I have explained it ok

    thanks

    simon

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Data Validation

    Data validation in D2: Allow Whole Number between Minimum: 0 and Maximum: =LOOKUP(D1,$A$1:$B$4)
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    10-25-2010
    Location
    cardiff wales
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Data Validation

    hi
    thanks for the reply, however why cant I enter the grid references from another sheet??
    the data is in a table on a different sheet

    sorry probably should have mentioned that!!

    thanks again

    Simon

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Data Validation

    2007 will not allow you to reference another sheet in DV and CF, but you can get around that by creating a range name for the reference, and then using the name in the DV rule.

    Would it be safe to assume that thickness will always be less than width? If so, you could do a test between just those 2 cells?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    11-22-2013
    Location
    Islamabad
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Data Validation

    In Excel, the data validation feature helps you control what can be entered in your worksheet.

+ 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: 4
    Last Post: 07-03-2014, 02:37 AM
  2. Adding Date Data Validation to cells with List Data Validation
    By biggtyme in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-03-2013, 09:47 AM
  3. Using Defined Names with Data Validation Depend and Data Validation Multi Select
    By Vinnie Chan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-01-2012, 05:36 PM
  4. validation rules not working when someone copy paste data on validation cell
    By jthakrar in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-17-2010, 03:36 AM
  5. [SOLVED] data validation-How to set data validation for user to key in 24H time format?
    By crapit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-12-2006, 08:00 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