TGViewer
MS Excel for Data Analysis MS Excel for Data Analysis @excel_analyst ยท 73.3K subscribers
Post #2075 5.85K
๐Ÿš€ Excel Interview Questions with Answers โ€” Part 4

31. How do you use VLOOKUP and what are its limitations?
VLOOKUP searches for a value in the first column of a table and returns a value from another column.

Syntax:
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

Example:
=VLOOKUP(A2,D2:F10,3,FALSE)

Meaning:
โ€ข Search value in A2
โ€ข Look in table D2:F10
โ€ข Return value from 3rd column
โ€ข FALSE = exact match

๐Ÿ“Œ Example: Find employee salary using employee ID.

Limitations of VLOOKUP:
โŒ Searches only left to right
โŒ Column number must be counted manually
โŒ Breaks if columns are inserted/deleted
โŒ Slower on very large datasets

โœ… Modern alternative: XLOOKUP or INDEX + MATCH

32. How do you use HLOOKUP?
HLOOKUP searches horizontally across rows.

Syntax:
=HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])

Example:
=HLOOKUP("Jan",A1:F3,2,FALSE)

๐Ÿ“Œ This searches for "Jan" in the first row and returns data from the second row.

Use Case:
Monthly reports where months are arranged horizontally.

33. How do you use INDEX + MATCH for flexible lookups?
INDEX + MATCH is more flexible and powerful than VLOOKUP.

MATCH
Finds position of a value.
=MATCH(A2,D2:D10,0)

INDEX
Returns value from a position.
=INDEX(E2:E10,3)

Combined Formula:
=INDEX(E2:E10,MATCH(A2,D2:D10,0))

๐Ÿ“Œ Example: Lookup salary using employee ID.

Advantages:
โœ… Can lookup left or right
โœ… More dynamic
โœ… Safer when columns change
โœ… Faster on large datasets

34. How do you use XLOOKUP (if available)?
XLOOKUP is the modern replacement for VLOOKUP.

Syntax:
=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found])

Example:
=XLOOKUP(A2,D2:D10,E2:E10,"Not Found")

๐Ÿ“Œ Searches employee ID and returns salary.

Advantages:
โœ… Searches both directions
โœ… No column counting
โœ… Built-in error handling
โœ… Easier syntax
โœ… More efficient

35. How do you use IF with AND / OR conditions?
AND
Returns TRUE only if all conditions are true.

Example:
=IF(AND(A1>=50,B1>=50),"Pass","Fail")

๐Ÿ“Œ Student passes only if both subjects are above 50.

OR
Returns TRUE if any condition is true.

Example:
=IF(OR(A1>=90,B1>=90),"Bonus","No Bonus")

๐Ÿ“Œ Bonus given if any score exceeds 90.

36. How do you use SUMIF, SUMIFS for conditional sums?
SUMIF
Adds values based on one condition.

Syntax:
=SUMIF(range,criteria,sum_range)

Example:
=SUMIF(A:A,"East",B:B)

๐Ÿ“Œ Sums sales only for East region.

SUMIFS
Handles multiple conditions.

Example:
=SUMIFS(C:C,A:A,"East",B:B,"Laptop")

๐Ÿ“Œ Sums laptop sales in East region.

37. How do you use COUNTIF, COUNTIFS for conditional counts?
COUNTIF
Counts cells matching one condition.
=COUNTIF(A:A,"Yes")

๐Ÿ“Œ Counts all โ€œYesโ€ entries.

COUNTIFS
Counts using multiple conditions.
=COUNTIFS(A:A,"East",B:B,"Laptop")

๐Ÿ“Œ Counts laptop orders in East region.

38. How do you use AVERAGEIF, AVERAGEIFS?
AVERAGEIF
Calculates average based on one condition.
=AVERAGEIF(A:A,"East",B:B)

๐Ÿ“Œ Average sales in East region.

AVERAGEIFS
Uses multiple conditions.
=AVERAGEIFS(C:C,A:A,"East",B:B,"Laptop")

๐Ÿ“Œ Average laptop sales in East region.

39. How do you use COUNTBLANK, COUNTUNIQUE-style techniques?
COUNTBLANK
Counts empty cells.
=COUNTBLANK(A1:A20)

๐Ÿ“Œ Useful for finding missing data.

Count Unique Values (Older Excel):
=SUM(1/COUNTIF(A1:A10,A1:A10))

Modern Excel:
=COUNTA(UNIQUE(A1:A10))

๐Ÿ“Œ Counts unique customers/products/etc.

40. How do you use SUMPRODUCT for weighted calculations?
SUMPRODUCT multiplies arrays and returns the total.

Basic Example:
=SUMPRODUCT(A1:A5,B1:B5)

๐Ÿ“Œ Multiplies corresponding values and sums them.

Weighted Average Formula:
Weighted Average = SUM(xแตข * wแตข) / SUM(wแตข)

Double Tap โค๏ธ For Part-5
  • โค 23
More from @excel_analyst
  1. Oct 13, 2026๐Ÿ“Š Excel Interview Questions โ€” Part 1 1๏ธโƒฃ What is the difference between VLOOKUP and XLOOKโ€ฆ
  2. Oct 13, 2026๐—ง๐—ข๐—ฃ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ข๐—จ๐—ฅ๐—ฆ๐—˜๐—ฆ ๐—ง๐—ข ๐—•๐—ข๐—ข๐—ฆ๐—ง ๐—ฌ๐—ข๐—จ๐—ฅ ๐—ฆ๐—ž๐—œ๐—Ÿ๐—Ÿ๐—ฆ ๐—œ๐—ก ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ! Explorโ€ฆ
  3. Oct 12, 2026๐Ÿ“Š Excel Shortcuts โ€” Part 7 This part focuses on Paste Special, Go To Special & Advanced Pโ€ฆ
  4. Oct 12, 2026๐Ÿš€ ๐—ช๐—ต๐—ถ๐—ฐ๐—ต ๐—ง๐—ฒ๐—ฐ๐—ต ๐—ฆ๐—ธ๐—ถ๐—น๐—น ๐—ช๐—ถ๐—น๐—น ๐—ฌ๐—ผ๐˜‚ ๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ? Want to builโ€ฆ
  5. Oct 10, 2026๐Ÿ“Š Excel Shortcuts โ€” Part 6 This part focuses on Worksheet & Sheet Management shortcuts โ€”โ€ฆ
  6. Oct 9, 2026Hey guys, Today, Iโ€™m covering some Excel interview questions that often pop up in data anaโ€ฆ
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 โ†’