Help with rounding formula

Spanz712

New Member
Joined
Sep 29, 2011
Messages
2
Hi there,
I am in desperate need of some help with a formula that is driving me crazy!
I am creating a rostering tool for my company and we want to do a rounding technique which I am having issues with.
What we are getting is number rounded to 1 decimal. We want to round that number to its nearest '.5'.
The rules are:
1. Range is .0 to .29 - the number is rounded down to .0
I.E. 4.15 would be 4
2. Range is 0.3 to .69 - the number is either rounded up or down to .5
I.E. 3.38 and 3.60 would be 3.5
3. Range is .7 and .99 - the number is rounded up to .0
I.E. 5.80 would be 6

Is this possible to do in one formula??? If not, what else could I do??
Thanks!
Hannah
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
<b>Excel 2003</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th><th>B</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style="text-align: right;;">50.73</td><td style="text-align: right;;">51</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: right;;">80.78</td><td style="text-align: right;;">81</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: right;;">99.22</td><td style="text-align: right;;">99</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: right;;">51.99</td><td style="text-align: right;;">52</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;">39.39</td><td style="text-align: right;;">39.5</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: right;;">40.8</td><td style="text-align: right;;">41</td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;">42.23</td><td style="text-align: right;;">42</td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style="text-align: right;;">60.44</td><td style="text-align: right;;">60.5</td></tr><tr ><td style="color: #161120;text-align: center;">9</td><td style="text-align: right;;">28.01</td><td style="text-align: right;;">28</td></tr><tr ><td style="color: #161120;text-align: center;">10</td><td style="text-align: right;;">88.78</td><td style="text-align: right;;">89</td></tr><tr ><td style="color: #161120;text-align: center;">11</td><td style="text-align: right;;">13.88</td><td style="text-align: right;;">14</td></tr><tr ><td style="color: #161120;text-align: center;">12</td><td style="text-align: right;;">63.51</td><td style="text-align: right;;">63.5</td></tr><tr ><td style="color: #161120;text-align: center;">13</td><td style="text-align: right;;">62.81</td><td style="text-align: right;;">63</td></tr><tr ><td style="color: #161120;text-align: center;">14</td><td style="text-align: right;;">86.91</td><td style="text-align: right;;">87</td></tr><tr ><td style="color: #161120;text-align: center;">15</td><td style="text-align: right;;">85.31</td><td style="text-align: right;;">85.5</td></tr><tr ><td style="color: #161120;text-align: center;">16</td><td style="text-align: right;;">17.27</td><td style="text-align: right;;">17</td></tr><tr ><td style="color: #161120;text-align: center;">17</td><td style="text-align: right;;">20.37</td><td style="text-align: right;;">20.5</td></tr><tr ><td style="color: #161120;text-align: center;">18</td><td style="text-align: right;;">100.38</td><td style="text-align: right;;">100.5</td></tr><tr ><td style="color: #161120;text-align: center;">19</td><td style="text-align: right;;">65.31</td><td style="text-align: right;;">65.5</td></tr><tr ><td style="color: #161120;text-align: center;">20</td><td style="text-align: right;;">29.41</td><td style="text-align: right;;">29.5</td></tr><tr ><td style="color: #161120;text-align: center;">21</td><td style="text-align: right;;">61.18</td><td style="text-align: right;;">61</td></tr><tr ><td style="color: #161120;text-align: center;">22</td><td style="text-align: right;;">25.73</td><td style="text-align: right;;">26</td></tr><tr ><td style="color: #161120;text-align: center;">23</td><td style="text-align: right;;">96.9</td><td style="text-align: right;;">97</td></tr><tr ><td style="color: #161120;text-align: center;">24</td><td style="text-align: right;;">57.14</td><td style="text-align: right;;">57</td></tr><tr ><td style="color: #161120;text-align: center;">25</td><td style="text-align: right;;">33.3</td><td style="text-align: right;;">33</td></tr><tr ><td style="color: #161120;text-align: center;">26</td><td style="text-align: right;;">1.95</td><td style="text-align: right;;">2</td></tr><tr ><td style="color: #161120;text-align: center;">27</td><td style="text-align: right;;">42.78</td><td style="text-align: right;;">43</td></tr><tr ><td style="color: #161120;text-align: center;">28</td><td style="text-align: right;;">93.1</td><td style="text-align: right;;">93</td></tr><tr ><td style="color: #161120;text-align: center;">29</td><td style="text-align: right;;">41.67</td><td style="text-align: right;;">41.5</td></tr><tr ><td style="color: #161120;text-align: center;">30</td><td style="text-align: right;;">53.82</td><td style="text-align: right;;">54</td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">B1</th><td style="text-align:left">=CHOOSE(<font color="Blue">LOOKUP(<font color="Red">MOD(<font color="Green">A1,1</font>)*100,{0,1;30,2;70,3}</font>),ROUNDDOWN(<font color="Red">A1,0</font>),ROUNDDOWN(<font color="Red">A1,0</font>)+0.5,ROUNDUP(<font color="Red">A1,0</font>)</font>)</td></tr></tbody></table></td></tr></table><br />
 
Upvote 0
Glad I could help. Someone may have a better, cleaner formula. In the meantime, feel free to use the one I provided (it works).
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,681
Members
452,937
Latest member
Bhg1984

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