Skip to content

Latest commit

 

History

History
1014 lines (810 loc) · 22.3 KB

File metadata and controls

1014 lines (810 loc) · 22.3 KB

100 Excel Interview Questions for Data Analytics

Basic to Intermediate Questions

1. What is the difference between an Excel workbook and a worksheet?

Answer:
A workbook is an Excel file that contains one or more worksheets. A worksheet is a single spreadsheet within a workbook where data is entered and analyzed.


2. How do you use the VLOOKUP function in Excel?

Answer:
The VLOOKUP function searches for a value in the first column of a table and returns a value in the same row from another column. Example:

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

3. How do you use the IF function in Excel?

Answer:
The IF function returns one value if a condition is true and another value if it's false. Example:

=IF(condition, value_if_true, value_if_false)

4. What is conditional formatting and how is it used in Excel?

Answer:
Conditional formatting allows you to apply specific formatting to cells that meet certain criteria. It's used to highlight important information, trends, and outliers in data.


5. How do you use the INDEX and MATCH functions together?

Answer:
The INDEX function returns the value of a cell at a given position in a range. The MATCH function returns the relative position of a value in a range. Together, they can be used as an alternative to VLOOKUP. Example:

=INDEX(range, MATCH(lookup_value, lookup_range, match_type))

6. How do you use the SUMIF function in Excel?

Answer:
The SUMIF function adds all numbers in a range that meet a specified condition. Example:

=SUMIF(range, criteria, [sum_range])

7. What is the purpose of the CONCATENATE function?

Answer:
The CONCATENATE function joins two or more text strings into one string. Example:

=CONCATENATE(text1, text2, ...)

8. How do you use the TEXT function in Excel?

Answer:
The TEXT function converts a value to text in a specified number format. Example:

=TEXT(value, format_text)

9. Explain the use of the SUMPRODUCT function.

Answer:
The SUMPRODUCT function multiplies corresponding components in given arrays and returns the sum of those products. Example:

=SUMPRODUCT(array1, array2, ...)

10. How do you use the HLOOKUP function?

Answer:
The HLOOKUP function searches for a value in the top row of a table and returns a value in the same column from another row. Example:

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

11. How do you use the COUNTIF function?

Answer:
The COUNTIF function counts the number of cells that meet a specified condition. Example:

=COUNTIF(range, criteria)

12. What is the purpose of the RANK function?

Answer:
The RANK function returns the rank of a number in a list of numbers. Example:

=RANK(number, ref, [order])

13. How do you use the OFFSET function in Excel?

Answer:
The OFFSET function returns a reference to a range that is a specified number of rows and columns from a cell or range of cells. Example:

=OFFSET(reference, rows, cols, [height], [width])

14. Explain the use of the DATEDIF function.

Answer:
The DATEDIF function calculates the difference between two dates in years, months, or days. Example:

=DATEDIF(start_date, end_date, unit)

15. How do you use the IFERROR function?

Answer:
The IFERROR function returns a value if an error is found in a formula, otherwise it returns the result of the formula. Example:

=IFERROR(value, value_if_error)

16. What is the purpose of the CLEAN function in Excel?

Answer:
The CLEAN function removes all non-printable characters from text. Example:

=CLEAN(text)

17. How do you use the FIND and SEARCH functions in Excel?

Answer:
The FIND function returns the starting position of a substring within a text string, case-sensitive. The SEARCH function is similar but case-insensitive. Example:

=FIND(find_text, within_text, [start_num])
=SEARCH(find_text, within_text, [start_num])

18. How do you use the SUBSTITUTE function in Excel?

Answer:
The SUBSTITUTE function replaces occurrences of a specified substring within a text string with another substring. Example:

=SUBSTITUTE(text, old_text, new_text, [instance_num])

19. What is the purpose of the LEFT, MID, and RIGHT functions in Excel?

Answer:
These functions extract a specified number of characters from a text string. Example:

=LEFT(text, [num_chars])
=MID(text, start_num, num_chars)
=RIGHT(text, [num_chars])

20. How do you use the LEN function in Excel?

Answer:
The LEN function returns the number of characters in a text string. Example:

