The INT function removes the decimal part from positive numbers and returns the whole number (integer) except negative values are rounded down to the nearest integer.
The image above shows how the INT function handles decimal numbers, cell B3 contains 1.9 and the INT function removes the decimal part. However, this is not the case when a negative number is used. Example, -6.1 is rounded down to -7, see cell C10.
5. INT function - convert boolean values to their numerical equivalents
The INT function converts a boolean value to its corresponding number.
TRUE - 1
FALSE - 0 (zero)
Formula in cell C3:
=INT(B3)
This can be used in the MMULT function or SUMPRODUCT function to convert boolean values to numerical equivalents. These functions require numerical values to work, there are more ways to convert boolean values:
The HOUR function lets you calculate the hour value based on an Excel date (and time value), however, you can perform the same calculation using the INT function.
Calendar – monthly view This article describes how to build a calendar showing all days in a chosen month with corresponding scheduled events. What's […]
Days between two dates The DATEDIF function in cell E3 allows you to calculate days between two dates.
Excel calendar [VBA] This workbook contains two worksheets, one worksheet shows a calendar and the other worksheet is used to store events. The […]
Find numbers closest to sum Excelxor is such a great website for inspiration, I am really impressed by this post Which numbers add up to […]
Heat map yearly calendar The calendar shown in the image above highlights events based on frequency. It is made only with a few conditional […]
Permutations with and without repetition I discussed the difference between permutations and combinations in my last post, today I want to talk about two kinds […]
True round-robin tournament Mark G asks in Create a random playlist in excel: Can this example be modified to create a true round-robin […]
Calculates the least common multiple. The least common multiple is the smallest positive integer that is a multiple of all integer arguments. Use the LCM function to find fractions with different denominators.
Allows you to add numerical values, the function returns the sum in the cell it is entered in. The SUM function is cleverly designed to ignore text and boolean values, adding only numbers.
Functions for backward compatibility with earlier Excel versions. Compatibility functions are replaced with newer functions with improved accuracy. Use the new functions if compatibility isn't required.
These functions let you sort, lookup, get external data like stock quotes, filter values based a condition or criteria, and get the relative position of a given value in a specific cell range. They also let you calculate row, column, and other properties of cell references.
Functions that let you manipulate text values, substitute strings, find string in value, extract a substring in a string, convert characters to ANSI code among other functions.
More than 300 Excel functions with detailed information including syntax, arguments, return values, and examples for most of the functions used in Excel formulas.
Excel Tables simplifies your work with data, adding or removing data, filtering, totals, sorting, enhance readability using cell formatting, cell references, formulas, and more.
Allows you to filter data based on selected value , a given text, or other criteria. It also lets you filter existing data or move filtered values to a new location.
Lets the user work more efficiently by showing a list that the user can select a value from. This lets you control what is shown in the list and is faster than typing into a cell.
Lets you name one or more cells, this makes it easier to find cells using the Name box, read and understand formulas containing names instead of cell references.
The Excel Solver is a free add-in that uses objective cells, constraints based on formulas on a worksheet to perform what-if analysis and other decision problems like permutations and combinations.
Format cells or cell values based a condition or criteria, there a multiple built-in Conditional Formatting tools you can use or use a custom-made conditional formatting formula.
Lets you quickly summarize vast amounts of data in a very user-friendly way. This powerful Excel feature lets you then analyze, organize and categorize important data efficiently.
VBA stands for Visual Basic for Applications and is a computer programming language developed by Microsoft, it allows you to automate time-consuming tasks and create custom functions.
How to comment
How to add a formula to your comment
<code>Insert your formula here.</code>
Convert less than and larger than signs
Use html character entities instead of less than and larger than signs.
< becomes < and > becomes >
How to add VBA code to your comment
[vb 1="vbnet" language=","]
Put your VBA code here.
[/vb]
How to add a picture to your comment:
Upload picture to postimage.org or imgur
Paste image link to your comment.
Contact Oscar
You can contact me through this contact form