Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
decimal seperator
 
Posts: n/a
Default how to diferentiate integers with decimals in the IF formulas


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default how to diferentiate integers with decimals in the IF formulas

decimal seperator wrote:
Subject: how to diferentiate integers with decimals in the IF formulas


I think your question is: how to recognize integral numbers.
One answer:

=IF(INT(A1) = A1, "integral number", "non-integral number")

Caveat: If A1 is the result of a formula that involves non-integral
numbers, the result might appear to be an integral number in
the cell, but it really is not. In that case, it might be better to
write:

=IF(ABS(A1-INT(A1)) < 1E-6, "integral number", "non-integral number")

where you might choose something other than 1E-6, depending
on your tolerance or cell format.

Alternatively, you might set the option Tools Options
Calculation Percision as Displayed. But that might have
unexpected consequences.

Etiquette note: In the future, always include text in your
message, even if it simply repeats the subject line. Some
newsgroup readers do not show the entire subject line.
Some newsgroup readers do not permit replies to postings
with null text(!).

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
paste formulas between workbooks without workbook link ron Excel Discussion (Misc queries) 3 April 22nd 23 08:11 AM
Array Formulas take waaaay too long... belly0fdesire Excel Worksheet Functions 7 August 8th 05 10:11 PM
Problem with named formula's nathan Excel Worksheet Functions 0 January 21st 05 04:07 PM
How to make Excel run limited number of formulas on a given worksh John Excel Discussion (Misc queries) 0 January 12th 05 04:29 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM


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