=LEN(text)

21. What is the use of the ROUND, ROUNDUP, and ROUNDDOWN functions?

Answer:
These functions round a number to a specified number of digits. Example:

=ROUND(number, num_digits)
=ROUNDUP(number, num_digits)
=ROUNDDOWN(number, num_digits)

22. How do you use the LARGE and SMALL functions?

Answer:
The LARGE function returns the k-th largest value in a data set, and the SMALL function returns the k-th smallest value. Example:

=LARGE(array, k)
=SMALL(array, k)

23. Explain the use of the DATE and TIME functions.

Answer:
The DATE function returns the serial number of a date, and the TIME function returns the serial number of a particular time. Example:

=DATE(year, month, day)
=TIME(hour, minute, second)

24. How do you use the NETWORKDAYS function?

Answer:
The NETWORKDAYS function returns the number of whole working days between two dates. Example:

=NETWORKDAYS(start_date, end_date, [holidays])

25. What is the purpose of the EOMONTH function?

Answer:
The EOMONTH function returns the serial number for the last day of the month a specified number of months before or after a date. Example:

=EOMONTH(start_date, months)

26. How do you use the INDIRECT function in Excel?

Answer:
The INDIRECT function returns the reference specified by a text string. It can be used to create dynamic ranges and references. Example:

=INDIRECT(ref_text, [a1])

27. Explain the use of the PMT function.

Answer:
The PMT function calculates the payment for a loan based on constant payments and a constant interest rate. Example:

=PMT(rate, nper, pv, [fv], [type])

28. How do you use array formulas in Excel?

Answer:
Array formulas perform multiple calculations on one or more items in an array. To enter an array formula, press Ctrl+Shift+Enter. Example:

{=SUM(A1:A10*B1:B10)}

29. How do you use the AGGREGATE function in Excel?

Answer:
The AGGREGATE function performs various calculations (like SUM, AVERAGE, COUNT) while ignoring errors and hidden rows. Example:

=AGGREGATE(function_num, options, array, [k])

30. How do you use the XLOOKUP function?

Answer:
The XLOOKUP function searches a range or array, and returns an item corresponding to the first match it finds. If a match doesn’t exist, then XLOOKUP can return the closest (approximate) match. Example:

=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])

Intermediate to Advanced Questions

Here is a sample table for the following questions:

Product Region Sales Date Category Discount Quantity Cost Revenue Profit
A North 5000 2024-01-01 Electronics 10% 100 4500 5500 1000
B South 7000 2024-01-05 Furniture 5% 150 6000 7500 1500
C East 4000 2024-01-10 Clothing 20% 200 3000 5000 2000
D West 6000 2024-01-15 Electronics 15% 120 5000 7000 2000
E North 8000 2024-01-20 Furniture 10% 180 7000 9000 2000

31. How do you calculate the total revenue using the sample table above?

Answer:
To calculate the total revenue, use the SUM function. Example:

=SUM(I2:I6)

32. How do you find the product with the highest sales using the sample table?

Answer:
Use the INDEX and MATCH functions together. Example:

=INDEX(A2:A6, MATCH(MAX(C2:C6), C2:C6, 0))

33. How do you calculate the average discount offered in the sample table?

Answer:
Use the AVERAGE function. Example:

=AVERAGE(F2:F6)

34. How do you count the number of products sold in the North region using the sample table?

Answer:
Use the COUNTIF function. Example:

=COUNTIF(B2:B6, "North")

35. How do you calculate the total profit for Electronics category using the sample table?

Answer:
Use the SUMIF function. Example:

=SUMIF(E2:E6, "Electronics", J2:J6)

36. How do you use the PIVOT function to summarize sales data by region?

Answer:
Use the PivotTable feature to create a summary of sales by region. Example:

  1. Select the table range.
  2. Go to Insert > PivotTable.
  3. Drag "Region" to the Rows area and "Sales" to the Values area.

37. How do you calculate the revenue per unit sold for each product using the sample table?

Answer:
Divide the Revenue by the Quantity. Example:

=I2/G2

38. How do you calculate the percentage of total sales each product contributes using the sample table?

