ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   What function tests for whole number (no decimals)? (https://www.excelbanter.com/excel-worksheet-functions/174447-what-function-tests-whole-number-no-decimals.html)

Andrew R

What function tests for whole number (no decimals)?
 
How do you evaluate a cell that has two decimals places so that whole numbers
(no decimal places) is "True" and anything with values other that zeros to
the right of the dot evalute to "False"?

Ron Coderre[_2_]

What function tests for whole number (no decimals)?
 
Try:

=INT(A1)=A1
or
=MOD(A1,1)=0

Does that help?
------------------
Regards,

Ron
Microsoft MVP (Excel)
(xl2003, XP Pro)


"Andrew R" <Andrew wrote in message
...
How do you evaluate a cell that has two decimals places so that whole
numbers
(no decimal places) is "True" and anything with values other that zeros to
the right of the dot evalute to "False"?





All times are GMT +1. The time now is 05:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com