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!
Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
More than 300 powerful features. Supports Office/Excel
2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features
30-day free trial. 60-day money back guarantee.