Returning an Integer Value.

Confused!

New Member
Joined
Sep 28, 2005
Messages
42
If you want to find the sum of any two numbers, with, say, up to six decimal places, which return an integer as the result, what is the Excel Function that finds that for you?

i.e 24.166382 + -5.332763255 = 18.833618, so FALSE
and
2.157929 + 17.84207054 = 20, so TRUE
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
It's awkward, and they may be a better way, but I have a suggestion. Have a column that adds a very small amount, like .000000001, and has 8 decimal places. Then have a conditional formating column that searches for ".00000001" within the number. An integer would have just the small amount to the right of the decimal point, but a non-integer would have other numbers there as well.

Like I said, squward, but if there isn't a function for it, that may get you what you need.
 
Upvote 0
If you want to find the sum of any two numbers, with, say, up to six decimal places, which return an integer as the result, what is the Excel Function that finds that for you?

i.e 24.166382 + -5.332763255 = 18.833618, so FALSE
and
2.157929 + 17.84207054 = 20, so TRUE
Not sure what you're wanting to do...

Maybe this...

=ROUND(2.157929+17.84207054,0)=20

ROUND(...,0) will round to the nearest integer.

INT(...) will return just the integer with no rounding

INT(2.157929) = 2
INT(17.84207054) = 17
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,634
Members
452,934
Latest member
Jdsonne31

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