Excel: Function to Determine If Number is Real or IntegerLast reviewed: November 2, 1994Article ID: Q61275 |
The information in this article applies to:
SUMMARYThe following is a worksheet function that will determine whether a number is real or an integer:
=IF(TRUNC(A1)=A1,"Integer","Real") MORE INFORMATIONNote that this function will return a #VALUE! error if A1 contains text and "Integer" if A1 is empty. An integer is a number that does not have a fractional value (for example, 8). A real number may contain a fractional value (for example, 5.24).
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |