Round Function

M

Michelle

Help!

I'm trying to figure out which function will round a whole
number up or down to the nearest 100 without using
seperate roundup or round down function. The function or
calculation needs to be the same for all cells.

Example:

241 should round down to 200
156 should round up to 200

Any ideas?

Michelle
 
R

Ron Rosenfeld

Help!

I'm trying to figure out which function will round a whole
number up or down to the nearest 100 without using
seperate roundup or round down function. The function or
calculation needs to be the same for all cells.

Example:

241 should round down to 200
156 should round up to 200

Any ideas?

Michelle

=ROUND(num,-2)


--ron
 
T

Tushar Mehta

While you've already received an answer to your specific problem, the
general apporach to round the number m to a multiple of n is
=ROUND(m/n,0)*n. So, in your case, =ROUND(m/100)*100 would work.

One can use any meaningful function in place of ROUND -- TRUNC or INT
come to mind.

--
Regards,

Tushar Mehta, MS MVP -- Excel
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions
 

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