Help me round this plz

yfzracer912

New Member
Joined
Dec 1, 2009
Messages
1
I have an Excel project for school and I cant figure out how to round a number(digit) if its odd or even. Example:

rounding rules for values ending in 5: 2.765--> 2.76 number preceding the 5 is even, round down

but 2.775--> 2.78 number preceding the 5 is odd, round up

Do I have to use Clever round? I am lost on this one.

Thanks.
 

Some videos you may like

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

MickG

MrExcel MVP
Joined
Jan 9, 2008
Messages
14,841
Hi, Perhaps something like :-!!
Code:
 =IF(MOD( LEFT(RIGHT(A1,2),1),2)-0,ROUNDUP(A1,2), ROUNDDOWN(A1,2))
Regards Mick
<TABLE style="WIDTH: 48pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=64 border=0 x:str><COLGROUP><COL style="WIDTH: 48pt" width=64><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-RIGHT: #e0dfe3; BORDER-TOP: #e0dfe3; BORDER-LEFT: #e0dfe3; WIDTH: 48pt; BORDER-BOTTOM: #e0dfe3; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" width=64 height=17 x:str="'=IF(MOD( LEFT(RIGHT(A1,2),1),2)-0,ROUNDUP(A1,2), ROUNDDOWN(A1,2))"></TD></TR></TBODY></TABLE>
 

SteveO59L

Well-known Member
Joined
Apr 21, 2004
Messages
7,896
Similar

=IF(MOD((MID(H75,FIND(".",H75)+1,2)*1),2)=0,ROUNDDOWN(H75,2),ROUNDUP(H75,2))
 

Watch MrExcel Video

Forum statistics

Threads
1,122,721
Messages
5,597,752
Members
414,171
Latest member
12Rev79

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