Rounding - but not as you know it.

kgkev

Well-known Member
I have a column of decimal number that I want to round to the nearest whole number.

However I don't want to round at the half way point.

If the number is 0.25 - 0.99 I want to round up.

If it is 0.01-0.24 I want to round down.

How do I do this?

Example of my numbers

0.7407407 UP
0.5185185 UP
13.5111111 UP
7.7777778 UP
2.6740741 UP
6.8888889 UP
1.5925926 UP
4.845679 UP
0.4876543 UP
10.0111111 DOWN!!!!!
8.9027778 UP
3.9814815 UP

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Andrew Poulsom

MrExcel MVP
Isn't it eg?

=ROUND(A1+0.25,0)

njimack

Well-known Member
=if(a1-int(a1)>=0.25,roundup(a1,0),rounddown(a1,0))

kgkev

Well-known Member
I always imagine its going to be a nice complicated forumla.

Thanks for that!!

kgkev

Well-known Member
=if(a1-int(a1)>=0.25,roundup(a1,0),rounddown(a1,0))

Thats more like it!!!!

Probably stick with Andrews though...

Replies
3
Views
362
Replies
6
Views
1K
Replies
3
Views
283
Replies
8
Views
257
Replies
0
Views
305

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.

1,163,585
Messages
5,832,601
Members
430,144
Latest member
bruno92

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.

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

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