0
0
Google Sheetsspreadsheet~20 mins

IF function in Google Sheets - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
IF Function Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
Output of nested IF formula
What is the output of the formula =IF(A1>10, IF(A1<20, "Medium", "High"), "Low") when cell A1 contains the value 15?
A"Medium"
B"Low"
C"High"
D15
Attempts:
2 left
💡 Hint
Think about the first IF condition and then the nested IF inside it.
Function Choice
intermediate
2:00remaining
Choose the correct IF formula for grading
You want to assign grades based on scores in cell B2: "Pass" if score is 50 or more, otherwise "Fail". Which formula correctly does this?
A=IF(B2=50, "Pass", "Fail")
B=IF(B2&gt;50, "Pass", "Fail")
C=IF(B2&lt;50, "Fail", "Pass")
D=IF(B2&gt;=50, "Pass", "Fail")
Attempts:
2 left
💡 Hint
Remember the condition includes scores equal to 50.
📊 Formula Result
advanced
2:00remaining
Result of IF with AND condition
Given the formula =IF(AND(A1>0, B1<5), "Yes", "No"), what is the result if A1=3 and B1=7?
A"No"
B"Yes"
CTRUE
DFALSE
Attempts:
2 left
💡 Hint
Both conditions inside AND must be true for the IF to return "Yes".
🎯 Scenario
advanced
2:00remaining
Using IF to categorize sales
You have sales amounts in cell C2. You want to categorize sales as "Low" if less than 100, "Medium" if between 100 and 500 (inclusive), and "High" if above 500. Which formula correctly categorizes the sales?
A=IF(C2&lt;100, "Low", IF(C2&gt;=100, IF(C2&lt;=500, "Medium", "High"), "High"))
B=IF(C2&lt;100, "Low", IF(C2&gt;=100, IF(C2&gt;500, "High", "Medium"), "Medium"))
C=IF(C2&lt;100, "Low", IF(C2&lt;=500, "Medium", "High"))
D=IF(C2&lt;100, "Low", IF(C2&gt;=100, IF(C2&lt;=500, "Medium", "High")))
Attempts:
2 left
💡 Hint
Think about the order of conditions and how IF evaluates them.
data_analysis
expert
2:00remaining
Count how many cells meet IF condition
You have a list of numbers in cells A1:A10. You want to count how many numbers are greater than 50 using an IF formula inside another function. Which formula gives the correct count?
A=COUNTIF(A1:A10, ">50")
B=SUM(IF(A1:A10&gt;50, 1, 0))
C=IF(SUM(A1:A10&gt;50), COUNT(A1:A10), 0)
D=SUMPRODUCT(IF(A1:A10&gt;50, 1))
Attempts:
2 left
💡 Hint
Think about how IF returns arrays and how SUM can add them up.