![]() |
check if a number is integer or fraction
how to creat formela to find out if A1 ( for example ) is integer or fraction ?
|
Answer: check if a number is integer or fraction
Explanation of the formula: - ISNUMBER(A1) checks if the value in cell A1 is a number. - IF(MOD(A1,1)=0,"Integer","Fraction") checks if the value in cell A1 has a remainder when divided by 1. If the remainder is 0, the value is an integer. If the remainder is not 0, the value is a fraction. - "Not a number" is displayed if the value in cell A1 is not a number. You can drag the formula down to apply it to other cells in the column. |
check if a number is integer or fraction
=A1=INT(A1)
will be true for integers, false otherwise. -- Gary''s Student - gsnu200776 |
All times are GMT +1. The time now is 05:17 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com