+ Reply to Thread
Results 1 to 17 of 17

round up problem

  1. #1
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    221

    round up problem

    =ROUNDUP(E14*M5/0.51,0)*0.5

    E14=9.58
    M5 = 1

    This is providing the result 9.5 but should be rounding up to 10

    Can someone help me with this?

    A further note it seems to work as it should unless you enter a number ending in .6 ie 6.6 7.6 8.6 9.6 etc
    Last edited by mikerules; 03-26-2014 at 06:45 PM.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: round up problem

    You need to keep the math inside the ROUNDUP function, like this:

    Please Login or Register  to view this content.
    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: round up problem

    Deleted because identical to ConneXionLost.
    Last edited by newdoverman; 03-26-2014 at 07:03 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  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

    Re: round up problem

    Unless you're attempting something exotic, the two numbers in red should be the same:

    =ROUNDUP(E14*M5/0.51,0)*0.5
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: round up problem

    With this if I enter as an example .19 or some fraction of 1 under .5 it is rounding to 1 rather than .5

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: round up problem

    Another possibility for you

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by newdoverman; 03-26-2014 at 07:50 PM.

  7. #7
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: round up problem

    Before I change that I would actually prefer if it was under 1 cf that it rounded to 1 with 1 as a minimum. Is this what is happening in the first example you sent?

  8. #8
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: round up problem

    In the example =CEILING((E14*M5/0.51*0.5),10) this is rounding up to 10 so this is not what it needs to do.

    If the total of E14*M5 is less than .5 the result should round up to 1 in all other cases it should round up to the nearest .5

    Would it help if I attached a copy of the sheet?

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: round up problem

    The 10 should be 1...typo...corrected.

    Yes, it would help to see a copy of the worksheet as this is becoming confusing as to what you are looking for.

  10. #10
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: round up problem

    The entry is being made to E14 and it is * by E5 which I have set to 1 to keep this simple. The result is going into F14.

    If when the amount entered in E14 * by E5 results in an amount under 1 this should calculate 1 F14 (1 being the minimum)

    If when the amount entered in E14 * by E5 results in an amount of .5 or greater this should round up to the nearest .5 ie 4.3 > 5, 9.8 > 10, 6.1 > 6.5

  11. #11
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: round up problem

    As SHG suggested, the formula should be the following to round up to the nearest .5:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  12. #12
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: round up problem

    Just from that explanation,

    =max(1, ceiling(e5*e14, 0.5))

  13. #13
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: round up problem

    Sorry but that is def not right as say 1.4 is giving an answer of 41.5 rather than 1.5

  14. #14
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: round up problem

    Ok sorry that was my error in what I told you as it was not E5 it was M5. I have made the change and it works great. Thank-you for being patient with me

  15. #15
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: round up problem

    One last thing I just noticed is that if there is no entry in E14 F14 still gives a result of 1. Is it possible that if E14 does not have an entry then F14 would not post an entry?

  16. #16
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: round up problem

    If F14 is =ROUNDUP(E14*M5/0.5,0)*0.5 and there is nothing in E14, the result is 0

    If you want a blank cell in F14 if E14 is blank

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  17. #17
    Forum Contributor
    Join Date
    07-02-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: round up problem

    This works except that if it is under .5 it is rounding to .5 rather that 1. Above .5 it works fine

+ 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. [SOLVED] ROUND problem
    By margie_68 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-09-2013, 02:46 PM
  2. Stop round off problem
    By emina002 in forum Excel General
    Replies: 7
    Last Post: 08-08-2011, 03:19 AM
  3. ROUND problem
    By thetallguy0 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-04-2008, 11:47 AM
  4. [SOLVED] round problem
    By Badman in forum Excel General
    Replies: 8
    Last Post: 04-05-2006, 10:55 PM
  5. Problem with the round function
    By Patrick in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2005, 01:06 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