+ Reply to Thread
Results 1 to 2 of 2

ROUNDUP help

  1. #1
    Registered User
    Join Date
    03-20-2020
    Location
    Illinois
    MS-Off Ver
    10 and 16
    Posts
    1

    ROUNDUP help

    Hello,

    I did look for this, but could not finds an old post.

    I have a cell (I4) that includes =ROUNDUP(H4/C4,0). I want any number in H4, which has the formula (F4-G4), greater than zero to round to the next whole number, EX: .01 rounds to 1, 2.5 rounds to 3 5.9 rounds to 6, etc. Issue is...when the H4's value is 0, it rounds it to 1. I have tried IF statements, IF (H4=0, 0, h4/c4), which kind of worked accept when H4 was 0, it would then round to 1. Actually, H4 shows as 0.0, but I even tried to account for this in the formulas.

    So, I am subtracting G4 from F4 to get a net. This is happening in H4. Then, I want I4 to round the value of H4 to the next whole number, accept anything less than or equal to 0, stays 0.

    How do I get it that if H4's value is zero, then I4 will not round it to 1, and keep it 0?

    I must be using ROUNDUP incorrectly?

    Thanks!

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,880

    Re: ROUNDUP help

    That's likely caused by floating point error. What appears to be 0 isn't truly a 0 and has very small decimal value.

    May be try...
    =ROUNDUP(IF(Round(H4,4)=0,0,h4/c4),0)
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

+ 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] Sum, Roundup, then Sum again
    By shargreaves in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-01-2018, 01:47 PM
  2. Roundup & down
    By mapp28 in forum Excel General
    Replies: 6
    Last Post: 08-26-2016, 01:28 PM
  3. Roundup..
    By aplhurst in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2015, 07:02 AM
  4. RoundUp
    By rbpd5015 in forum Excel General
    Replies: 6
    Last Post: 04-12-2010, 11:51 AM
  5. roundup
    By david.madden in forum Excel General
    Replies: 6
    Last Post: 10-27-2006, 08:24 AM
  6. [SOLVED] roundup by 16s
    By Sum Limit and marking in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-28-2006, 10:30 AM
  7. Trying To Roundup only if more than zero
    By G33kman in forum Excel General
    Replies: 2
    Last Post: 11-29-2005, 04:30 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