Answer:
Divide each product's sales by the total sales and format as a percentage. Example:

=C2/SUM(C2:C6)

39. How do you identify the region with the highest total profit using the sample table?

Answer:
Use a PivotTable to sum the profit by region and identify the highest value. Example:

  1. Select the table range.
  2. Go to Insert > PivotTable.
  3. Drag "Region" to the Rows area and "Profit" to the Values area.

40. How do you use the INDEX and MATCH functions to find the sales of a specific product based on its name in the sample table?

Answer:
Use INDEX and MATCH functions to return sales for a given product. Example:

=INDEX(C2:C6, MATCH("B", A2:A6, 0))

41. How do you use array formulas to calculate the total sales for each category using the sample table?

Answer:
Use SUMPRODUCT function with array formulas. Example:

=SUMPRODUCT((E2:E6="Electronics")*(C2:C6))

42. How do you use the OFFSET function to create a dynamic named range for the Sales column in the sample table?

Answer:
Use OFFSET and COUNTA functions. Example:

=OFFSET($C$2,0,0,COUNTA($C:$C)-1,1)

43. How do you calculate the cumulative sales for each product in the sample table?

Answer:
Use the SUM function with relative references. Example:

=SUM($C$2:C2)

44. How do you use the RANK function to rank the products by sales in the sample table?

Answer:
Use the RANK function. Example:

=RANK(C2, $C$2:$C$6)

45. How do you use the TEXT function to format the sales figures as currency in the sample table?

Answer:
Use the TEXT function. Example:

=TEXT(C2, "$#,##0.00")

46. How do you calculate the total quantity sold for each category using the sample table?

Answer:
Use the SUMIF function. Example:

=SUMIF(E2:E6, "Electronics", G2:G6)

47. How do you find the date with the highest sales using the sample table?

Answer:
Use the INDEX and MATCH functions. Example:

=INDEX(D2:D6, MATCH(MAX(C2:C6), C2:C6, 0))

48. How do you use the CONCATENATE function to create a unique identifier for each row in the sample table?

Answer:
Use the CONCATENATE function. Example:

=CONCATENATE(A2, B2, D2)

49. How do you calculate the average profit per sale in the sample table?

Answer:
Use the AVERAGE function. Example:

=AVERAGE(J2:J6)

50. How do you create a dynamic chart range using the sample table?

Answer:
Use named ranges with OFFSET and COUNTA functions. Example:

=OFFSET($C$2, 0, 0, COUNTA($C:$C)-1, 1)

51. How do you use the DSUM function to calculate the total sales for products sold in January in the sample table?

Answer:
Use the DSUM function. Example:

=DSUM(A1:J6, "Sales", L1:L2)

52. How do you use the DCOUNT function to count the number of products with sales greater than 5000 in the sample table?

Answer:
Use the DCOUNT function. Example:

=DCOUNT(A1:J6, "Sales", L1:L2)

53. How do you use the DAVERAGE function to calculate the average profit for products in the Electronics category in the sample table?

Answer:
Use the DAVERAGE function. Example:

=DAVERAGE(A1:J6, "Profit", L1:L2)

54. How do you use the DMIN function to find the minimum discount offered in the sample table?

Answer:
Use the DMIN function. Example:

=DMIN(A1:J6, "Discount", L1:L2)

55. How do you use the DMAX function to find the maximum revenue generated in the sample table?

Answer:
Use the DMAX function. Example:

=DMAX(A1:J6, "Revenue", L1:L2)

56. How do you use the DVAR function to calculate the variance in sales for the sample table?

Answer:
Use the DVAR function. Example:

=DVAR(A1:J6, "Sales", L1:L2)

57. How do you use the DSTDEV function to calculate the standard deviation of profits in the sample table?

Answer:
Use the DSTDEV function. Example:

=DSTDEV(A1:J6, "Profit", L1:L2)

58. How do you use the ISNUMBER function to check if the values in the Sales column of the sample table are numbers?

Answer:
Use the ISNUMBER function. Example:

=ISNUMBER(C2)

59. How do you use the ISERR function to check if there are any errors in the Profit column of the sample table?

