Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
MWG MWG is offline
external usenet poster
 
Posts: 1
Default How can I tell if a number is a whole number?

I want to take a list of numbers and see if they are divisable by 5. If they
are, then the division would return a whole number. I want to create an IF
statement that lets let me know if the number was or was not a whole number
and therefore divisible by 5. I can do the math but I can not find a
function that tells me if the results of the division were a whole number.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default How can I tell if a number is a whole number?

=IF(MOD(A1,5)=0,"divisible by 5","not divisible by 5")
--
David Biddulph

"MWG" wrote in message
...
I want to take a list of numbers and see if they are divisable by 5. If
they
are, then the division would return a whole number. I want to create an
IF
statement that lets let me know if the number was or was not a whole
number
and therefore divisible by 5. I can do the math but I can not find a
function that tells me if the results of the division were a whole number.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default How can I tell if a number is a whole number?

=IF(MOD(A1,1)=0,"whole number","not whole number")

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"David Biddulph" <groups [at] biddulph.org.uk wrote in message ...
| =IF(MOD(A1,5)=0,"divisible by 5","not divisible by 5")
| --
| David Biddulph
|
| "MWG" wrote in message
| ...
| I want to take a list of numbers and see if they are divisable by 5. If
| they
| are, then the division would return a whole number. I want to create an
| IF
| statement that lets let me know if the number was or was not a whole
| number
| and therefore divisible by 5. I can do the math but I can not find a
| function that tells me if the results of the division were a whole number.
|
|


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
countif formula to find the occurances of a number that is greater than one number but less than another steveo Excel Discussion (Misc queries) 3 July 8th 06 02:04 AM
convert text-format number to number in excel 2000%3f Larry Excel Discussion (Misc queries) 1 July 29th 05 08:18 PM
Count number of times a specific number is displayed in a cell ran subs Excel Worksheet Functions 1 June 27th 05 05:01 PM
excel format cells/Number/Category: Number problem Matts Excel Discussion (Misc queries) 5 December 9th 04 09:47 PM
Rounding a number to a multiple quantity that adds to a fixed total number wjlo Excel Worksheet Functions 1 November 9th 04 04:43 PM


All times are GMT +1. The time now is 04:29 PM.

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

About Us

"It's about Microsoft Excel"