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)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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?
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.
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)
Perfect, thank you!