Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
When an IF formula is not working, it either returns the wrong branch (true when false is expected or vice versa), returns a #VALUE! error, or always returns the same branch regardless of the test value. The logical_test is the most common source of bugs — it evaluates to an unexpected TRUE or FALSE.
=IF(A2=1,Pass,Fail)=IF(A2=1,"Pass","Fail")Pass and Fail without quotes are interpreted as named ranges which do not exist, causing #NAME?. Wrapping them in double quotes makes them text literals.
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Stop hunting errors by hand.
Upload your spreadsheet and the Auditor flags every IF and broken formula at once — or paste this one formula and get the fix explained.
The cell likely contains a number stored as text. =IF(A2=100,...) will go to false if A2 holds the text "100". Use =IF(VALUE(A2)=100,...) or convert the column to numbers.
Wrap conditions in AND() or OR(): =IF(AND(A2>0,B2="Active"),"Yes","No"). For many conditions, consider IFS which avoids deep nesting.
Yes. The value_if_true and value_if_false can be any valid expression: =IF(A2>0,SUM(B2:B10),AVERAGE(C2:C10)). There is no need to quote formula results.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: