IF function in Excel doesn't work properly

Anonymous
2021-07-27T00:41:50+00:00

Hi,

I have put a simple IF function in my spreadsheet, checking if the cell value is less or equal than 0.1, if true return "PASS" , otherwise return "FAIL". But the equal condition doesn't seem to take effect:

I used the same formulae and pointed it to a cell in which I simply typed 0.1 and it worked fine. However, it doesn't want to work when it is pointing to a cell whose value is result of another function.

Does anyone have any idea what I am missing here?

Cheers, Leyla

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Anonymous
    2021-07-27T02:01:36+00:00

    Just an idea:

    =IF(ABS(E21)<=0.1,"Pass", "Fail")

    I might apply Round to the cell to take care of small precision errors, as the function may actually hold a value like 0.1000001

    1 person found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2021-07-27T03:22:01+00:00

    Thank you. It was indeed a non-zero digit at 11th decimal place

    0 comments No comments