+ Reply to Thread
Results 1 to 4 of 4

Excel always rounds up

  1. #1
    Registered User
    Join Date
    03-15-2007
    Posts
    17

    Excel always rounds up

    If I enter 2.5 into a cell, and then change the format so that there are no digits after the decimal, the number changes to a 3.

    2.4 correctly rounds to 2, but shouldn't 2.5 round to 2???

    I thought that even numbers were supposed to round down, and odd numbers round up when there is a 5 right after the decimal.
    Last edited by VBA Noob; 11-10-2008 at 02:16 PM.

  2. #2
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848
    Excel uses arithmetic rounding where .5's always wound up. The rounding you are referring is called Banker's rounding.

    Access and VBA use the banker version while Excel uses arithmetic

    See here as well.
    Rounding in Excel

  3. #3
    Registered User
    Join Date
    03-15-2007
    Posts
    17
    Great, thanks!

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    All you'll ever want to know about rounding: http://support.microsoft.com/kb/196652
    Entia non sunt multiplicanda sine necessitate

+ 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