ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Rounding up for a decimal (https://www.excelbanter.com/excel-worksheet-functions/149411-rounding-up-decimal.html)

Sena

Rounding up for a decimal
 
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
--
Cheers !

T. Valko

Rounding up for a decimal
 
One way:

A1 = 2.23

=CEILING(A1,0.5)

--
Biff
Microsoft Excel MVP


"Sena" wrote in message
...
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
--
Cheers !




joeu2004

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)


Sena

Rounding up for a decimal
 
Thanks it worked !
--
Cheers !


"T. Valko" wrote:

One way:

A1 = 2.23

=CEILING(A1,0.5)

--
Biff
Microsoft Excel MVP


"Sena" wrote in message
...
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
--
Cheers !





T. Valko

Rounding up for a decimal
 
You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Sena" wrote in message
...
Thanks it worked !
--
Cheers !


"T. Valko" wrote:

One way:

A1 = 2.23

=CEILING(A1,0.5)

--
Biff
Microsoft Excel MVP


"Sena" wrote in message
...
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
--
Cheers !








All times are GMT +1. The time now is 10:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com