+ Reply to Thread
Results 1 to 6 of 6

Custom Data Validation

Hybrid View

maacmaac Custom Data Validation 05-11-2009, 11:40 AM
Macdave_19 Re: Custom Data Validation 05-11-2009, 11:44 AM
maacmaac Re: Custom Data Validation 05-11-2009, 11:50 AM
maacmaac Re: Custom Data Validation 05-11-2009, 03:15 PM
shg Re: Custom Data Validation 05-11-2009, 03:19 PM
maacmaac Re: Custom Data Validation 05-11-2009, 03:40 PM
  1. #1
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,176

    Custom Data Validation

    I am trying to apply custom data validation for two cells

    The first is data validation in cell B6. The only valid entries should be in mulitples of 100 (e.g. 100, 200, 300, .... etc).

    The second cell is B12. The only valid enteries should be any number above 100 and not = 100, 200, 300, .... etc).

    I tried using following formula in data validation for cell B6 but no luck. Couldn't figure out what to use for cell B12

    =mod(B6,100)
    Last edited by maacmaac; 05-11-2009 at 03:40 PM.

  2. #2
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Question Re: Custom Data Validation

    Select:

    Data>Validation

    from the drop down choose "List"

    then in the textbox below enter the value's you want seperated by a comma like so

    100,200,300.

    or if you know how create a list of the numbers you want to use then highlight them and in the white box at the top left of the screen type a name and hit enter.

    then in repeat the data validation part but in the box type:

    =Thenameofyourlist

    hope that helps
    Mr MaGoo
    Magoo.Inc MMVII

    If i've helped please add to my Rep by Clicking on the Blue Scales in the top right hand corner of the post

  3. #3
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,176

    Re: Custom Data Validation

    Thanks for suggestion. I thought of using the list except the list would need to be from 100 to 100,000 or more. Also, the second part of my validation question is to validate is for any number above 100 and not equal to 100, 200, 300, ... etc. Is there some type of formula I could use in place of a list? Thanks.

  4. #4
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,176

    Re: Custom Data Validation

    I am trying an alternative solution.

    I am using following formula to generate a random number.

    =INT((49*RAND())+2)*100

    I tried using the same formula for my data validation but still not working. Any assistance tweaking this formula is appreciated. Thanks.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Custom Data Validation

    Validation for B6 =MOD(B6,100)=0

    For B12, =AND(B12>100, MOD(B12, 100)<>0)
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,176

    Re: Custom Data Validation

    Both results working. Thanks.

+ 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