
The Google Sheets IF statement lets a cell choose its own answer. It checks a condition and returns one value when the condition is true and another when it is false. This guide shows the basic IF formula, then IF with multiple conditions using AND, OR, IFS and nested IF, with short examples you can copy.
Google Sheets IF statement: the basic formula
The syntax is =IF(test, value_if_true, value_if_false). Suppose column B holds exam scores and you want Pass for 50 or more:
=IF(B2>=50,"Pass","Fail")
If B2 is 50 or higher, the cell shows Pass. Otherwise it shows Fail. This is the answer to "how to make an if then statement in Google Sheets": the test is the "if", the second value is the "then" and the third value is the "else". Text results go in quotes. Numbers do not need quotes.


Google Sheets IF statement with text and blank cells
- Match text.
=IF(A2="Done","Yes","No")checks whether A2 says Done. Text is not case sensitive here. - Check for a blank cell.
=IF(A2="","Missing","OK")shows Missing when A2 is empty. - Between two numbers.
=IF(AND(B2>=10,B2<=20),"In range","Out of range").
Google Sheets IF statement with two conditions: AND and OR
To test two conditions at once, put AND or OR inside the IF:
=IF(AND(B2>=50,C2="Yes"),"Pass","Fail") =IF(OR(B2>=90,C2="Bonus"),"Reward","-")
AND returns true only when every condition is true. OR returns true when at least one condition is true. This covers most Google Sheets IF formula multiple conditions questions. You can list more than two conditions inside AND or OR, separated by commas.

Google Sheets IF statement with 3 conditions: IFS and nested IF
When you need three or more different outcomes, such as grades, use IFS:
=IFS(B2>=90,"A",B2>=70,"B",B2>=50,"C",TRUE,"F")
IFS checks the tests in order and returns the value of the first true one. The last pair, TRUE,"F", works as a default for everything else. The older way is a nested IF, where one IF sits inside another:
=IF(B2>=90,"A",IF(B2>=70,"B",IF(B2>=50,"C","F")))
Both give the same result. IFS is easier to read when you have many outcomes.

Google Sheets IF statement: color a cell or use a dropdown
An IF formula returns a value but does not change colors. To color a cell, use conditional formatting with a custom formula. Our guide to Google Sheets conditional formatting based on another cell shows the steps. To make an IF formula react to a dropdown, point the test at the dropdown cell, for example =IF(D2="Done","Closed","Open"). See the Google Sheets drop down list guide to create one.
Google Sheets IF statement: common questions
How do I use IF with multiple conditions in Google Sheets?
Wrap the conditions in AND when all must be true, or OR when one is enough, and place that inside IF. For many outcomes, use IFS.
Why does my IF formula return an error?
The usual causes are a missing quote around text, a missing bracket or a wrong separator between arguments. Some regional settings use a semicolon instead of a comma.
Can IF return a formula or a number?
Yes. The true and false values can be text, numbers, cell references or other formulas, for example =IF(B2>100,B2*0.1,0).
Related guides on Smart Work Tools
Count and add by condition with Google Sheets SUMIF examples. Use IF with tick boxes in the Google Sheets checkbox guide, or ask AI for formulas with our ChatGPT Excel formula prompts.

No comments:
Post a Comment