TGViewer
Data Analytics Data Analytics @sqlspecialist ยท 111K subscribers
Post #2967 5.86K
๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ:
You have 2 minutes to solve this Excel problem.

You have the following data:

Employee ID | Employee Name | Department
101 | John | IT
102 | Sarah | HR
103 | Mike | Finance
104 | David | Sales

How would you return the Employee Name for Employee ID 103?

๐— ๐—ฒ: Challenge accepted! ๐Ÿ’ช

=XLOOKUP(103,A2:A5,B2:B5)

๐Ÿ’ก Explanation:
The XLOOKUP() function searches for a value in one column and returns the corresponding value from another column.
โ€ข 103 is the lookup value.
โ€ข A2:A5 is the lookup array containing Employee IDs.
โ€ข B2:B5 is the return array containing Employee Names.
The formula returns Mike.

This challenge tests your understanding of:
โœ… XLOOKUP()
โœ… Lookup Functions
โœ… Data Retrieval

๐ŸŽฏ Expected Output Example
Formula Result
=XLOOKUP(103,A2:A5,B2:B5) Mike

๐Ÿš€ Bonus (For Older Excel Versions)
=INDEX(B2:B5,MATCH(103,A2:A5,0))

Or you can use:
=VLOOKUP(103,A2:C5,2,FALSE)

While VLOOKUP() works, XLOOKUP() is more flexible because it can search both left and right, doesn't require a column index number, and handles missing values more effectively.

๐Ÿš€ Tip for Excel Job Seekers:
Lookup functions are among the most frequently asked Excel interview topics. Be comfortable with:
XLOOKUP()
VLOOKUP()
HLOOKUP()
INDEX() + MATCH()
XMATCH()

Knowing when to use each one can make a big difference in interviews.

โค๏ธ React with โค๏ธ for more interview challenges!
  • โค 10
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 โ†’