#1
|
|||
|
|||
Rounding to nearest 0.25
I have a table of task durations which have been calculated from actual dimensions (length, area etc) which are then divided by the expected outputs to get a total duration.
This gives me a column of numbers representing task durations in days. To use this, I need to round up each duration to the nearest quarter day to avoid problems. In this case if I had 2.1, 2.224, 2.06, all would need to be rounded to 2.25, and 2.55, 2.7, 2.6 would need to be rounded up to 2.75. Tasks are all below 20 days, so range is 0-20. Thanks in advance |
#2
|
|||
|
|||
I just solved this- suffered from a case of number blindness at the last hurdle I was trying to use mround but it rounded to the nearest 0.25- I used an IF statement so that if the new value was less than the original it moved it up a band.
Yay! |
#3
|
||||
|
||||
You also have the CEILING function
=CEILING(B22,0.25)
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#4
|
|||
|
|||
Thanks- much easier than my solution!
The biggest problem I have with Excel is not knowing the functions. While it often has an easy way out, if you don't know about it, you are unlikely to find it. Google gave me mround and I figured out the IF statement, but didn't throw up ceiling as an alternative. |
#5
|
||||
|
||||
That's understandable. There are lots of functions, and each versions has it's new ones.
And I supposed you guessed that if there is a CEILING function, there also is a FLOOR function :-)
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#6
|
||||
|
||||
More easily understood for most people:
=ROUND(A1*4,0)/4 Works with ROUNDUP & ROUNDDOWN, too.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Word not 'rounding' letters up to word in next line (parents and orphans) | Asa | Word | 4 | 09-13-2014 06:47 PM |
Rounding values inconsistent | required_username | Excel | 10 | 06-05-2014 05:35 AM |
Custom formatting code - rounding problem | venkys4u | Excel | 1 | 08-14-2012 07:45 PM |
Standard Dev. Rounding - Excel | judicial85 | Excel | 1 | 08-28-2011 05:41 PM |
Federal financial rounding? | markg2 | Excel | 6 | 05-26-2010 09:54 AM |