50 Excel Interview Questions
50 Excel Interview Questions
2. What do you mean by Relative cell referencing and Absolute cell referencing in MS
Excel?
In Relative referencing, there is a change when copying a formula Meanwhile, there is no change in Absolute
from one cell to another cell with respect to the destination. cells’ cell referencing when a formula is copied,
address irrespective of the cell’s destination.
This type of referencing is there by default. Relative cell
referencing doesn’t require a dollar sign in the formula.
If you don’t want a change in the formula
when it’s copied across cells, then absolute
referencing requires you to add a dollar sign
before and after the column and row
address.
4. How can you restrict someone from copying a cell from your worksheet?
1. First, choose the data you want to protect.
2. Hit Ctrl + Shift + F. The Format Cells tab appears. Go to the Protection tab. Check Locked and
click OK.
3. Next, go to the Review tab and select Protect Sheet. Enter the password to protect the sheet.
Let’s now move onto our next question on our list of Excel interview questions.
Formula Function
The formula is like an equation in Excel, the user types in that. It can Whereas, a function in Excel is a
be any type of calculation depending on the user’s choice. predefined calculation which is in-built
in Excel.
Manually typing out a formula every time you need to perform a However, performing calculations
calculation, consumes more time. becomes more comfortable and faster
Ex: = A1+A2+A3 while working with functions.
Ex: = SUM(A1:A3)
Now, let’s head to our next question in our list of Excel interview questions.
7. How will you write the formula for the following? - Multiply the value in cell A1 by
10, add the result by 5, and divide it by 2.
To write a formula for the above-stated question, we have to follow the PEDMAS Precedence. The
correct answer is ((A1*10)+5)/2.
Answers such as =A1*10+5/2 and =(A1*10)+5/2 are not correct. We must put parentheses brackets
after a particular operation.
The output will look like this:
8. What is the difference between count, counta and countblank?
The count function is very often used in Excel. Here, let’s look at the difference between count, and
it’s variants - counta and countblank.
1. COUNT
It counts the number of cells that contain numeric values only. Cells that have string values, special
characters, and blank cells will not be counted. Shown below is an example of the count function.
2. COUNTA
It counts the number of cells that contain any form of content. Cells that have string values, special
characters, and numeric values will be counted. However, a blank cell will not be counted. Shown
below is an example of the counta function.
3. COUNTBLANK
As the name suggests, it counts the number of blank cells only. Cells that have content will not be
taken into consideration. Shown below is an example of the countblank function.
9. What is the shortcut to add a filter to a table?
The filter mechanism is used when you want to display only specific data from the entire dataset. By
doing so, there is no change being made to the data. The shortcut to add a filter to a table is
Ctrl+Shift+L.
Another way of combining cell values is by using the “&” operator, as shown below:
3. Choose the column data format and select the destination you want to display the split.
4. The final output will look like below where the text is split into multiple columns.
VLOOKUP LOOKUP
VLOOKUP lets the user look for a value in the left-most column of a Meanwhile, the LOOKUP function
table. It then returns the value in a left-to-right way. enables the user to look for data in a
It is not very easy to use as compared to the LOOKUP function. row/column. It returns the value in
another row/column.
It is easier and can also be used to
replace the VLOOKUP function.
As seen above, the costs corresponding to the years 2010 are added as per the given criteria.
18. Using the COVID data, find the number of days in which the number of deaths in Italy has
been greater than 200.
To perform this operation, we can use the COUNTIFS() function. The dataset we will be using is
shown below:
The COUNTIFS() function we use is - =COUNTIFS(G2:G35777,"Italy",E2:E35777,">200")
Select the table or the range and choose where you want to place the pivot table.
Drag the fields you wish to show in the pivot table. Here we have created a pivot table using the
Coronavirus data.
1. Select ‘Conditional Formatting’ from the home tab and under Highlight Cells Rules, choose
‘Greater Than option’.
2. Provide the condition and choose the color for the cells to be highlighted.
23. Using the given table, explain how the index-match function works in Excel.
Here, we will write an index-match function to find the city to which Andrew belongs to from the
below table.
Here is how you can use the Index-Match function to get the result.
Below, we have highlighted the cells in the ‘Name’ column that have been repeated.
2. COUNTIF()
You can write a COUNTIF() function to check if the values in a particular column are repeated.
In the below example, we are fetching the duplicate names using the COUNTIF() function.
25. How can you remove duplicate values in a range of cells?
1. To delete duplicate values in a column, select the highlighted cells, and press the delete button.
After deleting the values, go to the ‘Conditional Formatting’ option present in the Home tab. Choose
‘Clear Rules’ to remove the rules from the sheet.
2. You can also delete duplicate values by selecting the ‘Remove Duplicates’ option under Data Tools
present in the Data tab.
2. ? (Question mark)
It represents one single character.
The example below shows how to filter a particular customer name.
3. ~ (Tilde)
It is used to identify a wildcard character (~, *, ?) in the text.
In the following example, we are filtering How?* using the tilde (~) symbol.
In the following example, we have applied data validation to the ‘Name’ column to accept only text
values. If you enter something other than a text, it will throw an error.
28. Given below is a student table. Write a function to add pass/fail to the results column based
on the following criteria.
If student marks > 60 and attendance > 75%, then pass else the student fails.
You can use the IF() function and check with an AND condition to fill in the results column.
DATEDIF()
31. From the below table, find the descriptive statistics of the columns using the Data Analysis
ToolPak in Excel.
Add the Analysis ToolPak from Options ----> Add-ins ----> Analysis ToolPak.
Click on the Data Analysis option in the Data tab. Choose Descriptive Statistics.
Below is the summary table for the columns and their respective statistical measures.
32. Using the Coronavirus dataset, create a pivot table to find the total cases in each country
belonging to their respective continents.
First, drag the continent and country columns into rows. After that, drag the cases column on to the
values section.
33. How do you provide Dynamic Range in ‘Data Source’ of Pivot Tables?
Dynamic Range in the data source of pivot tables is used to make your pivot table dynamic to adjust
to new data when refreshed automatically.
Create a Named table to provide a dynamic range. Go to the Insert tab and select Table.
35. Create a pivot table to find the top three countries from each continent based on the total
cases using COVID data.
Create a pivot table using the coronavirus dataset by dragging sales into values.
Place the continent and country columns into rows.
Filter the table by selecting ‘Top 3’.
Below is the sequence of steps to follow.
The Insert Calculated Field box appears. Give a name to the column and insert the formula by
selecting the existing columns from the pivot table. Click Add ----> OK to create the column.
Functions Subroutines
A function is responsible for returning the value of the task it is Meanwhile, subroutines don’t return the
performing. value of the task it is performing.
Functions are used as it is in spreadsheets as formulas. Subroutines are not used directly in
spreadsheets as formulas.
Functions are used to carry out repetitive tasks, and it, in turn, Users are required to insert a value in the
returns a value. desired cell before fetching the result of
the subroutine.
ThisWorkbook ActiveWorkbook
ThisWorkbook indicates the name of the workbook where the As the name suggests, ActiveWorkbook is the
code is running from. workbook that is presently active from the
various open workbooks.
If strFileExists = “” Then
MsgBox “The selected file doesn't exist”
Else
MsgBox “The selected file exists”
End If
End Sub
47. Explain how to debug a VBA code?
To debug a VBA code line by line, you can use the F8 key. You can also create a breakpoint to
terminate the execution wherever you want.
The execution will start from the beginning of the code, and every time you press F8, it will execute
the next line and continue until the end of the code. The yellow arrow and the highlighted line tells
you the current point to execution.
Once you have run the above VBA code lines, below is the bar chart you will get.
So, those were the 50 Excel interview questions that can help you crack your Excel interviews and
help you in bagging your dream job.