How to check if the number is integer in Excel?
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
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:
Note:
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!
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!
Related article:
How to compare if multiple cells are equal in Excel?
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!