+ Reply to Thread
Results 1 to 6 of 6

enforce a certain decimal point to cells

  1. #1
    Forum Contributor
    Join Date
    06-04-2006
    Posts
    132

    enforce a certain decimal point to cells

    Hi,

    I wonder if there is a way of enforcing user to enter numbers in cells in a half decimal or (0.5) block. For example, user can enter any decimal numbers with only one decimal point such as 1.5 or 2.0 or 7 or 8.5, etc. But it will prompt user for re-entering the number when they enter something like 1.7 or 1.3. If user wanted to put in 1.7 to a cell, he/she is allowed to enter either 1.5 or 2 - nothing in between is allowed. I was trying to use the data validation but no option that can do that.

    Any helps would be greatly appreciated.

    uses Office 03

    Thank you in advance

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

    Re: enforce a certain decimal point to cells

    Data validation formula: =int(2*Me) = 2*Me, where Me is replaced by the address of the cell in which it appears.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: enforce a certain decimal point to cells

    Or another (similar) way would be to use this Data Validation formula (assumes the first cell is A2, change as required):

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    06-04-2006
    Posts
    132

    Re: enforce a certain decimal point to cells

    It works very well. Thanks to you both, shg and Trebor76.

    Sorry, if i may ask again. I wonder if it is possible to add more than one data validation to the cells. Just realised i already have one data validation set to the cells but wanted to add another one to them.

    Thank you in advance
    Last edited by associates; 03-01-2009 at 09:48 PM.

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

    Re: enforce a certain decimal point to cells

    Yes, it is. What's the other condition?

  6. #6
    Forum Contributor
    Join Date
    06-04-2006
    Posts
    132

    Re: enforce a certain decimal point to cells

    Thank you, shg for your reply.

    Sorry for the delay in getting back to you.

    The other validation i wanna add is the number entered to cells must be between 0 and 8.

    Thank you in advance

+ 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