Noble Excel Functions

Jtucker10278

Board Regular
Joined
May 14, 2017
Messages
61
I was looking for the formula to only return whole numbers from and equation. TRUNC seemed to fit my needs but I couldn't find any examples of it being used in a formula only as a standalone for converting an existing number.

granted it took me only 1 try to figure it out

=Trunc(A1*B1)

but at that point I was already halfway down the rabbit hole., and now I am curious if there are any stand alone functions in Excel that won't interact with any other Functions.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
What does "stand-alone" mean?
I believe all functions interact with each other as long as the inputs are valid.
 
Upvote 0
Code:
=INT(A1*B1)
3 less letters to type!!!!!
 
Upvote 0
jolivanes raises a good point though. Do you have any negative numbers and what do you want to happen when converting to a whole number with negative numbers.

Book3
ABCD
4Initial Value=TRUNC(A5)=INT(A5)=ROUNDDOWN(A5,0)
5-4.3-4-5-4
6-4.6-4-5-4
74.3444
84.6444
95.3555
105.6555
Sheet1
Cell Formulas
RangeFormula
B4:D4B4=FORMULATEXT(B5)
B5:B10B5=TRUNC(A5)
C5:C10C5=INT(A5)
D5:D10D5=ROUNDDOWN(A5,0)
A7:A8A7=-A5
 
Last edited:
Upvote 0
INT is going to round the number while TRUNC won't.
If you want rounding and say a number like -4.6 should round up to -4 and 4.6 should round up to 5
then I would do this:
=-INT(-A1*B1)
 
Upvote 0
Excel has a lot of functions to convert a number to an integer. INT, TRUNC, FLOOR.MATH, CEILING.MATH, ROUND, MROUND, ROUNDUP, ROUNDDOWN. Even these don't encompass the whole world of rounding. There's Argentina rounding, Swiss rounding, or Banker's rounding. It's probably best if you can give some examples of numbers, and what you want the results to be, and why.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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