+ Reply to Thread
Results 1 to 2 of 2

Excel Data Validation - Increments of 20 Only Input

  1. #1
    Registered User
    Join Date
    07-26-2017
    Location
    Staffordshire, England
    MS-Off Ver
    2013
    Posts
    1

    Excel Data Validation - Increments of 20 Only Input

    I have a worksheet, I only want to allow the user to input a number value that is increments of 20 only (e.g. 20, 40, 60, 80 etc). Ideally, if the user inputs 15 for example, this would automatically round UP to the nearest 20 and display the message (only increments of 20 are allowed). Is this possible with data validation custom formula? Or can I achieve this another way? Any info or a point to the answer would be greatly appreciated.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Excel Data Validation - Increments of 20 Only Input

    You could force the user to enter increments of 20 by using a data validation formula something like =MOD(CellRefHere,20)=0

    If you need the value to automatically round up to the nearest 20 then you'll want to use a worksheet change event that is fired when any of a range of specified cells is changed and then checking the value and amending if necessary.

    BSB

+ 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: 03-27-2017, 03:59 AM
  2. data validation in an input box
    By Suraj3825 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2013, 01:35 AM
  3. [SOLVED] Need Data Validation or Formula to Force Entry of Data in .25 Increments
    By sstravs in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-11-2012, 07:16 PM
  4. Data validation on an input box
    By pprseller in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-09-2009, 06:05 PM
  5. Data from Input Box overrides cell input validation
    By Winon in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-01-2007, 02:29 PM
  6. Input Boxes and data validation
    By John in forum Excel General
    Replies: 1
    Last Post: 07-07-2006, 09:35 AM
  7. [SOLVED] Data Validation with additional input
    By Shane73 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-17-2005, 02:05 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