Welcome to Soft32 Forums!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Round number up or down to nearest 5 or 10?

 
   Soft32 Home -> Mac -> Excel RSS
Next:  Date Calculation Error in Target Cell  
Author Message
ouxi

External


Since: Aug 25, 2003
Posts: 1



(Msg. 1) Posted: Mon Aug 25, 2003 4:22 am
Post subject: Round number up or down to nearest 5 or 10?
Archived from groups: microsoft>public>mac>office>excel (more info?)

I know I can use ROUND(14,-1) to get the number 14 to round to 10 or 18
to round to 20...
but is there a way to get the number to round to the nearest 5 or 0 in
the singles digit? Ie. have 14 round to 15 and 18 still round to 20?

Thanks
Back to top
Login to vote
Bernard REY

External


Since: Aug 27, 2003
Posts: 11



(Msg. 2) Posted: Mon Aug 25, 2003 6:52 am
Post subject: Re: Round number up or down to nearest 5 or 10? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

ouxi wrote :

> I know I can use ROUND(14,-1) to get the number 14 to round to 10 or 18
> to round to 20...
> but is there a way to get the number to round to the nearest 5 or 0 in
> the singles digit? Ie. have 14 round to 15 and 18 still round to 20?

If you have the Analysis Tool Pack add-in (Tools -> Add-ins) installed,
there is a "MROUND" function you can use. So you can write "=MROUND(A1,5)"

If the workbook has to be sent over (to people who won't necessarily have
the add-in installed) you can also use "=ROUND(A1*2,-1)/2"

I Guess that would do Smile


---------------------------------------------------------
Please reply to the newsgroup, and within the same thread.
Merci de répondre au groupe, et dans l'enfilade.

--
Bernard Rey - Toulouse / France
MVP - Macintosh
Back to top
Login to vote
Display posts from previous:   
       Soft32 Home -> Mac -> Excel All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
 Windows
 Linux
  Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]