Excel - Rounding a formula to 5?
Excel - Rounding a formula to 5?
Author
Discussion

aprisa

Original Poster:

1,894 posts

288 months

Wednesday 8th June 2005
quotequote all
Ok so I'm thick when it comes to Excel formulae!

Can someone give me the formula to take a third off a number and then round it down to the nearest multiple of 5 to make it easier in monetary terms?

Thanks
Nick

PS I've looked at the MRound etc and get totally confused!

Jay-Aim

598 posts

271 months

Wednesday 8th June 2005
quotequote all
the formula is "ceiling"

CanAm-TT

862 posts

257 months

Wednesday 8th June 2005
quotequote all
=INT(INT((2*A2)/3)/5)*5

where A2 is the original number

CanAm-TT

862 posts

257 months

Wednesday 8th June 2005
quotequote all
The problem with celing is it rounds up, so you need to make it complicated by putting an if statement in there to check if the is the correct one or 5 over

aprisa

Original Poster:

1,894 posts

288 months

Wednesday 8th June 2005
quotequote all
CanAm-TT said:
=INT(INT((2*A2)/3)/5)*5

where A2 is the original number


That's worked a treat, many thanks

Nick

CanAm-TT

862 posts

257 months

Wednesday 8th June 2005
quotequote all
aprisa said:

That's worked a treat, many thanks
Nick


You're more than welcome

buckett

180 posts

276 months

Wednesday 8th June 2005
quotequote all
Or even easier:

=MROUND(B1,5) ... where B1 is the cell with the value that you want to round, and 5 is the multiple that you wish to round by. You have to have the Analysis ToolPak add-in installed.

CanAm-TT

862 posts

257 months

Wednesday 8th June 2005
quotequote all
Yes that is the best method, but not many people have the analysis toolpack loaded.