Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default 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?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default 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.
  #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.

--


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
check if a number is integer or fraction Munir from Qatar New Users to Excel 2 April 5th 23 02:54 PM
Check if content in cell is an integer prem New Users to Excel 6 May 1st 08 01:54 PM
Check if content in cell is an integer Mike H New Users to Excel 0 May 1st 08 09:53 AM
Check if result is an integer? Irdanwen Excel Worksheet Functions 2 October 25th 06 12:30 PM
Check if a value is an integer using VBA code Rayo K Excel Programming 5 August 3rd 06 09:42 PM


All times are GMT +1. The time now is 11:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"