+ Reply to Thread
Results 1 to 3 of 3

custom data validation formula to limit cell value to maximum of 4 decimal places

  1. #1
    Forum Contributor
    Join Date
    08-21-2008
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Office 2007
    Posts
    255

    custom data validation formula to limit cell value to maximum of 4 decimal places

    I require a custom data validation formula to limit cell value to maximum of 4 decimal places.

    0.0001 ok
    0.02 ok
    0.3 ok

    0.12345 fail
    0.123456 fail etc
    Last edited by wotadude; 03-05-2009 at 04:41 PM.

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: custom data validation formula to limit cell value to maximum of 4 decimal places

    Good evening wotadude
    Quote Originally Posted by wotadude View Post
    I require a custom data validation formula to limit cell value to maximum of 4 decimal places.
    There are other ways of doing this other than using Data Validation, but seeing as you asked :

    Allow : Custom
    Formula : =A1=INT(A1*10000)/10000

    should do the trick.
    (Obviously, replace A1 with the cell you are starting with).

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Contributor
    Join Date
    08-21-2008
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Office 2007
    Posts
    255

    Re: custom data validation formula to limit cell value to maximum of 4 decimal places

    Thanks, does the job nicely.

+ 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