+ Reply to Thread
Results 1 to 7 of 7

Rounding numbers

  1. #1
    Registered User
    Join Date
    07-27-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    24

    Rounding numbers

    Is there a way to round numbers to the nearest quarter.
    In my sheet I have a cell (A1)that is the sum of a group of other cells(B1:B10).
    I want A1 to only round to the .25, .5, .75 or 0. Can someone please help?
    I dont want the cells to be in a fraction format.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Rounding numbers

    =int(a1*4)/4

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Rounding numbers

    Given your use of XL2010 you can utilise MROUND

    =MROUND(A1,0.25)

    Prior to Excel 2007 the use of MROUND required activation of the Analysis ToolPak Add-In

  4. #4
    Forum Contributor
    Join Date
    11-18-2009
    Location
    Winnipeg
    MS-Off Ver
    Excel 2003
    Posts
    203

    Re: Rounding numbers

    To round up to the nearest .25:
    =ceiling(A1,.25)

    To round down to the nearest .25:
    =floor(A1,.25)

  5. #5
    Registered User
    Join Date
    07-27-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Rounding numbers

    Thank you. This is my new favorite place to be. I always loved excel, but now that I can get answers to my little questions Life just got a whole lot better.
    Jess
    New problem.
    The cells which is all of column B is already using a function. Let me explain in my own laymans terms. For example....I want cell A1 to equal the sum of B1:B12. How then if cell A1 already has a function in it =SUM(B1:B12). How then do I get cell A1 to perform the required function and still round it to the quarter?
    Last edited by DandD; 07-27-2010 at 01:54 PM.

  6. #6
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Rounding numbers

    In place of "A1" in any of the solutions given, use your formula.

    =int(SUM(B1:B12)*4)/4

    =MROUND(SUM(B1:B12),0.25)

    =ceiling(SUM(B1:B12),.25)

  7. #7
    Registered User
    Join Date
    07-27-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Rounding numbers

    Thanks so much.

+ 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