+ Reply to Thread
Results 1 to 8 of 8

Limit data validation values to a 1 point margin in 3 different cells

  1. #1
    Registered User
    Join Date
    09-08-2009
    Location
    Hawaii
    MS-Off Ver
    Excel 2013
    Posts
    68

    Limit data validation values to a 1 point margin in 3 different cells

    I have a section of my program that asks for board scores (point value is 6-10 in increments of .5) I have set up a data validation so that users can only enter those specific values. Problem is, none of the values can be more than 1 point from each other. (the part I have yet to figure out)

    Example, if the first value is a 6.5 the second is 7.0 and the third is a 9.0, I need the data validation to display an error because the 9.0 is beyond the one point spread.

    Summary: Display an error message if any of the points are more than 1.0 point from another.

    Thanks, you guys have always been great at hepling me!
    Last edited by purdue7997; 11-17-2009 at 03:31 PM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Limit data validation values to a 1 point margin in 3 different cells

    It would be easier to answer if you post a sample workbook showing which cell containing validation are to be compared.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    09-08-2009
    Location
    Hawaii
    MS-Off Ver
    Excel 2013
    Posts
    68

    Re: Limit data validation values to a 1 point margin in 3 different cells

    Here is the sheet that has my data validation problem on it. Also, if there is a solution to it, could it be done without macros? If not I'll take a macro solution. Thanks!!!!!!
    Attached Files Attached Files

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Limit data validation values to a 1 point margin in 3 different cells

    Based on your sample file, without wanting to alter J52:J60 (unknown knock-ons) you could perhaps do something like

    Please Login or Register  to view this content.
    Then highlight M12:M14, selecting M12 first, and apply a Validation List of:

    Please Login or Register  to view this content.
    Note: I wasn't entirely clear on the rules and have assumed that when first value is entered, say 9 the next value could range from 8-10, if 8.5 is selected the 3rd selection options can only fluctuate from 7.5 to 9.5
    (ie the +/- is based on the MIN)
    Last edited by DonkeyOte; 11-17-2009 at 02:36 PM. Reason: typo - H not G

  5. #5
    Registered User
    Join Date
    09-08-2009
    Location
    Hawaii
    MS-Off Ver
    Excel 2013
    Posts
    68

    Re: Limit data validation values to a 1 point margin in 3 different cells

    You hit the nail on the head! You guys always amaze me. Thanks and I'll add to your rep!

  6. #6
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Limit data validation values to a 1 point margin in 3 different cells

    Post late, but a similar solution to DO, only w/o the helper column.
    I assume you list of numbers will remain fixed, but you could name the range so Excel will track it if you move it.

    Data validation formula, list option:
    =OFFSET(INDIRECT(ADDRESS(MATCH(MIN($M$12:$M$14),$J$52:$J$60,0)+51,10)),,,3,1)


    Edit: in testing the formula by DO, you can get a spread of points greater than 1-point. Based on the OP's note in the workbook the total spread from lowest score to the highest should not be greater than 1-point.
    Last edited by Palmetto; 11-17-2009 at 03:54 PM.

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Limit data validation values to a 1 point margin in 3 different cells

    Edit: in testing the formula by DO, you can get a spread of points greater than 1-point. Based on the OP's note in the workbook the total spread from lowest score to the highest should not be greater than 1-point.
    Agreed, though in defence I made that point myself...

  8. #8
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Limit data validation values to a 1 point margin in 3 different cells

    Quote Originally Posted by DonkeyOte View Post
    Agreed, though in defence I made that point myself...
    Arrg! Sorry. One of these days I'm going to spring for a new set of bi-focals.

+ 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