+ Reply to Thread
Results 1 to 7 of 7

how do you retrict data entry to max of 2 decimal places

  1. #1
    Registered User
    Join Date
    05-14-2014
    MS-Off Ver
    Excel 2003
    Posts
    3

    how do you retrict data entry to max of 2 decimal places

    How do you restrict a user to only be able to enter up to 2 decimal places in a cell without it automatically rounding for them?

  2. #2
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: how do you retrict data entry to max of 2 decimal places

    Highlight all columns or cells used > right click > format cells > Select Number under (Number Tab)> Change Decimal Places to the number 2. Hit OK


    Shelton A.
    If Helpful, Add Reputaion!

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: how do you retrict data entry to max of 2 decimal places

    You can use data validation to do this.

    Let's assume you want to limit cell A1 to numbers with no more than 2 decimal places.

    Select cell A1
    Goto the menu Data>Validation
    Allow: Custom
    Formula: =TRUNC(A1,2)=A1
    OK out

    You can have custom input and error messages if desired.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    05-14-2014
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: how do you retrict data entry to max of 2 decimal places

    playaller that does not give me the results I want, that will let them enter more than 2 decimal places and will automatically round to only show 2 decimals.

    Tony Valko I knew there was probably a custom formula for the DV but I didn't know what it was. The formula you gave me is coming back with an error. Can you double check it?

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: how do you retrict data entry to max of 2 decimal places

    Quote Originally Posted by ashleydiane1432 View Post

    Tony Valko I knew there was probably a custom formula for the DV but I didn't know what it was. The formula you gave me is coming back with an error. Can you double check it?
    What kind of error?

    Are you testing it as a formula entered in a cell? If so, depending on what you try to enter in the cell it may return an error but when used as a DV formula that error has the same effect as not permitting the cell entry.

  6. #6
    Registered User
    Join Date
    05-14-2014
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: how do you retrict data entry to max of 2 decimal places

    I figured it out! Thank you Tony!

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: how do you retrict data entry to max of 2 decimal places

    Good deal. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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. Adusting decimal places based on greatest number of places in a series
    By anelson87 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2022, 01:05 PM
  2. Need to add decimal places to a data value inside of a function
    By Tyriel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2013, 11:54 AM
  3. Paste two decimal number in excel without extra decimal places appearing
    By jeffery_frick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2009, 07:49 PM
  4. Aligning data with varying decimal places
    By edpaul in forum Excel General
    Replies: 1
    Last Post: 02-10-2005, 09:06 PM
  5. [SOLVED] ROUND DATA TO 2 DECIMAL PLACES
    By roy in sunbury in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-12-2005, 12:06 AM

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