Answer:
Use the ISERR function. Example:

=ISERR(J2)

60. How do you use the ISERROR function to check for errors in the Discount column of the sample table?

Answer:
Use the ISERROR function. Example:

=ISERROR(F2)

61. How do you use the IFERROR function to replace error values in the Cost column with 0 in the sample table?

Answer:
Use the IFERROR function. Example:

=IFERROR(H2, 0)

62. How do you use the IF function to categorize sales as "High" or "Low" based on a threshold value in the sample table?

Answer:
Use the IF function. Example:

=IF(C2 > 6000, "High", "Low")

63. How do you use the MATCH function to find the position of the product "C" in the sample table?

Answer:
Use the MATCH function. Example:

=MATCH("C", A2:A6, 0)

64. How do you use the INDEX function to return the quantity sold for the product "D" in the sample table?

Answer:
Use the INDEX function. Example:

=INDEX(G2:G6, MATCH("D", A2:A6, 0))

65. How do you use the SUMIFS function to calculate the total revenue for the North region and Electronics category in the sample table?

Answer:
Use the SUMIFS function. Example:

=SUMIFS(I2:I6, B2:B6, "North", E2:E6, "Electronics")

66. How do you use the COUNTIFS function to count the number of products sold in the South region with sales greater than 6000 in the sample table?

Answer:
Use the COUNTIFS function. Example:

=COUNTIFS(B2:B6, "South", C2:C6, ">6000")

67. How do you calculate the total

cost for products sold in the East region using the sample table? Answer:
Use the SUMIF function. Example:

=SUMIF(B2:B6, "East", H2:H6)

68. How do you use the MAXIFS function to find the maximum sales value for the Furniture category in the sample table?

Answer:
Use the MAXIFS function. Example:

=MAXIFS(C2:C6, E2:E6, "Furniture")

69. How do you calculate the total discount given across all products using the sample table?

Answer:
Convert the Discount column to numerical values and then sum it up. Example:

=SUMPRODUCT(C2:C6, SUBSTITUTE(F2:F6, "%", "")/100)

70. How do you use the MEDIAN function to find the median sales value in the sample table?

Answer:
Use the MEDIAN function. Example:

=MEDIAN(C2:C6)

71. How do you calculate the total profit margin for each product using the sample table?

Answer:
Divide Profit by Revenue. Example:

=J2/I2

72. How do you use the FREQUENCY function to calculate the frequency distribution of sales values in the sample table?

Answer:
Use the FREQUENCY function. Example:

=FREQUENCY(C2:C6, {4000, 6000, 8000})

73. How do you use the TREND function to predict future sales based on historical data in the sample table?

Answer:
Use the TREND function. Example:

=TREND(C2:C6, {1, 2, 3, 4, 5}, {6})

74. How do you use the MODE function to find the most frequently occurring sales value in the sample table?

Answer:
Use the MODE function. Example:

=MODE(C2:C6)

75. How do you calculate the year-over-year growth rate for sales using the sample table?

Answer:
Use the formula for growth rate. Example:

=(C5-C2)/C2

76. How do you use the PERCENTILE function to find the 90th percentile of sales in the sample table?

Answer:
Use the PERCENTILE function. Example:

=PERCENTILE(C2:C6, 0.9)

77. How do you use the QUARTILE function to find the first quartile of sales in the sample table?

Answer:
Use the QUARTILE function. Example:

=QUARTILE(C2:C6, 1)

78. How do you use the VAR.S function to calculate the sample variance of sales in the sample table?

Answer:
Use the VAR.S function. Example:

=VAR.S(C2:C6)

79. How do you use the VAR.P function to calculate the population variance of sales in the sample table?

Answer:
Use the VAR.P function. Example:

=VAR.P(C2:C6)

80. How do you use the STDEV.S function to calculate the sample standard deviation of sales in the sample table?

Answer:
Use the STDEV.S function. Example:

=STDEV.S(C2:C6)

81. How do you use the STDEV.P function to calculate the population standard deviation of sales in the sample table?

Answer:
Use the STDEV.P function. Example:

=STDEV.P(C2:C6)

