Int function

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
It depends on your definition of opposite...

To Me, INT returns the value to the left of the decimal..
I would think the opposite of that is to return the value to the right of the decimal..

=MOD(J9,1)

However, with Negative values, INT seems to round down, so INT(-2.3) would be -3


Hope that helps.
 
Upvote 0
Do you mean just return the decimals?

=J9-INT(J9)
 
Upvote 0
So, in effect, you want to round up? The usual trick is:

Code:
=INT(J9)+.5

But that should have the same effect as your original post. Or:

Code:
=CEILING(J9,1)

Which says, "Round up to the nearest multiple of 1". Ceiling is a nifty function...
 
Upvote 0
Then =INT(J9)+1 will work just fine..

Or perhaps
=ROUNDUP(J9,0)
Or
=CEILING(A1,1)
 
Upvote 0
Maybe ...

=ceiling(j9, 1)

=roundup(j9, 0)

EDIT: =INT(j9)+1 will convert an integer to the next higher integer.
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,799
Members
452,943
Latest member
Newbie4296

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