Round the calculation result ignoring the integer

DeniseL

New Member
Joined
Jun 4, 2008
Messages
8
Can someone please help me correct my following formula so that it rounds only on the decimals, not on the integer. As it is now, '>=0.51' looks at the entire number and I need it to only look at the decimals.

=IF(CH8<>2,"",IF((CE8/3)-(CF8/3*2)>=0.51,ROUNDDOWN((CE8/3)-(CF8/3*2),0),ROUNDUP((CE8/3)-(CF8/3*2),0)))

Thanks in advance for any help.
DeniseL
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
If I'm understanding you correctly, perhaps:

=IF(CH8<>2,"",IF((CE8/3)-(CF8/3*2)-INT((CE8/3)-(CF8/3*2))>=0.51,ROUNDDOWN((CE8/3)-(CF8/3*2),0),ROUNDUP((CE8/3)-(CF8/3*2),0)))
 
Upvote 0
for mvptomlinson absolutely perfect, it did exactly what I needed it to do. Many thanks. DeniseL
 
Upvote 0

Forum statistics

Threads
1,214,808
Messages
6,121,686
Members
449,048
Latest member
81jamesacct

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