LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld
 
Posts: n/a
Default Is there a way for excel to recognise that €0.00 = 0 for the purposes IF function ?

On Sun, 5 Mar 2006 15:32:03 -0600, CmTaz
wrote:

Furthermore it also appears that even in a simple IF function excel
does not recognise ¤0.00 as 0. eg if I put in =IF(A!=0,"yes","no") and
A1 contains ¤0.00 it gives the value of no. If I put it as
=IF(A!=¤0.00,"yes","no") it is invalid and finally for
=IF(A!="¤0.00","yes","no") it again shows no.


I assume where you've typed A! above you really mean A1.

What, exactly, is in A1?

In other words, what shows in the formula bar when you select A1?

If A1 truly contains a value of zero, then your first formula will return
"yes".

The usual problem with the sort of result you're describing is that what you
think is zero really is not. Usually that's because the value is derived from
a formula, and the inherent problems with decimal-binary conversions and 15
decimal digit precision (inherent in most every computer spreadsheet program)
result in a number that's off a little bit from zero.

Some errors are due to mixing text and numeric values, which may look the same,
but are not. You must ensure that the values you are comparing are both
numeric (or both text). Else you will get unexpected results.

There are a number of solutions. One way is to check the rounded (to two
decimal) value to see if it's equal to zero.

e.g. =IF(ROUND(A1,2)=0,"Yes","No")


--ron


 
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
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
Need a ISWorkday Function -- Any Ideas Mark Excel Worksheet Functions 5 March 29th 05 01:58 AM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 05:28 AM.

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"