0
0
Excelspreadsheet~20 mins

Conditional formatting with dates in Excel - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Date Formatting Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
Highlight dates older than 30 days
You want to highlight cells in column A that contain dates older than 30 days from today using conditional formatting. Which formula should you use?
A=TODAY()-A1>30
B=A1>30-TODAY()
C=A1<TODAY()-30
D=A1+30<TODAY()
Attempts:
2 left
💡 Hint

Think about how to compare the date in the cell to today's date minus 30 days.

Function Choice
intermediate
2:00remaining
Choose the right function to highlight weekends
You want to apply conditional formatting to highlight dates in column B that fall on weekends (Saturday or Sunday). Which formula correctly identifies weekends?
A=ISOWEEKNUM(B1)>5
B=WEEKDAY(B1,1)<6
C=DAY(B1)>5
D=WEEKDAY(B1,2)>5
Attempts:
2 left
💡 Hint

Remember that the WEEKDAY function returns a number representing the day of the week.

🎯 Scenario
advanced
2:00remaining
Highlight dates within the next 7 days
You want to highlight dates in column C that are coming up within the next 7 days, including today. Which conditional formatting formula will do this correctly?
A=AND(C1>=TODAY(), C1<=TODAY()+7)
B=C1>TODAY()+7
C=C1<TODAY()-7
D=OR(C1<TODAY(), C1>TODAY()+7)
Attempts:
2 left
💡 Hint

Use a formula that checks if the date is between today and 7 days from today.

📊 Formula Result
advanced
2:00remaining
Identify expired dates
You have a list of expiration dates in column D. You want to highlight all dates that have already passed (before today). What formula should you use in conditional formatting?
A=D1>TODAY()
B=D1<TODAY()
C=D1=TODAY()
D=D1>=TODAY()
Attempts:
2 left
💡 Hint

Think about dates that are earlier than today.

data_analysis
expert
3:00remaining
Count highlighted dates using conditional formatting
You applied conditional formatting with the formula =E1>=TODAY() to highlight dates in column E that are today or in the future. How can you count how many dates are highlighted without manually counting?
A=COUNTIF(E:E, ">="&TODAY())
B=COUNT(E:E)-COUNTIF(E:E, ">="&TODAY())
C=SUMPRODUCT(--(E1:E100<TODAY()))
D=COUNTIF(E:E, "<"&TODAY())
Attempts:
2 left
💡 Hint

Use a function that counts cells meeting the same condition as the formatting formula.