+ Reply to Thread
Results 1 to 12 of 12

help on round up

  1. #1
    Forum Contributor
    Join Date
    08-23-2018
    Location
    UAE
    MS-Off Ver
    2019 business
    Posts
    104

    help on round up

    hi
    I want help on round up as follow
    e.g
    33.25 must be 33.5 because it is greater than 0.25
    33.13 must be 33 because it is less than 0.25
    33.8 must be 34.0 because it is greater than 0.75
    33.73 must be 33.5 because it is less than 0.75

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,610

    Re: help on round up

    Perhaps try the MROUND function?

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: help on round up

    33.25 must be 33.5 because it is greater than 0.25 logic round up to the nearest 0.25 (even though already a multiple of 0.25)
    33.13 must be 33 because it is less than 0.25 logic round down to the nearest 0.25
    33.8 must be 34.0 because it is greater than 0.75 logic round up to the nearest 0.25 or round to nearest 0.25
    33.73 must be 33.5 because it is less than 0.75 logic round down to the nearest 0.25 or round to nearest 0.25

    These are a strange set of conditions (are you sure?)


    State your rounding conditions in words, as there is a lot of guesswork here
    Last edited by davsth; 03-11-2020 at 05:21 AM.

  4. #4
    Forum Contributor
    Join Date
    08-23-2018
    Location
    UAE
    MS-Off Ver
    2019 business
    Posts
    104

    Re: help on round up

    this calculation work for cubes report on our department
    so I need a formula (one only) to solve my problem
    sometimes the value is 33.25 or 33.13 or 33.8 or any number so I need to round it up as example shown

  5. #5
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: help on round up

    so 33.13 should be 33.25 not 33
    and would 33.25 round up to 33.5 even though it is already a multiple
    =CEILING(A1*4,1)/4


    or if the 0.25 needs to be 0.5
    =IF(MOD(A1*4,1)=0,0.25,0)+CEILING(A1*4,1)/4

  6. #6
    Forum Contributor
    Join Date
    08-23-2018
    Location
    UAE
    MS-Off Ver
    2019 business
    Posts
    104

    Re: help on round up

    thanks man
    the second formula worked but not for 33.13 (33.13 should be 33) according to engineering

  7. #7
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: help on round up

    I refer you to post 3, what are your rules they are inconsistent. Everything else rounds up, but it goers down. what other values would go down?

    I imagine you could get any decimal values, what about .12 or 0.14 do they go up or down? without you explaining the rules you will not get an answer that works

    =IF(MOD(A1*4,1)=0,0.25,0)+CEILING(A1*4,1)/4 +if(mod(a1,1)=0.13,-0.25,0) works but this can not be the correct answer but fits your sample.

  8. #8
    Forum Contributor
    Join Date
    08-23-2018
    Location
    UAE
    MS-Off Ver
    2019 business
    Posts
    104

    Re: help on round up

    what he said to me that any fraction value less than 0.25 will round down to 0 (33.13=33)
    fraction fall between 0.25 and 0.74 will round up to 0.5 (33.73 = 33.5) (33.25= 33.5)
    fraction fall between 0.75 and 0.99 will round to next number (33.75= 34)

    anyway he said to me he will read the standard again and will come back to me

    sorry for my first post was unclear

  9. #9
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: help on round up

    perhaps =MROUND(A1,0.5)


    Your rules are clearer now, less guesswork

  10. #10
    Forum Contributor
    Join Date
    08-23-2018
    Location
    UAE
    MS-Off Ver
    2019 business
    Posts
    104

    Re: help on round up

    yea that's what happen when I call him to clear for me what he need
    for me it is work
    will share that to my Engineering if he said yes I add repution for you and mark as solved :D

  11. #11
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,610

    Re: help on round up

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  12. #12
    Forum Contributor
    Join Date
    08-23-2018
    Location
    UAE
    MS-Off Ver
    2019 business
    Posts
    104

    Re: help on round up

    I know that man

    thanks every thing done add reputation and mark it solved

+ 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] How to PRESENT round-down, but not perform round-down function?
    By superlative in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-02-2019, 12:06 PM
  2. [SOLVED] Custom formulas that will round up when a condition is met or round down
    By cinstanl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-20-2016, 01:32 PM
  3. Replies: 2
    Last Post: 12-06-2014, 01:58 PM
  4. [SOLVED] How to round to nearest .01 and round down if thousands place is .005
    By dredre609 in forum Excel General
    Replies: 5
    Last Post: 09-29-2014, 11:47 AM
  5. [SOLVED] Conditional Round up or Round up Function
    By cdmterence in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-18-2013, 06:03 PM
  6. Counting to a specified numberin round, then add one to round
    By McG_84 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-10-2013, 04:20 PM
  7. How do I ROUND() round off decimals of a column dataset?
    By Højrup in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2005, 07: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