TGViewer
Data Analytics Data Analytics @sqlspecialist ยท 111K subscribers
Post #2978 6.02K
๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ:
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!
  • โค 25
More from @sqlspecialist
  1. Oct 7, 2026๐Ÿ“Š Kandinsky 6.0 Video: AI-Powered Content Creation for Analysts The new Kandinsky 6.0 Vidโ€ฆ
  2. Oct 7, 2026Alternatively, depending on the Excel version and requirement, I could use functions suchโ€ฆ
  3. Oct 7, 2026๐Ÿ“Š Data Analyst Interview Series โ€” Part 5 Guys, let's continue our Data Analyst Interviewโ€ฆ
  4. Oct 7, 2026๐Ÿš€๐—ฃ๐—ฎ๐˜† ๐—”๐—ณ๐˜๐—ฒ๐—ฟ ๐—ฃ๐—น๐—ฎ๐—ฐ๐—ฒ๐—บ๐—ฒ๐—ป๐˜ ๐—ง๐—ฟ๐—ฎ๐—ถ๐—ป๐—ถ๐—ป๐—ด | ๐—•๐—ฒ๐—ฐ๐—ผ๐—บ๐—ฒ ๐—ฎ ๐—™๐˜‚๐—น๐—น๐˜€๐˜๐—ฎ๐—ฐโ€ฆ
  5. Oct 7, 2026๐Ÿ”Ÿ What is the difference between UNION and JOIN? Sample Answer: "JOIN combines columns frโ€ฆ
  6. Oct 7, 2026๐Ÿ“Š Data Analyst Interview Series โ€” Part 4 Guys, let's continue our Data Analyst Interviewโ€ฆ
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’