+ Reply to Thread
Results 1 to 7 of 7

Conditional Rounding

  1. #1
    Registered User
    Join Date
    09-05-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    7

    Conditional Rounding

    Greetings!

    I have a quick query about rounding. I know one way of doing this involves IF, but I was wondering if there was some combination of ROUND/MROUND/CEILING/FLOOR/(any other rounding function I don't know about) to achieve the same results without the use of an IF.

    The software my workplace uses rounds decimals >=.49 up to the next whole number, whereas Excel does the normal thing and rounds down. I feed data to the software in the form of spreadsheets, and every now and then, one of these goofs (nicknamed "Woody's RoundUp" by a coworker) rears its ugly head and it's, as you can guess, a bit annoying.

    Like I said, I know how to do it with IF, so this is really more of a curiosity than anything; I like learning about alternate methods. Thanks for your time!

    EDIT: Just realized I didn't even really clarify this - The software is what the company considers "correct", so the Excel sheet needs to match up with it for the testing to go smoothly.
    Last edited by MrHoohah; 04-08-2014 at 11:02 AM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Conditional Rounding

    Hello MrHoohah,

    I'm not clear how the rounding should work, can you clarify?

    ROUND function in Excel always rounds to the nearest value, e.g.

    =ROUND(8.4,0) = 8

    but

    =ROUND(8.6,0) = 9

    Exactly halfway rounds up, i.e.

    =ROUND(8.5,0) = 9

    How does your software differ?
    Audere est facere

  3. #3
    Registered User
    Join Date
    09-05-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Conditional Rounding

    Yep, Excel rounds the correct way, and the software rounds in a silly way. Here's how it would look if Excel did it the same way our software does it:

    =ROUND(8.4, 0) = 8 -Same as Excel
    =ROUND(8.5,0) = 9 -Same as Excel
    =ROUND(8.49,0) = 9 -Silly.

    What we've been using is this:
    =IF(A2-INT(A2)>=.49, ROUNDUP(A2, 0), ROUND(A2, 0)

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Conditional Rounding

    =ROUND(A1+0,01;0)
    try this
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  5. #5
    Registered User
    Join Date
    09-24-2013
    Location
    Twin Cities, MN
    MS-Off Ver
    Excel 2010
    Posts
    91

    Re: Conditional Rounding

    Wouldn't ROUND work just fine if you added .01 to your number?

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Conditional Rounding

    That works for me popipipo....or you can use this one

    =INT(A2+0.51)

  7. #7
    Registered User
    Join Date
    09-05-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Conditional Rounding

    It's possible that those work, I'll have to try them out on a few sheets. It's just that every number gets thrown around and put through so many other formulas, adding a .01 to everything might throw something else off. However, that is a ridiculously simple quick fix for the columns that -do- throw a fit; I have really, really been overthinking it, lol!

    Thanks a lot for the suggestions, everyone!

+ 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. Conditional Formatting rounding up
    By nellyc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-02-2014, 08:09 AM
  2. [SOLVED] Conditional rounding?
    By darxide23 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-20-2013, 03:16 PM
  3. [SOLVED] Conditional rounding
    By contradict in forum Excel General
    Replies: 4
    Last Post: 05-20-2012, 05:23 AM
  4. [SOLVED] Help with conditional rounding formula
    By jbriscoe in forum Excel General
    Replies: 4
    Last Post: 05-16-2012, 11:46 AM
  5. [SOLVED] Conditional Rounding
    By Annie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-29-2006, 03:45 PM

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