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?
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?
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!
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.
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?
I figured it out! Thank you Tony!
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks