Strange Request of Rounding Down against Laws of Mathematics
I've had a strange request. One that defines the laws of Mathematics:
I'm calculating the time difference and then using this formula to round down. However, the formula is following the laws of mathematics and rounding up when it sees an 8 or 9.
=MROUND(ROUNDDOWN(Difference@row), 5)
E.g.
In this example, the requestor needs to round down to 55 always.
Any suggestions?
Best Answer
-
Hello @Jack Parry
=IF([Difference]@row < MROUND([Difference]@row, 5), MROUND(([Difference]@row - 5), 5), MROUND([Difference]@row, 5))
This equation first specifies whether the value was rounded up or down, based on the multiplier. If it was greater, than subtract 5 (being the multiplier) and round that value to the nearest multiple.
This function will ALWAYS round down unless the value is already a multiple of 5.
If the value in the cell is 54, the result will be 50. Not 55.
Answers
-
Hello @Jack Parry
=IF([Difference]@row < MROUND([Difference]@row, 5), MROUND(([Difference]@row - 5), 5), MROUND([Difference]@row, 5))
This equation first specifies whether the value was rounded up or down, based on the multiplier. If it was greater, than subtract 5 (being the multiplier) and round that value to the nearest multiple.
This function will ALWAYS round down unless the value is already a multiple of 5.
If the value in the cell is 54, the result will be 50. Not 55.
-
@MichaelTCA Thank you! this works perfectly! :)
-
Anytime! I'm glad it helped.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.4K Get Help
- 396 Global Discussions
- 213 Industry Talk
- 448 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 133 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 293 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!