floor/ceiling alternative

J

Jo

Hi
I need to round a number to the nearest 20, but unlike
floor or ceiling I want to round up or down.
eg. 29 =20 and 33 =40.
If there is not a worksheet function to do this may be
someone could suggest some VBA code.
Thanks
Jo
 
B

Bob Phillips

Jo,

Worksheet functions do it simply enough. Try

=ROUND(A1/20,0)*20

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top