Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

rounding question

Status
Not open for further replies.

ACtrafficengr

Civil/Environmental
Jan 5, 2002
1,641
I'm looking for a way to round a value down to the next lower multiple of 5. For example, 39 is rounded to 35, not 40.

MROUND will round to the nearest multiple of 5. 39 will be rounded to 40.
ROUNDDOWN will round down to the nearest 10. 39 will be rounded to 30.

MROUND(n-2.5,5) seems to work. Any other ideas how to do this?

"...students of traffic are beginning to realize the false economy of mechanically controlled traffic, and hand work by trained officers will again prevail." - Wm. Phelps Eno, ca. 1928

"I'm searching for the questions, so my answers will make sense." - Stephen Brust

 
Replies continue below

Recommended for you

=FLOOR(X, 5)

Where "X" is the value you want rounded down.
 
Perfect!

Thank you!

"...students of traffic are beginning to realize the false economy of mechanically controlled traffic, and hand work by trained officers will again prevail." - Wm. Phelps Eno, ca. 1928

"I'm searching for the questions, so my answers will make sense." - Stephen Brust

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor