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

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Good afternoon Jack Schitt

Try this formula :

=CEILING(A1,0.5)

HTH

DominicB
 
Upvote 0
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))
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,715
Members
448,985
Latest member
chocbudda

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
Back
Top