Conditional round up

AsparagusTips

New Member
Joined
Apr 21, 2015
Messages
2
I want to round up a figure in a document. The figure needs to round up to the nearest integer but only if it is greater than or equal to x.2 and round down if less than x.2 and return a whole number only which could be any where between 0 and 500. So 3.14 rounds down and 7.26 rounds up. Any help would be appreciated as my current set of formulas uses about 7 calculations. Something easy that makes less of a mess is desired. COuld anyone help with this please?
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Okay... try using below formula which I have tested on cell A1:-


=IFERROR(IF(MID(A1,SEARCH(".",A1),15)*1<0.2,LEFT(A1,SEARCH(".",A1)-1)*1,(LEFT(A1,SEARCH(".",A1)-1)+1)*1),A1)



Regards,
DILIPandey
 
Upvote 0
Okay... try using below formula which I have tested on cell A1:-


=IFERROR(IF(MID(A1,SEARCH(".",A1),15)*1<0.2,LEFT(A1,SEARCH(".",A1)-1)*1,(LEFT(A1,SEARCH(".",A1)-1)+1)*1),A1)



Regards,
DILIPandey

You Sir, DILIPandey, are amazing. Thank you, that worked fantastically! My colleagues are amazed.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

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