View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
joeu2004 joeu2004 is offline
external usenet poster
 
Posts: 2,059
Default Rounding up for a decimal

On Jul 8, 10:38 pm, Sena wrote:
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)