ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Check if a number is an integer or not (and using that in an IF) (https://www.excelbanter.com/excel-discussion-misc-queries/454165-check-if-number-integer-not-using-if.html)

[email protected]

Check if a number is an integer or not (and using that in an IF)
 
Hi.

I'm searching for a way to check if a number is an integer and use it as the logical expression for IF().

Is that a thing?

[email protected]

Check if a number is an integer or not (and using that in an IF)
 
On Wednesday, September 19, 2018 at 3:33:03 PM UTC+2, wrote:
Hi.

I'm searching for a way to check if a number is an integer and use it as the logical expression for IF().

Is that a thing?


Like, I'm not trying to get an integer from any number, just trying to find out if a number is an integer or not.

dpb

Check if a number is an integer or not (and using that in an IF)
 
On 9/19/2018 8:33 AM, wrote:
Hi.

I'm searching for a way to check if a number is an integer and use it as the logical expression for IF().


Any number of ways one can do this, one is

=ROUND(A1,0)=A1

where A1 is the cell containing the number of interest.

--




All times are GMT +1. The time now is 12:50 PM.

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