IF function returns the "value if false" whether input is true or false

Anonymous
2025-05-19T13:19:46+00:00

Hi,

I'm trying to use the IF function for the first time but the function always returns the second value, the "value if false," regardless of whether the input is true or false. When I hover my cursor over my formula Excel says that 0 is the "value if true" and 10 is the "value if false," but when I actually use the formula that's not what I get - only tens even though I'm not inputting only falses.

What am I doing wrong?

Thank you.

Microsoft 365 and Office | Excel | For home | 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. HansV 462.4K Reputation points MVP Volunteer Moderator
    2025-05-19T13:27:49+00:00

    Column C does not contain "Yes" (or "No") but TRUE (or FALSE). So the formula in D2 should be

    =IF(C2, 0, 10)

    then fill down, or

    =IF(C2:C100, 0, 10)

    to populate D2:D100 in one go.

    You might also use

    =10*NOT(C2:C100)

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2025-05-19T13:32:35+00:00

    Perfect, thank you!

    0 comments No comments