+ Reply to Thread
Results 1 to 3 of 3

Data Validation - ceiling and rounding

  1. #1
    Registered User
    Join Date
    07-12-2016
    Location
    massachusetts
    MS-Off Ver
    excel 2010
    Posts
    44

    Data Validation - ceiling and rounding

    Hello,

    I was hoping to include a cell where users can input any number that would round down to the nearest 10,000, and then cap off at 350,000.

    I THINK this would be through a data validation but I'm unsure.

    Any ideas?

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Data Validation - ceiling and rounding

    if the cell where users enter a number is A1, then use this formula (change cell references if necessary):

    =IF(A1>=350000,350000,FLOOR(A1,10000))

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Data Validation - ceiling and rounding

    If you are saying that you want the user to input a number into a cell, and that number (in the same cell) will automatically be rounded down, that is only possible through the use of VBA which I cannot help with.
    This is due to the fact that a cell can either contain a formula or a manually entered value, not both.

    Doing this through the use of formulas is possible if the input cell and formula cell are two different cells.

    For example, you can input the number into A1 then use this formula in B1:
    =FLOOR(A1,10000)

    You can then apply the following Data Validation to the input cell like this:
    Select cell A1 > Data > Data Validation > Allow: Decimal > Data: less than > Maximum: 360000 > OK

+ 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: 1
    Last Post: 01-14-2018, 11:04 AM
  2. Multi-select from data validation isn't working with auto-assigning data validation
    By iPenguin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2017, 12:37 PM
  3. Replies: 2
    Last Post: 03-27-2017, 09:39 PM
  4. [SOLVED] Data Validation: How to clear/delete the content of the cell and not Data Validation List?
    By lukelucky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-07-2015, 09:42 AM
  5. Replies: 2
    Last Post: 09-19-2012, 11:44 AM
  6. 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
  7. Rounding numbers with CEILING function
    By matpj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2006, 01:35 PM

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