Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Can using If Formula differentiate number with decimal or do not

The case is like this. I'm doing an analysis that the result will come out as
2 numbers. One with any number with decimal (e.g. 123.456799) and the other
one will come out as integra number (e.g. 1 2 3 4 5 and so on without
decimal). The one with no decimal is the correct answer. When recognising the
no. with no decimal, I want Excel to automatically insert another no. in
other cell. Please help. Thanks a lot friends.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Can using If Formula differentiate number with decimal or do not

=If(INT(A1)=A1, "Integer","Not Integer")

NickHK

"ShamsulZ" wrote in message
...
The case is like this. I'm doing an analysis that the result will come out

as
2 numbers. One with any number with decimal (e.g. 123.456799) and the

other
one will come out as integra number (e.g. 1 2 3 4 5 and so on without
decimal). The one with no decimal is the correct answer. When recognising

the
no. with no decimal, I want Excel to automatically insert another no. in
other cell. Please help. Thanks a lot friends.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Can using If Formula differentiate number with decimal or do not

What are the rules for how the other number is derived?

--
HTH

Bob Phillips

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

"ShamsulZ" wrote in message
...
The case is like this. I'm doing an analysis that the result will come out

as
2 numbers. One with any number with decimal (e.g. 123.456799) and the

other
one will come out as integra number (e.g. 1 2 3 4 5 and so on without
decimal). The one with no decimal is the correct answer. When recognising

the
no. with no decimal, I want Excel to automatically insert another no. in
other cell. Please help. Thanks a lot friends.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Can using If Formula differentiate number with decimal or do not

Thanks a lot to Nick HK. Bob pls refer the formula that Nick gave. Cheers!

"ShamsulZ" wrote:

The case is like this. I'm doing an analysis that the result will come out as
2 numbers. One with any number with decimal (e.g. 123.456799) and the other
one will come out as integra number (e.g. 1 2 3 4 5 and so on without
decimal). The one with no decimal is the correct answer. When recognising the
no. with no decimal, I want Excel to automatically insert another no. in
other cell. Please help. Thanks a lot friends.

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
SUMPRODUCT formula to differentiate between Negative and Positive carol Excel Discussion (Misc queries) 2 May 7th 08 04:39 PM
Formula to differentiate between product lines bchappell Excel Discussion (Misc queries) 13 May 2nd 08 03:17 PM
VB Function Needed - Differentiate between a number and a characte Iffy Functionality Excel Programming 2 August 30th 06 07:07 PM
Converting 2-place decimal value to floating point decimal number with leading zero Kermit Piper Excel Discussion (Misc queries) 3 March 18th 06 06:20 PM
Differentiate between Number and Date? Merle Excel Discussion (Misc queries) 11 January 16th 06 08:46 AM


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