Are there any formulas for us to check if the number in a cell is integer in a worksheet? I need the cell will display True if the number integer, on the contrary, it will display False. How do we test if a numerical value in given cell is an integer in Excel?
Check if the number is integer with formulas in Excel
To check if the given number is integer or not, here are some formulas may help you. Please do as follows:
1. In a blank cell, please type this simple formula: =int(A1)=A1, see screenshot:
2. Then drag the fill handle over to the cells that you want to apply this formula, and the integer cells and blank cells are displayed as True, other cells are displayed as False, see screenshot:
With above formula, the blank cells are also displayed True, if you want to ignore the blank cells, here is another formula: =IF(LEN(A1),MOD(A1,1)=0,""), then press Enter key and copy down the formula to the cells you need, you will get the following result:
Insert or generate multiple numbers, dates, times or text strings randomly
With Kutools for Excel's Insert Random Data feature, you can insert multiple numbers, decimals, dates, times or text strings randomly as soon as possible in Excel sheet. Click to download Kutools for Excel!