82. How do you use the CORREL function to find the correlation between sales and revenue in the sample table?

Answer:
Use the CORREL function. Example:

=CORREL(C2:C6, I2:I6)

83. How do you use the COVARIANCE.S function to find the sample covariance between sales and profit in the sample table?

Answer:
Use the COVARIANCE.S function. Example:

=COVARIANCE.S(C2:C6, J2:J6)

84. How do you use the COVARIANCE.P function to find the population covariance between sales and profit in the sample table?

Answer:
Use the COVARIANCE.P function. Example:

=COVARIANCE.P(C2:C6, J2:J6)

85. How do you use the FORECAST function to predict future sales based on historical data in the sample table?

Answer:
Use the FORECAST function. Example:

=FORECAST(6, C2:C6, {1, 2, 3, 4, 5})

86. How do you use the LINEST function to perform a linear regression analysis on the sample table data?

Answer:
Use the LINEST function. Example:

=LINEST(C2:C6, {1, 2, 3, 4, 5})

87. How do you use the LOGEST function to perform an exponential regression analysis on the sample table data?

Answer:
Use the LOGEST function. Example:

=LOGEST(C2:C6, {1, 2, 3, 4, 5})

88. How do you use the EXPON.DIST function to find the exponential distribution of sales in the sample table?

Answer:
Use the EXPON.DIST function. Example:

=EXPON.DIST(C2, 1/AVERAGE(C2:C6), TRUE)

89. How do you use the NORM.DIST function to find the normal distribution of sales in the sample table?

Answer:
Use the NORM.DIST function. Example:

=NORM.DIST(C2, AVERAGE(C2:C6), STDEV.P(C2:C6), TRUE)

90. How do you use the NORM.INV function to find the inverse normal distribution of sales in the sample table?

Answer:
Use the NORM.INV function. Example:

=NORM.INV(0.95, AVERAGE(C2:C6), STDEV.P(C2:C6))

91. How do you use the BINOM.DIST function to find the binomial distribution of sales in the sample table?

Answer:
Use the BINOM.DIST function. Example:

=BINOM.DIST(3, 5, 0.5, TRUE)

92. How do you use the BINOM.INV function to find the inverse binomial distribution of sales in the sample table?

Answer:
Use the BINOM.INV function. Example:

=BINOM.INV(5, 0.5, 0.95)

93. How do you use the HYPGEOM.DIST function to find the hypergeometric distribution of sales in the sample table?

Answer:
Use the HYPGEOM.DIST function. Example:

=HYPGEOM.DIST(3, 5, 2, 4, TRUE)

94. How do you use the POISSON.DIST function to find the Poisson distribution of sales in the sample table?

Answer:
Use the POISSON.DIST function. Example:

=POISSON.DIST(C2, AVERAGE(C2:C6), TRUE)

95. How do you use the WEIBULL.DIST function to find the Weibull distribution of sales in the sample table?

Answer:
Use the WEIBULL.DIST function. Example:

=WEIBULL.DIST(C2, 1, AVERAGE(C2:C6), TRUE)

96. How do you use the GAMMA.DIST function to find the gamma distribution of sales in the sample table?

Answer:
Use the GAMMA.DIST function. Example:

=GAMMA.DIST(C2, 2, AVERAGE(C2:C6)/2, TRUE)

97. How do you use the CHISQ.DIST function to find the chi-squared distribution of sales in the sample table?

Answer:
Use the CHISQ.DIST function. Example:

=CHISQ.DIST(C2, 2, TRUE)

98. How do you use the T.DIST function to find the Student's t-distribution of sales in the sample table?

Answer:
Use the T.DIST function. Example:

=T.DIST(C2, 4, TRUE)

99. How do you use the F.DIST function to find the F-distribution of sales in the sample table?

Answer:
Use the F.DIST function. Example:

=F.DIST(C2, 2, 2, TRUE)

100. How do you use the Z.TEST function to perform a one-sample z-test on the sample table data?

Answer:
Use the Z.TEST function. Example:

=Z.TEST(C2:C6, AVERAGE(C2:C6), STDEV.P(C2:C6))