+ Reply to Thread
Results 1 to 4 of 4

decimal places

  1. #1
    Forum Contributor
    Join Date
    12-04-2006
    Posts
    201

    decimal places

    Hi,

    Does anyone know a way that you can limit a user to entering numbers to 2 decimal places ONLY, in a specific column. So basically what is in the formula bar can only be to two decimal places

    thanks

  2. #2
    Forum Contributor
    Join Date
    07-05-2007
    Location
    Lexington, MA
    Posts
    302
    Menus: Tools: Options: Calculation: Precision as Displayed
    will convert any value entered to match the display format of the cell
    For example, setting a numeric format to 2 decimal places will allow entering
    2.346, but will display 2.35 AND will set the cell value to 2.35 .

    Menus: Tools: Options: Edit: Fixed Decimal Places: 2
    may help also.

    If you want this behavior in only a column or a few cells, you can use the Worksheet_Change() event to check each entry and round it in the desired locations.
    FrankBoston is the pen name for Andrew Garland, Lexington MA

  3. #3
    Forum Contributor
    Join Date
    12-04-2006
    Posts
    201
    How would i go about using the Worksheet_Change() event to affec just 1 column, as i only need to do it in 1 column

    thanks

  4. #4
    Forum Contributor
    Join Date
    07-05-2007
    Location
    Lexington, MA
    Posts
    302
    See if this post answers your question.

    http://www.excelforum.com/showthread...orkbook_change

+ 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