Rounding up for a decimal

S

Sena

Hi, is there a way to round up to the nearest 0.50 ?
eg: 2.23 should be rounded to 2.50 & 2.65 should get rounded to 3.00
 
J

joeu2004

Hi, is there a way to round up to the nearest 0.50 ?
eg: 2.23 should be rounded to 2.50 & 2.65 should get rounded to 3.00

There may be several ways. One way:

=0.5*roundup(A1/0.5, 0)

where A1 contains the number (2.23).

Caveat: you might be surprised when "3.00" is rounded up to 3.50
because, perhaps, "3.00" is merely the rounded displayed value of
3.001, for example. The following should remedy that problem:

=0.5*roundup(round(A1)/0.5, 0)
 

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