+ Reply to Thread
Results 1 to 7 of 7

4th Digit Rounding

  1. #1
    Registered User
    Join Date
    03-24-2014
    Location
    Columbia, SC
    MS-Off Ver
    Excel 2010
    Posts
    4

    4th Digit Rounding

    I have an excel sheet here at work that does figuring based on area of an object to come up with stress rates. The issue is that for some reason, even with MROUND, when the number falls on xxx5, it wants to round down to the ten and not up. So if the calc comes out to be 1445.1, MRound to 10 will put it at 1440, when it needs to round up, as that is what my machine is doing and my reports need to match the machine output.

    To get area I am using this in E4 - =(((B4)/2)^2)*3.1416
    B4 is my input diameter for the specimen.

    This calcs my strength - =MROUND((B7)/E4,10)
    Where B7 is input in Max Load and E4 is the above mentioned area, and 10 is obviously what I am wanting it to use for rounding. I just need it to stop rounding down when it lands on 5.

    The current example is a Max load of 113410 with an area of 12.566 bringing the strength to an unrounded 9025.14722... that it is rounding down to 9020 instead of the desired rounding up to 9030.

    I have searched quite a few places and I can't seem to find a precise means of fixing it. Ceiling and floor wont work, roundup isnt doing it for me so I come here for your help.

    Thanks for any help, I hope I was clear and concise enough.

    -Brandon

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: 4th Digit Rounding

    If you change actual formula to:
    =B7/E4
    does it truly return 9025.14722?
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Registered User
    Join Date
    03-24-2014
    Location
    Columbia, SC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: 4th Digit Rounding

    It returns 9025 even when I change it to a straight formula.

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: 4th Digit Rounding

    What is exact value returned? I think real values are not what you see and actual calculated value is below 9025. Perhaps you may tell us input values and formula for B7.

  5. #5
    Registered User
    Join Date
    03-24-2014
    Location
    Columbia, SC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: 4th Digit Rounding

    The exact return value when I change the formatting back to general from Number is 9024.859944

    B7 is 113410 in this case, E4 is 12.566

    Perhaps the issue is number formatting is dropping the x.xxx4 from the 12.5664 putting it under 9025 but the 9024.85 isnt rounding up to 9025 stopping the final rounding from being 9030?

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

    Re: 4th Digit Rounding

    If you have exactly 113410 in B7 and 12.566 in E4 then the result would be 9025.147 as you say and with MROUND that will round to 9030, but excel uses the exact value in the cell (which isn't necessarily the same as the displayed value), so if B4 = 4 then your E4 calculation will actually give you 12.5664 (you can see that if you expand the number format to show 4 decimal places) in which case the result will be approx 9024.86 which is why excel correctly rounds that to 9020.

    So excel is rounding correctly. If you want to use just 3 decimal places for E4 in the calculation then add rounding to the E4 calc, i.e.

    =ROUND(((B4/2)^2)*3.1416,3)

    Now you'll get 9030 when B4=4
    Last edited by daddylonglegs; 03-24-2014 at 10:01 AM.
    Audere est facere

  7. #7
    Registered User
    Join Date
    03-24-2014
    Location
    Columbia, SC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: 4th Digit Rounding

    Just as you posted that I figured it, I just needed a nudge in the right direction. The hidden 4th decimal place was throwing it all off.

    Thank you both!

+ 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] Color a single digit in a mult-digit number cell
    By Phyllis in forum Excel General
    Replies: 8
    Last Post: 09-30-2022, 04:22 PM
  2. [SOLVED] LOTTERY FILTER#4, Find if 1 Digit Sum of 2 Digit or 3 Digit, Single Cell w/ dash
    By david gonzalez in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-08-2014, 12:57 AM
  3. [SOLVED] Rounding long formula to digit above 0
    By justtune in forum Excel General
    Replies: 15
    Last Post: 09-05-2012, 08:21 PM
  4. Replies: 2
    Last Post: 06-17-2010, 08:36 PM
  5. Replies: 1
    Last Post: 02-18-2005, 10:06 AM

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