0
0
Excelspreadsheet~20 mins

Data validation rules in Excel - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Data Validation Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
Data Validation: Restrict to Whole Numbers Between 1 and 100
You want to create a data validation rule in Excel that only allows whole numbers between 1 and 100 inclusive in cell A1. Which formula should you use in the data validation custom formula box?
A=AND(ISNUMBER(A1), A1>=1, A1<=100)
B=OR(A1>=1, A1<=100, MOD(A1,1)=0)
C=AND(ISNUMBER(A1), A1>=1, A1<=100, MOD(A1,1)=0)
D=AND(A1>1, A1<100, ISNUMBER(A1))
Attempts:
2 left
💡 Hint
Remember to check that the number is whole and within the range.
Function Choice
intermediate
2:00remaining
Choose the Correct Data Validation Formula for Date Range
You want to restrict input in cell B2 to dates between January 1, 2023 and December 31, 2023. Which formula correctly enforces this in data validation?
A=AND(ISDATE(B2), B2>=DATE(2023,1,1), B2<=DATE(2023,12,31))
B=AND(ISNUMBER(B2), B2>=DATE(2023,1,1), B2<=DATE(2023,12,31))
C=OR(B2>=DATE(2023,1,1), B2<=DATE(2023,12,31))
D=AND(B2>=DATE(2023,1,1), B2<=DATE(2023,12,31))
Attempts:
2 left
💡 Hint
Excel stores dates as numbers, so check for numbers in the date range.
🎯 Scenario
advanced
2:00remaining
Prevent Duplicate Entries in a Column Using Data Validation
You want to prevent users from entering duplicate values in column C (from C2 downwards). Which data validation formula should you apply to cell C2 and then copy down to enforce this?
A=COUNTIF($C$2:$C$100, C2)=1
B=COUNTIF(C:C, C2)>1
C=COUNTIF($C$2:$C$100, C2)<1
D=COUNTIF($C$2:$C$100, C2)>0
Attempts:
2 left
💡 Hint
Count how many times the current value appears in the range.
data_analysis
advanced
2:00remaining
Analyze the Effect of This Data Validation Formula
What is the effect of applying this data validation formula to cell D5?

=ISNUMBER(D5)*AND(D5>0, D5<100)
AAllows only numbers between 1 and 99 inclusive
BAllows any number greater than 0 and less than 100
CCauses an error because ISNUMBER returns TRUE/FALSE and AND returns TRUE/FALSE, multiplying them is invalid
DAllows only numbers greater than 0 and less than 100, but excludes non-numbers
Attempts:
2 left
💡 Hint
Remember TRUE is treated as 1 and FALSE as 0 in Excel calculations.
🧠 Conceptual
expert
2:00remaining
Identify the Error in This Data Validation Formula
You apply this formula in data validation for cell E1:

=IF(E1>10, TRUE, FALSE)

What will happen when a user enters 5 in E1?
AThe entry 5 will be rejected because the formula returns FALSE
BThe formula causes a circular reference error because it refers to the cell being validated
CThe entry 5 will be accepted because IF always returns TRUE or FALSE which Excel treats as valid
DThe entry 5 will be accepted because data validation ignores IF formulas
Attempts:
2 left
💡 Hint
Data validation formulas must return TRUE to accept input.