Excel Notes
Excel Notes
Table of Contents
Excel Home
The Home tab in Excel contains the most commonly used features and commands for formatting and editing your
data. These include options for font styles, alignment, number formatting, cell styles, and editing tools.
Excel Introduction
Excel Introduction covers the basics of Microsoft Excel, a spreadsheet application that allows users to organize,
format, and calculate data with formulas using a system of rows and columns.
Excel Get Started includes initial steps such as opening Excel, creating a new workbook, navigating through the
interface, and understanding the ribbon, tabs, and worksheets.
Excel Overview
Excel Overview gives a general understanding of Excel's capabilities, including data entry, formatting, calculations,
chart creation, and data analysis.
Excel Syntax
Excel Syntax refers to the rules and structure for writing formulas and functions in Excel. For example, a basic
formula follows the syntax: =FunctionName(arguments).
Excel Ranges
Excel Ranges are groups of adjacent cells that you can select and manipulate as a single unit. For example, A1:B5
refers to a range of cells from A1 to B5.
Excel Fill
Excel Fill allows you to quickly copy data or extend a data series. For example, dragging the fill handle at the corner
of a cell can copy the cell's content to adjacent cells or continue a series of numbers.
Excel Add Cells lets you insert new cells into an existing worksheet. Right-click on a cell and choose "Insert" to add a
cell, row, or column.
Excel Delete Cells allows you to remove cells, rows, or columns. Right-click on a cell and choose "Delete" to remove
the selected cell or range.
Sheet Duplicate
Sheet Duplicate lets you create a copy of an existing worksheet within the same workbook. Right-click on the sheet
tab and select "Move or Copy."
Excel Undo Redo provides options to undo the last action or redo an action that was undone. Use Ctrl + Z for
undo and Ctrl + Y for redo.
Excel Parentheses
Excel Parentheses are used to change the order of operations in a formula. For example, =(A1+B1)*C1 ensures
that A1 and B1 are added before multiplying by C1.
Autofit Column Width adjusts the width of a column to fit the contents. Double-click the boundary on the right side of
the column header.
Autosum Shortcut
Autosum Shortcut quickly adds a range of cells using the SUM function. Use the Alt + = shortcut to insert the SUM
function.
Average vs Percentage
Average is the sum of a range of values divided by the number of values. Percentage represents a fraction of 100,
often calculated as (part/whole) * 100.
Decrease/Increase Decimal changes the number of decimal places displayed in a cell. Use the buttons in the Home
tab under the Number group.
Excel Formatting
Excel Formatting includes options to change the appearance of cells, such as font size, color, borders, and cell
styles.
Excel Format Painter copies formatting from one cell and applies it to another. Select the cell with the desired
formatting, click the Format Painter, then select the target cell.
These are options under the Home tab for customizing cell appearance. Colors change the background or font color,
Print settings adjust how the worksheet is printed, Fonts modify the text style, Borders add lines around cells, and
Numbers change how numeric values are displayed.
Insert Row and Column allows you to add new rows or columns to a worksheet. Right-click a row or column header
and select "Insert."
Delete Row and Column removes existing rows or columns. Right-click a row or column header and select "Delete."
Convert Data into Table transforms a range of cells into a formatted table with features like sorting and filtering.
Select the range and use Ctrl + T to create a table.
Excel Sort, Filter
Excel Sort organizes data in ascending or descending order. Filter allows you to display only the rows that meet
certain criteria.
Excel Conditional Format changes cell formatting based on specific conditions. For example, highlight cells that are
above a certain value.
Highlight Cell Rules is a type of conditional formatting that highlights cells based on rules, such as cells greater than
a specified value.
Top Bottom Rules highlight the highest or lowest values in a range. For example, highlight the top 10% of scores in a
list.
● Data Bars add a bar in the cell to visually represent the value.
● Color Scales use different colors to represent the range of values.
● Icon Sets display icons to represent different values.
Charts
Charts are graphical representations of data. Common types include bar charts, line charts, pie charts, and scatter
plots.
=AND(A1>10, B1<20)
=AVERAGEIF(A1:A10, ">10")
=CONCAT(A1, B1)
=COUNT(A1:A10)
=COUNTA(A1:A10)
=COUNTBLANK(A1:A10)
=COUNTIF(A1:A10, ">10")
●
COUNTIFS: Counts cells based on multiple conditions.
=LEFT(A1, 3)
=LOWER(A1)
=MAX(A1:A10)
=MEDIAN(A1:A10)
=MIN(A1:A10)
●
=OR(A1>10, B1<20)
=RAND()
=RIGHT(A1, 3)
=SUM(A1:A10)
=SUMIF(A1:A10, ">10")
If Formulas
If Formulas use the IF function to create conditional logic in calculations. For example:
Insert Charts in Excel involves selecting your data, going to the Insert tab, and choosing a chart type to visually
represent your data.
Format Chart Area includes customizing the appearance of the chart, such as changing colors, fonts, and adding
titles or labels.
The Home Tab contains options for clipboard actions (cut, copy, paste), font formatting, alignment, number formatting,
styles, cells (insert, delete, format), and editing (find, replace, select).
Find Remove Duplicates helps identify and remove duplicate values in a range. Use the Data tab and click "Remove
Duplicates."
Slicers
Slicers are visual tools to filter data in PivotTables and tables. Insert a slicer from the Insert tab and use it to filter data
easily.
Rounding of Numbers
Rounding of Numbers can be done using functions like ROUND, ROUNDUP, and ROUNDDOWN.
=ROUND(A1, 2) // Rounds A1 to 2 decimal places
Autofill
Autofill allows you to quickly fill cells with a series or pattern. Drag the fill handle to extend a sequence of numbers,
dates, or formulas.
Add or Edit Comments by right-clicking a cell and selecting "Insert Comment" or "Edit Comment." Comments can
provide additional context or notes.
Table and Filters enhance data management. Convert a range to a table (Ctrl + T), and use filters to display
specific data.
Insert Pictures and Shapes involves using the Insert tab to add images and geometric shapes to your worksheet for
visual enhancement.
Insert Hyperlinks
Insert Hyperlinks by selecting a cell and using Ctrl + K to link to other documents, web pages, or locations within
the workbook.
Create a Drop Down List using Data Validation. Select a range, go to the Data tab, and choose Data Validation to
create a list of options.
Split Text
Split Text can be done using the Text to Columns feature under the Data tab. It separates text based on a delimiter
(e.g., comma, space).
VLOOKUP searches for a value in the first column of a range and returns a value in the same row from a specified
column.
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
HLOOKUP searches for a value in the first row and returns a value in the same column from a specified row.
Pivot Table
Pivot Table allows you to summarize and analyze data. Insert a PivotTable from the Insert tab and drag fields to the
rows, columns, and values areas.
Macro
Macro automates repetitive tasks. Record a macro using the Developer tab and assign it to a button or keyboard
shortcut.
Data Cleaning
Data Cleaning involves removing duplicates, correcting errors, and filling blank spaces to prepare data for analysis.
Use tools like Go To Special to identify and fix issues.
Data Validation restricts the type of data that can be entered in a cell. Use the Data tab to set rules and criteria for cell
entries.
=EXACT(A1, B1)
=FIND("text", A1)
=SEARCH("text", A1)
These topics provide a comprehensive understanding of Excel's features and capabilities. If you need more detailed
examples or explanations for specific topics, feel free to ask!
These are the some important questions 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 a specified column.
Syntax:
Example:
Explanation: This formula looks for "John" in the first column of the range A2:C10 and returns the value from the
third column of the same row.
Answer: Conditional formatting changes the appearance of cells based on specific conditions.
Example:
Answer:
Example:
Answer:
Answer: The IF function performs a logical test and returns one value if true, and another if false.
Syntax:
Example:
Explanation: If the value in A1 is greater than 10, the formula returns "Pass"; otherwise, it returns "Fail".
Steps:
1. Select the data range.
2. Go to Insert > PivotTable.
3. Choose the data range and location for the PivotTable.
4. Drag fields to the Rows, Columns, Values, and Filters areas.
Answer: You can use the CONCAT or & operator to combine strings.
Example:
or
Syntax:
Example:
Explanation: Adds the values in B1:B10 where the corresponding value in A1:A10 is greater than 10.
Answer:
Answer: The MATCH function searches for a value in a range and returns the relative position of the value within the
range.
Syntax:
Example:
=MATCH("Apple", A1:A10, 0)
Answer:
1. Create a PivotTable.
2. Select any cell in the PivotTable.
3. Go to PivotTable Analyze > PivotChart.
4. Choose a chart type and click OK.
Answer: The INDEX function returns the value of a cell in a specified row and column of a range.
Syntax:
Example:
=INDEX(A1:C10, 2, 3)
Explanation: Returns the value in the second row and third column of the range A1:C10.
Answer: The OFFSET function returns a reference to a range that is a specified number of rows and columns from a
starting cell.
Syntax:
Example:
=OFFSET(A1, 2, 3, 1, 1)
Explanation: Returns the value that is 2 rows down and 3 columns to the right of A1.
Answer:
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.
Syntax:
Example:
Answer: Use the TRIM function to remove extra spaces from text.
Syntax:
=TRIM(text)
Example:
=TRIM(A1)
Explanation: Removes all leading and trailing spaces, and extra spaces between words in A1.
18. How do you calculate the average of a range that meets specific criteria using
AVERAGEIF?
Answer: The AVERAGEIF function calculates the average of cells that meet a specified condition.
Syntax:
Example:
Explanation: Calculates the average of values in B1:B10 where the corresponding values in A1:A10 are greater
than 10.
Answer: The SUMPRODUCT function multiplies corresponding elements in the given arrays and then sums the
products.
Syntax:
=SUMPRODUCT(array1, [array2], [array3], ...)
Example:
=SUMPRODUCT(A1:A10, B1:B10)
Explanation: Multiplies each value in A1:A10 by the corresponding value in B1:B10 and then sums the results.
Answer: The TEXT function formats a number and converts it to text according to a specified format.
Syntax:
=TEXT(value, format_text)
Example:
=TEXT(A1, "0.00")
Answer:
Answer: The CHOOSE function returns a value from a list of values based on an index number.
Syntax:
Example:
=CHOOSE(2, "Red", "Blue", "Green")
Answer:
Syntax:
Example:
Explanation: Sums the values in B1:B10 where A1:A10 is greater than 10 and C1:C10 is less than 20.
Answer: The INDIRECT function returns the reference specified by a text string.
Syntax:
=INDIRECT(ref_text, [a1])
Example:
=INDIRECT("A1")
We will start with a set of Excel interview questions aimed at the beginners.
A cell address is used to identify a particular cell on a worksheet. It is denoted by a combination of the
respective column letter and a row number.
As shown above, the highlighted cell belongs to the column ‘D’ and row 5, so the cell address is read as
D5.
2. What do you mean by Relative cell referencing and Absolute cell referencing in MS Excel?
Freeze panes keep the rows and columns visible while scrolling through a worksheet. To freeze panes,
select the View tab and go to Freeze Panes.
If you are looking to freeze the first two columns of a dataset, select the 3rd column, and click ‘Freeze
Panes’. A thick grey border indicates this.
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
Whereas, a function in Excel is a
predefined calculation which is
The formula is like an equation in Excel, the user in-built in Excel.
types in that. It can be any type of calculation
depending on the user’s choice.
Ex: = SUM(A1:A3)
Now, let’s head to our next question in our list of Excel interview questions.
The order of operations in Excel is referred to as PEDMAS. Shown below is the order of precedence while
performing an Excel operation.
● Parentheses
● Exponentiation
● Division/Multiplication
● Addition
● Subtraction
As seen above, first, the data in the parentheses is operated, followed by the exponentiation operation.
After that, it can be either the division or multiplication operations. The result is then added and finally
subtracted to give the final result.
Let’s look at an example of the PEMDAS precedence in the next question on our Excel interview questions
list.
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 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.
Hyperlinks are used to navigate between worksheets and files/websites. To create a hyperlink, the
shortcut used is Ctrl+K.
The ‘Insert Hyperlink’ box appears. Enter the address and the text to display. Here, we are directed to the
Amazon Website.
To merge text strings present in multiple cells into one cell, you can use the CONCATENATE(). Shown
below is an example of the concatenate function.
Another way of combining cell values is by using the “&” operator, as shown below:
Let’s now move onto the next question on our Excel interview questions list.
12. How can you split a column into 2 or more columns?
You can split a column into 2 or more columns by following the below steps:
1. Select the cell that you want to split. Then, navigate to the Data tab, after that, select Text to Columns.
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.
The function VLOOKUP in Excel is used to look up information in a table and extract the corresponding
data.
value - Indicates the data that you are looking for in the first column of a table.
table - Refers to the set of data (table) from which you have to retrieve the above value.
col_index - Refers to the column in the table from where you are to retrieve the value.
Shown below is an example of the VLOOKUP function. We are to find the Product related to the Customer
Name – “Richard”.
14. How is VLOOKUP different from the LOOKUP function?
VLOOKUP LOOKUP
VLOOKUP lets the user look for a value in the Meanwhile, the LOOKUP function
left-most column of a table. It then returns the enables the user to look for data
value in a left-to-right way. in a row/column. It returns the
value in another row/column.
It is not very easy to use as compared to the
LOOKUP function. It is easier and can also be used
to replace the VLOOKUP
function.
1. Compact Form
2. Outline Form
3. Tabular Form
16. How does the IF() function in Excel work?
In Excel, the IF() function performs a logical test. It returns a value if the test evaluates to true and another
value if the test result is false. It returns the value depending on whether the condition is valid for the entire
selected range.
As seen above, the IF function returns “Record is Valid” if age is greater than 20, and the salary should be
greater than $40000. Else, it will return “Record is Invalid”. Here the final answer will be “Record is Valid” as
the entire selected range qualifies both the conditions.
The SUMIF() function adds the cell values specified by a given condition or criteria. Given below is an
example of the sumif 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:
A pivot table is like a summary table of the dataset that enables you to create reports and analyze trends.
They are useful when you have long rows or columns that hold values you need to track.
To create a pivot table, first, go to the Insert tab and select the ‘PivotTable’ option.
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.
This can be done by using the ‘Data Validation’ option present in the Data tab.
In the example below, we have created a list based on the city column of the dataset.
To apply advanced filters, use the Advanced Filter option present in the Data tab. Select where you want to
filter the table. Choose the ‘list range’ and the ‘criteria range’ that has the conditions based on which you
would like to filter the table.
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.
To find duplicate values in a column, you can either use Conditional Formatting or the COUNTIF() function.
1. Conditional Formatting
First, go to the Home tab, then under Conditional Formatting, select ‘Highlight Cells Rules’. Then choose
‘Duplicate Values’.
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.
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.
Moving forward, let’s have a look at the intermediate level of Excel interview questions.
Wildcards only work with text data. Excel has three wildcards.
1. * (Asterisk)
The example stated below filters the customers whose name ends with “a”.
2. ? (Question mark)
3. ~ (Tilde)
In the following example, we are filtering How?* using the tilde (~) symbol.
27. What is Data Validation? Illustrate with an example.
Data Validation restricts the type of values that a user can enter into a particular cell or a range of cells.
In the Data tab, select the ‘Data Validation’ option present under Data Tools.
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.
Use the YEARFRAC() or DATEDIF() function to return the number of whole days between start_date and
end_date
● YEARFRAC()
● DATEDIF()
Learn best business analysis techniques by Purdue University, IB and EY experts. Sign-up for our Post
Graduate Program in Business Analysis TODAY!
The function IF() can be nested when we have multiple conditions to meet. The FALSE value in the first IF
function is replaced by another IF function to make a further test.
Below, using nested IF statements, we are categorizing results based on the marks.
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.
Under Table Design, give a name to the table.
Become job-ready with a globally recognized Business Analyst Certification Course. Sign-up today and
enrich your career.
Yes, you can create a pivot table from multiple worksheets. For this, there must be a common row in both
the tables. This will act as the Primary key for the first table and Foreign key for the second table. Create a
relationship between the tables and then build the pivot 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’.
For this, you have to go to the PivotTable Analyze tab and select ‘Fields, Items & Sets’ option. Under that,
you need to click ‘Calculate Field’ to create a new column.
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.
37. How does a Slicer work in Excel?
1. To create a slicer, go to the Insert tab, and select Slicer present under Filter.
2. Then, select the list of fields for which you want to create slicers.
In the below example, we have created two slicers (months, countries, and territory) to filter the pivot table.
38. Use the coronavirus dataset to find the percentage contribution of each country and
continent to the total cases?
1. Create the pivot table to show the total cases by country and continent.
2. Right-click on the sum of cases column and under Show Value As, select “% of Grand Total.”
● Go to the Insert tab next and select the ‘Pivot Chart’ option. Choose a suitable chart to represent
your pivot table data.
Accelerate your career with our Post Graduate Program in Business Analytics in partnership with Carlson
School of Management. Enroll and start learning!
Macro is a program that resides within the Excel file. The use of it is to automate repetitive tasks that you
would like to perform in Excel.
To record a macro, you can either go to the Developer tab and click on Record Macro or access it from the
View tab.
Now that we are done with the intermediate level of the Excel interview questions, let’s move on to the
advanced level of Excel interview questions.
The What-If Analysis in Excel is a powerful tool to perform complex mathematical calculations, experiment
with data, and try out different scenarios.
If you get $10,000 worth of sales over the next few months, how much profit can you expect?”
Such scenarios can be solved using the What-If Analysis.
Go to the Data tab and click on What-If Analysis present under Forecast.
To learn more about how What-If analysis works, click on this link: “IQ video link”
Functions Subroutines
Functions are used to carry out repetitive tasks, Users are required to insert a
and it, in turn, returns a value. value in the desired cell before
fetching the result of the
subroutine.
ThisWorkbook ActiveWorkbook
ThisWorkbook indicates the name of the workbook As the name suggests,
where the code is running from. ActiveWorkbook is the workbook
that is presently active from the
various open workbooks.
Dim x As Integer
x = 10
MsgBox Triple(x)
MsgBox x
If you run the cells by passing the values as a reference, it will display 40 both the times. When we pass
arguments by reference, we are referencing the original value. The original value of x is changed in the
function.
When we pass the arguments by value, we are passing a copy to the function. The original value is not
changed. Hence, the second MsgBox will display the original value 10.
45. How do you find the last row and column in VBA?
To find the last row, use the below lines code in the VBA module:
Sub FindingLastRow()
lastRow = ActiveSheet.Cells.SpecialCells(xlLastCell).Row
MsgBox (lastRow)
End Sub
To find the last column, use the below lines code in the VBA module:
Sub FindingLastColumn()
MsgBox (lastColumn)
End Sub
Want to learn the latest business analysis skills? Sign-up for our Post Graduate Program in Business
Analytics and gain the skills to excel in the business world. Start learning TODAY!
Sub CheckFileExists()
strFileExists = Dir(strFileName)
If strFileExists = “” Then
Else
End Sub
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.
If IsMissing(Width) Then
End If
End Function
Sub Prime()
divisors = 0
For i = 1 To number
divisors = divisors + 1
End If
Next i
If divisors = 2 Then
Else
MsgBox number & “ is not a prime number”
End If
End Sub
Learn the latest tools, work on real-world projects, and attend Masterclasses from IBM and EY experts.
Join our Master's program today.
50. Write a VBA code to create a bar chart with the given data.
Consider the below data that has two features. You can use the lines of code below to create a bar chart.
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.
Conclusion
Now that you know the various Excel interview questions that can be asked in an interview, you can
prepare by referring to the given answers for each of these Excel interview questions. Here, we had a look
at a plethora of Excel interview questions based on different levels of difficulty. Practicing Excel regularly
and going through these Excel interview questions will keep you prepared for any question that is thrown
at you.