Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Andrew
 
Posts: n/a
Default Calculation within IF function

I searched b-boards for previous comments, but I didn't see any.

The calculator on my desk says that 5625*0.07 = 393.75.

=IF(5625*0.07-393.75=0,"WIN",5625*0.07-393.75)

Why does Excel think the subtraction in the above agrument is not zero, but
some infinitesimally small number? If typed into Excel, this will not
display WIN.

Any comments?
  #2   Report Post  
cmart02
 
Posts: n/a
Default

Wrap the calculatioin with the function ROUND in order to get the precision
you need:

ROUND(5625*0.07-393.75,0)=0

If you type =5625*0.07-393.75=0 in a cell Excel returns FALSE, thus, causing
the problem you're encoutering.

Regards,
Robert
  #3   Report Post  
Andrew
 
Posts: n/a
Default

Thanks for the prompt response.

"cmart02" wrote:

Wrap the calculatioin with the function ROUND in order to get the precision
you need:

ROUND(5625*0.07-393.75,0)=0

If you type =5625*0.07-393.75=0 in a cell Excel returns FALSE, thus, causing
the problem you're encoutering.

Regards,
Robert

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
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 01:00 AM
Find a Function to use accross different worksheets R. Hale Excel Worksheet Functions 3 November 25th 04 07:07 AM
change function variable prompts?? thinkingfield Excel Worksheet Functions 1 November 8th 04 04:01 PM
Counting Function Dilemma Simon Lloyd Excel Worksheet Functions 0 November 8th 04 03:13 PM


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