Conditional rounding to the nearest .5

Jack Schitt

New Member
Joined
Jan 24, 2006
Messages
2
Ok, let's see if I can state the problem correctly. I'm trying to find a good way to round a decimal number UP to the neaest .5 increment. Here's some examples of the data and what I want to return within the cell equation:

DATA............RETURN (what I'm try to do)
3.4298..........3.5
4.1678..........4.5
2.7345..........3.0
4.0012..........4.5

the data shown above is part of a calculated equation as follows (example): =(C546+H546)/24/2. How can I round up to the nearest .5 increment???

Thanks for any help!

Jack
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

DominicB

Well-known Member
Joined
Oct 3, 2005
Messages
1,569
Good afternoon Jack Schitt

Try this formula :

=CEILING(A1,0.5)

HTH

DominicB
 

xapie128

Board Regular
Joined
Aug 26, 2006
Messages
82
Note that negative numbers will result in an error.
If you anticipate having negative values, use:
Code:
=IF(A1>=0,CEILING(A1,0.5),CEILING(A1,-0.5))
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,128
Messages
5,857,531
Members
431,884
Latest member
Gcmoore63

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top