Ask Experts Questions for FREE Help !
Ask
    miramss's Avatar
    miramss Posts: 3, Reputation: 1
    New Member
     
    #1

    Apr 4, 2012, 02:22 AM
    IF with ROUNDUP help please?
    I am struggling to make this formula work. It seems to round up to 1 or 0, but not to 2 or 3. I would really appreciate any advice.

    =IF(B29<1,0,ROUNDUP(((B29/Input!$C$3/Input!$C$19/Schedule!B30)-B35)>0,0))
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #2

    Apr 4, 2012, 02:53 AM
    What are the values in the cells?

    Also can we assume you are using Excel? If so, which version? If not, what spreadsheet?
    miramss's Avatar
    miramss Posts: 3, Reputation: 1
    New Member
     
    #3

    Apr 4, 2012, 03:02 AM
    Hi Scottgem, thank you for replying so quickly. I really appreciate the advice.

    I'm using Excel 2003.
    The values in the cells
    =IF(B29<1,0,ROUNDUP(((B29/Input!$C$3/Input!$C$19/Schedule!B30)-B35)>0,0))
    =IF(2340<1,0,ROUNDUP(((2340/20/4/20)-1)>0,0))

    All I want the ROUNDUP function to do is to make the current cell (of the calculation answer) roundup anything with a decimal to a full number. The formula above works for 1 and 0, but not 2 or 3. It even works for negatives.

    Please help...
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #4

    Apr 4, 2012, 03:23 AM
    Try this:
    =IF(B29<1,0,ROUNDUP(((B29/Input!$C$3/Input!$C$19/Schedule!B30)-B35),0))

    I don't know why you had the >0 in there. But what that does is return either a 0 or 1, not the results of the arithmetic.
    miramss's Avatar
    miramss Posts: 3, Reputation: 1
    New Member
     
    #5

    Apr 4, 2012, 04:11 AM
    The only problem with this calculation is that it produces negative rounded numbers. I would like the negative numbers to round up to 0 (not -1). Do you know of a solution?
    Thanks so much for your help.
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #6

    Apr 4, 2012, 04:29 AM
    Then you need to nest an IF:

    =IF(B29<1,0,IF(((B29/Input!$C$3/Input!$C$19/Schedule!B30)-B35)<0,0,Roundup(((B29/Input!$C$3/Input!$C$19/Schedule!B30)-B35))))

    So, If B29 is <1, you get a 0. Otherwise it does the calculation. If the result of the calculation is less than 0, then it returns a 0 otherwise it returns the rounded calc.
    JBeaucaire's Avatar
    JBeaucaire Posts: 5,426, Reputation: 997
    Software Expert
     
    #7

    Apr 5, 2012, 03:56 PM
    Maybe you can employ the MAX function to make sure it never goes below 0.

    =Roundup(B29/Input!$C$3/Input!$C$19/Schedule!B30)-B35)

    =MAX(0, Roundup(B29/Input!$C$3/Input!$C$19/Schedule!B30)-B35))

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Does Roundup really kill crabgrass? [ 2 Answers ]

I have an area about 20 feet by 30 feet that is infested with crabgrass. It's about 99 percent crabgrass and 1 percent centipede grass. I was told that Roundup would kill the crabgrass. What I wanted to do is completely kill everything in this area and just resod it, hoping that new sod...

Puppy got into Roundup. [ 5 Answers ]

Hi, the family puppy which is a Golden Retriever/Lab/Shepard X found an empty container of roundup out on my parents farm. My dad does not know where she found it, but he caught her chewing on it, and yelled at her. She's 10 months old now, and he said that she was throwing up and wouldn't eat...


View more questions Search