You have 2 minutes to solve this Excel problem.
You have the following data:
Employee ID | Employee Name | Sales
--- | --- | ---
101 | John | 12,000
102 | Sarah | 18,000
103 | Mike | 15,000
104 | David | 20,000
How would you return "Yes" if an employee's sales are greater than or equal to 15,000, otherwise return "No"?
๐ ๐ฒ: Challenge accepted! ๐ช
=IF(C2>=15000,"Yes","No")
๐ก Explanation:
The IF() function checks whether a condition is true or false.
C2>=15000 checks if the sales value is at least 15,000.
If the condition is TRUE, Excel returns "Yes".
If the condition is FALSE, Excel returns "No".
๐ฏ Expected Output Example
+----------+--------+----------+
| Employee | Sales | Eligible |
+----------+--------+----------+
| John | 12,000 | No |
| Sarah | 18,000 | Yes |
| Mike | 15,000 | Yes |
| David | 20,000 | Yes |
+----------+--------+----------+
๐ Bonus (Using Nested IF)
=IF(C2>=20000,"Excellent", IF(C2>=15000,"Good","Needs Improvement"))
This formula categorizes employees into three performance levels:
โข Excellent โ Sales โฅ 20,000
โข Good โ Sales โฅ 15,000
โข Needs Improvement โ Sales < 15,000
๐ The IF() function is one of the most frequently asked Excel interview topics. Once you're comfortable with it, practice:
IFS()
IFERROR()
AND()
OR()
SWITCH()
These logical functions are widely used in reports, dashboards, and business decision-making.
โค๏ธ React with โค๏ธ for more Excel interview challenges!