+ Reply to Thread
Results 1 to 5 of 5

Another Rounding Question

  1. #1
    Registered User
    Join Date
    10-03-2007
    Posts
    31

    Another Rounding Question

    Ok, different problem. I have now been using the rounding function and things have been going a lot smoother. I now have a need to round two different parts to the same formula, and I can't. I am asuming that Excel won't let you round twice.

    I am using:
    =((D4-4)*12)/(ROUNDUP((((D4-4)*12)/64),0))

    But need to round the answer up again, tried to make it:
    =ROUND((D4-4)*12)/(ROUNDUP((((D4-4)*12)/64),0)), 0

    with no luck, Excel yells.

    Maybe there is a way to simplify the formula? the *12 is for converting feet into inches and the answer can be left into inches, just rounded to the nearest inch.

    THANKS AGAIN!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Your parens are off. Write the first formula,

    = xxx

    Then wrap it with the second Round:

    = Round(xxx, 0)

    And you have more than you need; the result simplifies to,

    =ROUND( (D4-4) *12 / ( ROUNDUP( ( (D4-4) * 12 ) / 64, 0 ) ), 0)
    Last edited by shg; 10-04-2007 at 06:18 PM.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Seems like a bit of an odd calculation to me, what's it supposed to do? What sort of values do you have in D4?

  4. #4
    Registered User
    Join Date
    10-03-2007
    Posts
    31
    shg: thanx for the reworked formula...looks much better, will plug it in tommorrow and it should do the trick!

    daddylonglegs: I am taking a length subtracting the ends (2 ft.), and from the center evenly spacing points out back to the 2ft mark.

    The figure in D4 changes each time I run the calculations.

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    OK, I think I get it now, thanks for the explanation....

    ....here's a slightly different way....

    =ROUND((D4-4)/CEILING((D4-4)/64,1/12),0)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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