+ Reply to Thread
Results 1 to 3 of 3

Calculation within IF function

  1. #1
    Andrew
    Guest

    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. #2
    cmart02
    Guest

    RE: Calculation within IF function

    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. #3
    Andrew
    Guest

    RE: Calculation within IF function

    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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1