ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Identify Whole Number (https://www.excelbanter.com/excel-discussion-misc-queries/257253-identify-whole-number.html)

ileanardz

Identify Whole Number
 
How can excel identify a number when it is whole or it has decimals.

I am doing an IF function.

E.I.
If(A1=WHOLE NUMBER, YES, NO)

Is there some way?

Luke M[_4_]

Identify Whole Number
 
=IF(A1=INT(A1),TRUE,FALSE)

--
Best Regards,

Luke M
"ileanardz" wrote in message
...
How can excel identify a number when it is whole or it has decimals.

I am doing an IF function.

E.I.
If(A1=WHOLE NUMBER, YES, NO)

Is there some way?




Bob I

Identify Whole Number
 
=IF(INT(A1)=A1,"YES","NO")

ileanardz wrote:

How can excel identify a number when it is whole or it has decimals.

I am doing an IF function.

E.I.
If(A1=WHOLE NUMBER, YES, NO)

Is there some way?



T. Valko

Identify Whole Number
 
=A1=INT(A1)

--
Biff
Microsoft Excel MVP


"Luke M" wrote in message
...
=IF(A1=INT(A1),TRUE,FALSE)

--
Best Regards,

Luke M
"ileanardz" wrote in message
...
How can excel identify a number when it is whole or it has decimals.

I am doing an IF function.

E.I.
If(A1=WHOLE NUMBER, YES, NO)

Is there some way?






ileanardz

Identify Whole Number
 
On Feb 24, 11:27*am, ileanardz wrote:
How can excel identify a number when it is whole or it has decimals.

I am doing an IF function.

E.I.
If(A1=WHOLE NUMBER, YES, NO)

Is there some way?


Thank you all.

While you were answer me, I searched and found what I need he

http://groups.google.com/group/micro...97b20 9ccd85b

Thanks a lot!

Allen

Identify Whole Number
 
how about
=if(rounddown(a1,0)=a1,"Yes","No").

Rounddown will round a number down to the specified number of digits.

Allen.

"ileanardz" wrote:

How can excel identify a number when it is whole or it has decimals.

I am doing an IF function.

E.I.
If(A1=WHOLE NUMBER, YES, NO)

Is there some way?
.



All times are GMT +1. The time now is 05:17 AM.

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