INT function in Excel

Excel Date and Time Functions return a dynamic date or time in a cell.

Get age from birthday in Excel

This tutorial shows how to get age from birthday in Excel using example below. If you need to calculate a person’s age from their birth date, you can do so with the YEARFRAC, INT, and TODAY functions. As stated in the formula below, birthdate is the person’s birthday with year, and TODAY supplies the date… read more »

Extract date from a date and time in Excel

This tutorial show how to Extract date from a date and time in Excel using the example below. If you have dates with time values and you want to extract only the date portion, you can use a formula that uses the INT function. Note: Excel handles dates and time using a scheme in which… read more »

Get days, hours, and minutes between dates in Excel

To calculate and display the days, hours, and minutes between two dates, you can use the TEXT function with a little help from the INT function. Alternatively, you can adapt the formula using SUMPRODUCT. Formula =INT(end-start)&” days “&TEXT(end-start,”h”” hrs “”m”” mins “””) Explanation In the example shown, the formula in D5 is: =INT(C5-B5)&” days “&TEXT(C5-B5,”h”” hrs… read more »

Calculate years between dates in Excel

If you want to calculated the number of years between two dates,  then this tutorials is for you. See example below; To calculated the number of years between two dates, you can use the YEARFRAC function, which will return a decimal number representing the fraction of a year between two dates. Here are a few examples… read more »

Round a number to n significant digits in Excel

This tutorials shows how to Round a number to n significant digits in Excel. If you need to round a number to a given (variable) number of specified digits or figures, you can do so with an elegant formula that uses the ROUND and LOG10 functions. Formula =ROUND(number,digits-(1+INT(LOG10(ABS(number))))) Explanation In the example shown, the formula… read more »

Use of INT and TRUNC function in Excel

This example illustrates two functions to chop off decimals in Excel. The INT and the TRUNC function. Int The INT (Integer) function rounds a number down to the nearest integer. Conclusion: the INT function only chops off decimals from positive numbers. Trunc Truncate a number to a given precision. The TRUNC (Truncate) function always chops off decimals. The TRUNC function can keep… read more »

Sidebar