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-27T01:24:11+00:00

    re: "what am I missing"

    You are missing the formula.
    You are missing the column the formula is checking.
    You are missing the ability to quickly tell if a number is treated as text,

    . because you have centered values.

    '---
    NLtL

    0 comments No comments
  2. Anonymous
    2021-07-27T02:04:26+00:00

    Thanks for your reply.

    I removed the centering and I am pretty sure the number is treated as number:

    In second table I bumped the value of 85.1 by 0.001 to push the difference just below 0.1, and now it's giving me a PASS. Whereas, as per my formulae it should give me a PASS when the difference is exactly 0.1 too.

    I don't understand what you mean when you say I am missing the column the formula is checking, it's Column "E" Row 21.

    0 comments No comments
  3. Anonymous
    2021-07-27T03:19:30+00:00

    Thanks heaps. Round function fixed it!

    0 comments No comments