Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Check if result is an integer?

I want to use Excel for calculation of primes. Is there a way to have Excel
check if the result of a division is an integer (i.e. a whole number, nothing
after the comma) or not? E.g. if 7/3 is integer then display yes else display
no.

I use Windows Office XP
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Check if result is an integer?

=MOD(A1,1)=0

or

=IF(MOD(A4,1)=0,"yes","no")

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"Irdanwen" wrote in message ...
|I want to use Excel for calculation of primes. Is there a way to have Excel
| check if the result of a division is an integer (i.e. a whole number, nothing
| after the comma) or not? E.g. if 7/3 is integer then display yes else display
| no.
|
| I use Windows Office XP


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Check if result is an integer?

=A1=INT(A1)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Irdanwen" wrote in message
...
I want to use Excel for calculation of primes. Is there a way to have

Excel
check if the result of a division is an integer (i.e. a whole number,

nothing
after the comma) or not? E.g. if 7/3 is integer then display yes else

display
no.

I use Windows Office XP



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
Conversion of Numercials to Figure JAGANNATH Excel Worksheet Functions 1 April 4th 06 04:12 PM
Displays the number in text. (One thousand two hundred thirty four Ashish Patel Excel Worksheet Functions 1 March 20th 06 10:27 PM
How to .. sbgvp Excel Discussion (Misc queries) 8 October 4th 05 09:16 PM
excel melissa Excel Worksheet Functions 2 August 19th 05 09:46 PM
Spellnumber Norman Jones Excel Worksheet Functions 6 December 13th 04 08:21 AM


All times are GMT +1. The time now is 03:55 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"