View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
dpb dpb is offline
external usenet poster
 
Posts: 109
Default 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.

--