Advanced Excel Notes Unit-1 & 2
Advanced Excel Notes Unit-1 & 2
STUDY MATERIAL
ADVANCED EXCEL
(II BCA)
DEPARTMENT OF COMPUTER
APPLICATIONS
IV SEMESTER 2024-2025
COURSE COORDINATOR
[Link].,[Link].,
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
ADVANCED EXCEL
STUDY MATERIAL
UNIT – 1
Basic of excel-Customizing common option-Absolute and relative cell-Protecting and
unprotecting worksheet and cells-Working with function-Writing conditional
expression-Logical function-LOOKUP reference function-VLOOKUP with exact
match-Approximate match-Nested Vlookup with exact match-VLOOKUP with tables,
dynamic range-Nested Vlookup with exact match-Using Vlookup to consolidate data
from multiple sheets.
BASIC OF EXCEL
What is MS Excel?
MS Excel is a spreadsheet program where one can record data in the form of tables.
It is easy to analyse data in an Excel spreadsheet.
A Worksheet is a single page containing a collection of cells where the user can store,
update and manipulate the data. Worksheet is also called a spreadsheet. It is made up
of rows, columns and cells.
In Excel, individual data cells in a worksheet are defined and organized with the help of the
vertical column and horizontal row that are combined to form a cell reference, unlike A1,
B25, or R867.
1. Number of Rows per Worksheet: 1,048,576
2. Number of Rows per Worksheet: 16,384
3. Total cells per Worksheet: 17,179,869,184
The image given below represents how an Excel spreadsheet looks like is given in Figure
1.1.
Click on Start
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
Alternatively, you can also click on the Start button and type MS Excel in the search
option available.
Figure 1.1
What is a cell?
A spreadsheet is in the form of a table comprising rows and columns. The rectangular box at
the intersection point between rows and columns forms a cell. The image of a cell is given in
Figure 1.2.
Figure 1.2
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
The cell address is the name by which is cell can be addressed. For example, if row 7 is
interested in column G, then the cell address is G7.
Features of MS Excel
Various editing and formatting can be done on an Excel spreadsheet. Discussed below are the
various features of MS Excel.
Figure 1.3
Home
Comprises options like font size, font styles, font colour, background colour,
alignment, formatting options and styles, insertion and deletion of cells and
editing option.
Insert
Comprises options like table format and style, inserting images and figures,
adding graphs, charts and spark lines, header and footer option, equation and
symbols.
Page Layout
Themes, orientation and page setup options are available under the page layout
option.
Formulas
Since tables with a large amount of data can be created in MS excel, under this
feature, you can add formulas to your table and get quicker solutions.
Data
Adding external data (from the web), filtering options and data tools are
available under this category.
Review
Proofreading can be done for an excel sheet (like spell check) in the review
category and a reader can add comments in this part.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
View
Different views in which we want the spreadsheet to be displayed can be
edited here. Options to zoom in and out and pane arrangement are available
under this category.
MS Excel is widely used for various purposes because the data is easy to save, and
information can be added and removed without any discomfort and less hard work.
Easy To Store Data: Since there is no limit to the amount of information that can be
saved in a spreadsheet, MS Excel is widely used to save data or to analyse data.
Filtering information in Excel is easy and convenient.
Easy To Recover Data: If the information is written on a piece of paper, finding it
may take longer, however, this is not the case with excel spreadsheets. Finding and
recovering data is easy.
Application of Mathematical Formulas: Doing calculations has become easier and
less time-taking with the formulas option in MS excel
More Secure: These spreadsheets can be password secured in a laptop or personal
computer and the probability of losing them is way lesser in comparison to data
written in registers or piece of paper.
Data at One Place: Earlier, data was to be kept in different files and registers when
the paperwork was done. Now, this has become convenient as more than one
worksheet can be added in a single MS Excel file.
Neater and Clearer Visibility of Information: When the data is saved in the form of
a table, analysing it becomes easier. Thus, information is a spreadsheet that is more
readable and understandable.
References are used in formulas to do calculations, and the fill function can be used to
continue formulas side wards, downwards and upwards.
1. Relative references
2. Absolute references
Relative reference
References are relative by default, and are without dollar sign ($).
The relative reference makes the cells reference free. It gives the fill function freedom
to continue the order without restrictions.
Figure 1.4 shows the example of relative reference example, helping the Pokémon
trainers to count their Poke balls (B2:B7) and Great balls (C2:C7).
Figure 1.4
Figure 1.5
Next, fill the range by selecting D2:D7 as shown in Figure 1.6.
Figure 1.6
Figure 1.7
The references being relative allows the fill function to continue the formula for rows
downwards. The Figure 1.8 shows the formulas in D2:D7. Notice that it calculates the next
row as you fill.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
Figure 1.8
Absolute References
Absolute reference is when a reference has the dollar sign ($).
It locks a reference in the formula.
Add $ to the formula to use absolute references.
2. Absolute for the column. The reference is locked to that column. The row remains
relative.
Example =$A1
3.
Absolute for the row. The reference is locked to that row. The column remains
relative.
Example =A$1
Figure 1.9 shows an example helping the Pokémon trainers to calculate prices for Poke balls.
Figure 1.9
Data explained
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
There are 6 trainers: Iva, Liam, Adora, Jenny, Iben and Kasper.
They have different amount of Pokeballs each in their shop cart
The price per Pokeball is 2 coins
The price's reference is B11, we do not want the fill function to change this, so we lock it. The
reference is absolutely locked by using the formula $B$11.
1. Type C2(=)
2. Select B11
3. Type ($) before the B and 11 ($B$11)
4. Type (*)
5. Select B2
6. Hit enter
7. Auto fill C2:C7
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
Figure 1.10
Protecting your datasheet helps to prevent other users from accidentally adding,
changing, moving, deleting, or modifying data or information in a worksheet, MS
Excel can lock the cells on your Excel worksheet and then protect it with a password
so that other users can’t open and access it.
By doing this you can save your data from tampering. Whosoever has a valid
password can access it.
When you’re sending your worksheet/data file you should use the password protect
option.
Protection Options:
This feature helps the users to access the worksheet and view the information but making
changes is restricted only for locked cells. User can access those cells which are unlocked
(cells).
LockingCells
Unlocking Cells
Figure 1.11
Figure 1.12
Figure 1.13
Step 3: As shown in Figure 1.14 click on the Protection tab and deselect the locked.
Figure 1.14
Step 4: Then click on OK. Now cells are unlocked.
This feature helps the users to prevent from viewing the worksheet, or users can view the
workbook but unable to make changes to it.
Protecting a Sheet
1. Protect Sheet
2. Protect Workbook
1. Protect sheet:
You can protect your worksheet from being modified by another user.
This prevents unwanted changes from others by limiting their ability to edit.
For example, you can prevent people from editing locked cells, making formatting
changes to delete columns or rows.
Password protection prevents other users from removing the worksheet protection, it
needs to be entered to unprotect the worksheet.
Step 1: As shown in Figure 1.15, on the toolbar select the review option.
Figure 1.15
Step 2: A protect sheet dialog box will open as shown in Figure 1.16. Select the
appropriate option.
Step 3: Checked the box that you want the user to access the particular cells.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
Figure 1.16
Password to unprotected cells – Allows only those users who know the valid
password to unprotect the worksheet and can make changes.
Allow all users of this worksheet to – Checked boxes are aspects that any user can
access and make changes.
Step 4: Create a strong password for your worksheet. Then click on OK as shown in Figure
1.17.
Figure 1.17
Step 5: Re-enter the password in the confirmed password dialog box. Then click on Ok as
shown in Figure 1.18.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
Figure 1.18
Finally, your sheet is protected.
How to Unprotect the Sheet?
Figure 1.19
Step 3: The Figure 1.20 shows how to enter the password in Unprotect sheet dialog box.
Figure 1.20
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
This feature prevents other users from viewing hidden worksheets details, adding,
and moving, deleting, worksheets.
You can protect the structure of your Excel workbook with a password.
By using workbook protection other users unable to change its structure, order of
sheets of our workbook, and many more.
Step 1: On the toolbar select the review option.
Figure 1.21
Figure 1.22
Figure 1.23
Step 5: Then click on ok.
Step 6: Re-enter the password and click on ok as shown in figure 1.24.
Figure 1.24
Finally, your workbook is protected.
How to Unprotect the Workbook?
When the workbook is unprotected, Users can now change the structure and windows of
your workbook.
Figure 1.25
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
Figure 1.26
Now your workbook is unprotected it means anyone can change its structure of your
workbook.
3. File protections
This prevents other users from accessing data in your Excel files.
Users can able to open the file if he/ she has a valid password.
Users cannot even view the file without a password.
Step 1: Click on the file option.
Step 2: Select on info option on the left side menu bar as shown in Figure 1.27.
Step 3: Click on protect workbook option.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
Figure 1.27
Step 4: Now select the option Encrypt with password as shown in the below Figure 1.28:
Figure 1.28
Step 5: Create a password and enter it on encrypt document dialog box.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
Figure 1.29
Step 7: Then click on ok.
Table 1.1
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
Function is used for quick tasks like finding the sum, count, average, maximum value,
and minimum values for a range of cells.
Numeric Functions
2 RAND Math & Trig Generates a random number between 0 and 1 =RAND()
5 PI Math & Trig Returns the value of Math Function PI(π) =PI()
7 MOD Math & Trig Returns the Remainder when you divide two numbers =MOD(10,3)
Table 1.2
2 DAYS Date & Time Find the number of days between two dates =DAYS(D6,C6)
3 MONTH Date & Time Returns the month from a date value =MONTH(“4/2/2015”)
Table 1.3
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
5 YEAR Date & Time Returns the year from a date value =YEAR(“04/02/2015”)
Basic IF Statements any combination of cell references, operators, constants and even
other functions to create this logical test.
The following Operators can be used to generate True or False values.
These operators include: greater than (>), less than (<) and equal to (=). This is
explained in the below given Figure 1.30.
Figure 1.30
These three functions are often included in the "logical test" for slightly more advanced
conditions.
Cell E3 - Return the opposite of a True or False value you would use the NOT function.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
Cell E4 - Return the logical AND for two different conditions you would use
the AND function.
Cell E5 - Return the logical OR for two different conditions you would use the OR function.
This is explained in Figure 1.31.
Figure 1.31
If you want to check for multiple conditions you can use "nested" IF functions.
When you nest the IF functions, you specify an IF function as the value of either of the
"value_if_true” or "value_if_false" arguments as shown in Figure 1.32.
You can combine or nest up to 64 levels of IF functions within one formula.
Figure 1.32
Multiple Conditions - IFS Function
Figure 1.33
Logical Functions
Logical functions are used in spreadsheets to test whether a situation is true or false.
Depending on the result of that test, you can then elect to do one thing or another.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
[Link]
Function and Description
.
AND
1
Returns TRUE if all its arguments are TRUE.
FALSE
2
Returns the logical value FALSE.
IF
3
Specifies a logical test to perform.
IFERROR
4
Returns a different result if the first argument evaluates to an error.
IFNA
5
Returns the value you specify if the expression resolves to #N/A, otherwise
returns the result of the expression.
IFS
6
Checks whether one or more conditions are met and returns a value that
corresponds to the first TRUE condition.
NOT
7
Reverses the logic of its argument.
OR
8
Returns TRUE if any argument is TRUE.
SWITCH
9 Evaluates an expression against a list of values and returns the result
corresponding to the first matching value. If there is no match, an optional
default value may be returned.
TRUE
10
Returns the logical value TRUE.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
XOR
11
Returns a logical exclusive OR of all arguments.
Table 1.4
Lookup & Reference functions help you to work with arrays of data, and are particularly
useful when you need to cross reference between different data sets. They perform tasks such
as providing information about a range, returning the location of a given address or value, or
looking up specific values.
The following Table 1.5 lists all the Lookup & Reference functions.
[Link]
Function and Description
.
ADDRESS
1
Returns a reference as text to a single cell in a worksheet
AREAS
2
Returns the number of areas in a reference
CHOOSE
3
Chooses a value from a list of values
COLUMN
4
Returns the column number of a reference
COLUMNS
5
Returns the number of columns in a reference
FORMULATEXT
6
Returns the formula at the given reference as text
GETPIVOTDATA
7
Returns data stored in a PivotTable
HLOOKUP
8 Searches for a value in the top row of a table and then returns a value in the
same column from a row you specify in the table
9 HYPERLINK
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
Creates a shortcut that opens a document on your hard drive, a server, or the
Internet
INDEX
10
Uses an index to choose a value from a reference or array
INDIRECT
11 Returns a reference indicated by a text value
LOOKUP
12
Returns a value either from a one-row or one-column range or from an array
MATCH
13
Returns the relative position of an item in an array
OFFSET
14
Returns a reference offset from a given reference
ROW
15
Returns the row number of a reference
ROWS
16
Returns the number of rows in a reference
RTD
17
Returns real-time data from a program that supports COM automation
TRANSPOSE
18
Returns the transpose of an array
VLOOKUP
19 Searches for a value in the leftmost column of a table and then returns a value
in the same row from a column you specify in the table
Table 1.5
Vertical lookup, often known as VLOOKUP, is one of the most popular functions
in Excel.
It’s specifically designed to navigate through database sources and tables to retrieve
data.
The function performs vertical searches down a specific column by looking for a
value in the first column of a table and returning a value on the same row in a specific
column.
Approximate Match
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
The approximate match uses the logical input 1 or TRUE. This will search for the
value that is closest to your lookup value.
When using this, make sure that your lookup column or the first column of your table
is sorted either numerically or alphabetically.
For example, you want to get the letter grade equivalent of 87% for the given table in
the Figure 1.34.
Figure 1.34
STEP 1.
Figure 1.35
STEP 2.
Select an empty cell where you want to input the VLOOKUP formula and show the return
value as in Figure 1.36.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
Figure 1.36
STEP 3.
Enter the VLOOKUP formula in the formula bar using the selected arguments.
= (VLOOKUP (D4, A2:B11, 2, 1)
Argument Value
Lookup_value D4
Table_array A2:B11
Col_index_num 2
Range_lookup 1 or TRUE
Table 1.6
The Table 1.6 shows the Arguments and Values which are used in the VLOOKUP formula.
STEP 4.
Press Enter to get the return value. The output of the formula is shown in Figure 1.37.
Figure 1.37
Result
The letter grade equivalent of 87% is B-.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
Exact Match
Figure 1.38
STEP 1.
Figure 1.39
STEP 2.
Select an empty cell where you want to input the VLOOKUP formula and show the return
value as shown in the Figure 1.40.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
Figure 1.40
STEP 3.
Enter the VLOOKUP formula in the formula bar using the selected arguments.
Argument Value
Lookup_value D4
Table_array A2:B11
Col_index_num 2
Range_lookup 1 or TRUE
Table 1.7
The Figure 1.41 refers the VLOOKUP formula applied to the table.
Figure 1.41
STEP 4.
Press Enter to get the return value to get the result of the formula as shown in Figure 1.42.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
Figure 1.42
Nested Vlookup With Exact Match
Lookup_value : This the value you are looking for in your record.
Table1, Tabl2, Table3,.. : These are the tables in which you know that the value exists.
Col : The column number in the table from which you want to fetch the
value.
0 : T his is for an exact match. If you want to do an approximate
match
use 1.
Let's create a scenario first. Assume that we run three Yoga classes and the
corresponding details are given in tables as shown in Figure 1.43.
At the end of the day, you find a wrist band that has the name John on it.
Now you know that John belongs to one of three classes.
To lookup john in all three classes, we will need to put nested or chained VLOOKUP
function inside the IFERROR functions.
Figure 1.43
Here, we want to lookup john using VLOOKUP in all three tables and fetch his phone
number.
Using the above generic formula, we put this formula in cell E12.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
= IFERROR(VLOOKUP(D12,B2:C7,2,0),IFERROR(VLOOKUP(D12,F2:G7,2,0),
VLOOKUP (D12, J2:K7, 2, 0)))
Figure 1.44
How does it work?
As we know that VLOOKUP throws #N/A error when it fails to find the lookup value
in the given table, and IFERROR function returns specified value if it fed an #N/A
error
The first VLOOKUP runs. It fails to find John in the first table. It returns #N/A error.
Now, this function is encapsulated in the IFERROR function. Since the first
VLOOKUP formula has fed #N/A to IFERROR, the second part of IFERROR runs,
which again contains an IFERROR function.
In the next round, the VLOOKUP looks for john in the second table F2:G7.
It fails again and IFERROR bounces the control to the next part.
In this part, we only have VLOOKUP Function but this time it finds john in the third
table J2:K7 and returns the number.
Note: In the above example, we were sure that John is part of one three tables.
But if you are not sure that your tables contain these values or not then use another
IFERROR function that tells return "Value not found in any table".
= IFERROR(VLOOKUP(D12,B2:C7,2,0),IFERROR(VLOOKUP(D12,F2:G7,2,0),
IFERROR (VLOOKUP (D12, J2:K7, 2, 0),”Can’t find”)))
Dynamic VLOOKUP is used to find the value easily from a large amount of data in
Excel. VLOOKUP means Vertical Lookup. the dynamic VLOOKUP to make our dataset
easy and dynamic.
The MATCH function finds an exact or appropriate match of data and returns the position
in a given range. The VLOOKUP function returns only a single matched value.
But VLOOKUP with the MATCH function makes the formula dynamic. It’s a two-way
dynamic lookup. Assuming we have Table 1 of employees’ names with their ID, AGE &
SALARY as shown in Figure 1.45. We are going to find the employee’s single information
according to their ID at Cell C12. Therefore, follow the below steps.
Figure 1.45
STEPS:
Firstly,make a drop-down list in cell C11 by using the Data Validation option.
Next, write down the ID in cell B12 and select cell C12.
Then, type the following formula:
=VLOOKUP($B12,Table1,MATCH(C$11,Table1[#Headers],0),0) as shown in the
Figure 1.46.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
Figure 1.46
After that, hit Enter to see the result. The result is shown in figure 1.47.
Figure 1.47
Subsequently, we can change the header name from the drop-down to see other
information.
For that, click on the drop-down menu beside the cell as shown in Figure 1.48.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
Figure 1.48
Lastly, select the option and hit Enter to see the result. The result is shown in Figure
1.49.
Figure 1.49
Using VLOOKUP to copy data from another worksheet is very similar to a regular
VLOOKUP formula that searches on the same worksheet. The difference is that you include
the sheet name in the table_array argument to tell your formula in which worksheet the
lookup range is located.
As an example, let's pull the sales figures from Jan report to Summary sheet. For this, we
define the following arguments:
Lookup_values are in column A on the Summary sheet, and we refer to the first data cell,
which is A2.
Table_array is the range A2:B6 on the Jan sheet. To refer to it, prefix the range reference
with the sheet name followed by the exclamation point: Jan! $A$2:$B$6.
Figure 1.50
Please pay attention that we lock the range with absolute cell references to prevent it from
changing when copying the formula to other cells.
Col_index_num is 2 because we want to copy a value from column B, which is the
2nd column in the table array.
Range_lookup is set to FALSE to look up an exact match. Putting the arguments together, we
get this formula:
Drag the formula down the column and you will get this result as shown in Figure 1.50.
In a similar manner, you can Vlookup data from the Feb and Mar sheets as shown in figure
1.51.
Figure 1.51
Vlookup across multiple sheets with IFERROR
When you need to look up between more than two sheets, the easiest solution is to use
VLOOKUP in combination with IFERROR. The idea is to nest several IFERROR functions
to check multiple worksheets one by one: if the first VLOOKUP does not find a match on the
first sheet, search in the next sheet, and so on.
To see how this approach works on real-life data, let's consider the following example. Below
is the Summary table that we want to populate with the item names and amounts by looking
up the order number in West and East sheets as shown in Figure 1.52.
Figure 1.52
First, we are going to pull the items. For this, we instruct the VLOOKUP formula to search
for the order number in A2 on the East sheet and return the value from column B (2 nd column
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
in table_array A2:C6). If an exact match is not found, then search in the West sheet. If both
Vlookups fail, return "Not found".
=IFERROR (VLOOKUP (A2, East! $A$2:$C$6, 2, FALSE), IFERROR (VLOOKUP
(A2, West! $A$2:$C$6, 2, FALSE), "Not found"))
Figure 1.53
UNIT – 2
Data Validation-Specifying a valid range of values-Specifying a list of valid values-
Specifying custom validations based on formula-Working with templates-Designing the
structure of a template-Template for standardization of worksheets-Sorting and
filtering data-Sorting Tables-Multiple level sorting-Custom sorting-Filtering data for
selected view-Advanced filter options-Working with reports-Creating subtotals-
Multiple level subtotals
DATA VALIDATION
MS Excel is the most popular spreadsheet software with a wide range of features,
formulas, and functions.
Data Validation is one of the essential features in MS Excel.
When creating an Excel sheet for users or customers, we may often need to restrict the
inputs based on different criteria to ensure that all the entries or inputs are correct and
consistent.
Data Validation is the solution that helps us control user inputs into specific cells or a
range according to the specified rules.
Data Validation is an essential Excel feature that helps control or restrict user
inputs/ entries in selected cells.
It enables users to set the desired validation rules to control what type of data they
can enter into the corresponding cells in an Excel sheet.
For instance, we can restrict users to enter values between 1 to 10, enter names or
passwords in less than 30 characters, enter or choose an entry from the predefined
list of acceptable values, and more.
Some of the essential tasks (restrictions/ validations) that we can set using the Data
Validation are as follows:
7. Display an input message informing users what the corresponding cell accepts when
the user selects a cell
8. Display a warning or error message when the user enters wrong data
9. Locate incorrect or wrong entries in the validated cells
Applying Data Validation on any cell or range of cells in an Excel sheet restricts the users
from entering any undesired entries in corresponding cells based on the validation rules. For
instance, if we set validation to accept only numbers or numeric values, other users or we will
not be able to enter any values other than numbers.
Data Validation can be configured to show an input message to users when the respective cell
is selected, informing them what is allowed in it, as shown below:
As soon as we try to enter any other type of data in restricted cells, Excel instantly displays
an error message and even can display which type of data the respective cells can accept. The
error message can be of different styles and customized or created manually while setting up
the validation rules on the Excel sheet.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
1. Apply Custom Data Validation for Multiple Criteria in One Excel Cell
The OR function finds out if any of the arguments or conditions in the argument are
true or not.
We use this OR function when we have to deal with multiple criteria.
To illustrate, I’m going to use a sample dataset as an example. For instance, the
following dataset has two criteria: Criteria 1 contains a list of products, and Criteria 2
has 2 specific dates. Here, we’ll apply the OR function in cell B5 so that the input
meets any of the criteria.
Therefore, follow the below steps to apply Custom Data Validation for Multiple
Criteria in Excel.
STEPS:
First, under the Data tab, select Data Validation from the Data Tools group.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
Here, the AND function checks whether the date input is between E5 (1-Feb-2022) & E6 (1-
Mar-2022).
The COUNTIF function checks for the B5 text value to be from the range D5:D10. And at
last, the OR function checks if the B5 cell input satisfies any of the specified conditions.
Finally, you can enter any of the products from Criteria 1 or any date between the specified
dates.
But, if you enter anything which doesn’t follow either of the conditions, you’ll get an error
dialog box.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
Excel template refers to a special predefined spreadsheet that can be opened in Excel to
continue working with specified formatting and predefined formulas. Excel templates are
often used for calendars, event planning, invoicing, inventory, dashboards, budget planners,
etc.
These templates can be reused as many times as needed, and changes can be made
accordingly. We need to make only a few or no changes to suit our needs with Excel
templates.
Excel templates help us avoid cumbersome, repetitive tasks, allowing us to focus on the
actual data while simultaneously saving time and effort.
Excel templates are generally classified into the following three types based on their
purposes:
o Default Sheet Template: The default sheet template (or existing sheet template)
helps create a new worksheet with predefined adjustments.
o Default Workbook Template: The default workbook template (or existing
workbook template) helps create an entire workbook with predefined adjustments. A
workbook may contain multiple worksheets based on preferences.
o Custom Workbook Template: The custom workbook template is a predefined
workbook template saved by the user. If the user needs to work on the same structure
or format in the workbook regularly, the workbook adjustments can be saved as a
custom template in the storage.
It consists of templates of different categories required for personal use or Office use.
These built-in templates are called standard templates that are best known for their ready-to-
use feature.
To access or select the standard Excel template, we need to follow the below steps:
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
o First, we need to click on the File tab on the ribbon and choose the 'New' option from
the list.
o After clicking the 'New' option, Excel displays various templates in the right-side
section. In most cases, we usually choose the 'Blank Workbook' template. It is an
empty template that allows us to work from scratch. Additionally, Excel displays
many other templates for Budgets, Calendars, Forms, Invoices, Receipts, etc. These
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
o We need to locate the relevant template that suits our requirement and double-
click on it to start working on that template. To read more about any particular
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
o We can use the search box to locate/ find any specific template quickly. After double-
clicking or clicking the Create button for any template, the same template will be
immediately opened in the Excel window as any other typical workbook, but with
predefined structure, inputs and formatting. For example, if we double-click on
the 'Personal Monthly Budget' template, it is displayed in Excel like the below
screen:
In the above Excel template, we can change everything as per our needs. We can add
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
new rows columns, modify the existing data, change formatting like color, size, etc.
o Once we have done modifying the data or other sheet elements, we can save it as
other typical Excel workbooks for future references.
In this way, we can access any of the existing/ default/ standard Excel templates and start
manipulating the data accordingly to meet our requirements.
Excel also allows users to create their custom template in Excel using which they can avoid
working on repetitive tasks while saving time for productive operations. We can eliminate the
need to type most of the complex formulas, add sophisticated styles, adjust formatting, and
more with the custom template.
Before we learn how to create a custom template, we should know that we can save the
following settings in an excel template:
To save an Excel workbook as an Excel template, we must perform the following steps:
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
o First, we need to work on the Excel file as usual. Once we have created the workbook,
we need to navigate the File tab and click the 'Save As' option from the list.
We can also use the keyboard key 'F12' to quickly go to the Save As dialogue box.
o We must click the drop-down next to 'Save as type' and select the 'Excel Template
(*.xltx)' option in the dialogue box. If the workbook contains a macro, we must select
the 'Macro-Enabled Template (*.xltm)' option instead of 'Excel Template (*.xltx)'.
o After selecting the file type, we must enter the template name in the 'File name' box,
choose the location to save a template, and click the Save button. A new template will
be created immediately at the selected location, and we can create new workbooks
based on this template whenever required.
Since we can create or save a custom template to our device storage using the above steps, we
can also easily share it over email with other people. The recipient or client will only need to
download/ save the template to their device and open it in Excel to start using it according.
Sorting is the process of arranging the strings or integers so that they can be placed
in ascending or descending order.
A text column can be sorted alphabetically (A-Z or Z-A).
A number column can be sorted either from largest to smallest or from smallest to
largest.
A date and time column can alternatively be sorted from oldest to newest or from
newest to oldest.
Excel also has the option of sorting using a custom list or formats like cell color,
font color, or icon set.
Employee Dataset
Let’s sort the data based on the Annual Salary of each Employee in descending order.
You can choose the data and the shortcut key Ctrl + Shift + L to sort just one column.
Select the List Annual Salary column’s downward pointing arrow. From largest to
smallest, choose.
Sorting Strings
Step 1: Formatting data for sorting.
Step 2: Converting data from unsorted to sorted order in ascending order. First, highlight
the data which we want to sort.
Step 3: Then, click to Data on the Ribbon. In the Sort & Filter group, click Sort.
Step 4:- In the Sort box, select A to Z in order to sort the data in ascending order, then click
Ok.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
Step 5: Now, if we want to sort in descending then we have to select Z to A in order to sort
the data in descending order, then click OK.
CUSTOM SORTING
Excel Custom Sorting is a feature allowing users to sort the data based on their
preferences and requirements.
To sort the order based on precedence, Excel provides the option to create a
custom list for the preferred sorting order."
2. On the Data tab, in the Sort & Filter group, click Sort.
8. Click OK again.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
"Excel Advanced Filter contains more extensive and developed features than the regular
filter version. It is commonly used when users need to implement more intricate criteria to
filter their data."
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
1. Excel AutoFilter is easy and quick as it has the Excel Advanced Filter is complex, and it involves
built-in power to filter your data with a single multiple steps and criteria. It has no pre-defined
button click. All you need to do is hit the Filter setup using Auto Filter; therefore, it cannot be
button on the Excel ribbon, and your filter will applied automatically. It mandates the manual
automatically apply to the selected data set. configuring of the selected range and criteria range.
2. AutoFilter permits filtering data values with a Advanced Filter can find rows that satisfy multiple
maximum of two criteria range defined directly criteria in multiple columns where the advanced
in the standard AutoFilter dialog window. criteria must be entered in a different range of your
Excel sheet.
Excel Advanced Filter is complex as it involves many advanced steps, but it definitely gives
you more refined and customised results. Everything you want to create an advanced filter,
make sure to perform the below-given steps in your worksheet:
1. Always add a heading to your row. Therefore, each of your column will be having it
unique header as repeated headers creates confusion to Advanced Filter.
2. Advance filter won't work well with blank rows. Always make sure there are no blank
rows within the selected data range.
Refer to the below image to get an idea of how our table looks like:
For Advance Filter, always create a separate range on the top of the worksheet. Though it is
not mandatory, you can place the criteria range anywhere on the sheet. But it becomes more
convenient and accessible if you put it at the top of the sheet and separate it from the primary
data with one or more blank rows.
For example, to filter records for the North province whose total value is greater than 20000,
we will set up the below-given criteria range:
Region: North
Since we have created our criteria range, applying an advanced filter is next. Following are
the steps:
o The filter dialogue window will be displayed as soon as you click the above option.
Now we have to set up and configure the filter parameters.
Subtotals are calculated with a summary function, such as Sum or Average, by using
the SUBTOTAL function. You can display more than one type of summary function for
each column.
Grand totals are derived from detail data, not from the values in the subtotals. For
example, if you use the Average summary function, the grand total row displays an
average of all of the detail rows in the list, not an average of the values in the subtotal
rows.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402
1. First, sort the data by the column that contains the grouping value. Because Subtotal
evaluates group, you should always sort before executing the feature. In this case, sort by
the Category values to evaluate the many category groups.
2. Click anywhere in the data. Click the Data tab and then click Subtotal in the Outline
group. In Excel 2003, choose Subtotals from the Data menu.
3. In the resulting dialog box, choose Category from the At Each Change In dropdown and
Average from the Function dropdown.
4. Here’s how to get multiple functions: in the Add Subtotal To list, check Unit Price and
Units In Stock. If anything else is checked, uncheck it.
5. Check the Replace Current Subtotals and Summary Below Data options.
6. Click OK.
1. You sorted the data earlier by Category, so you don’t need to sort again.
2. Click anywhere inside the data and click Subtotal (in the Outline group). In Excel 2003,
choose Subtotals from the Data menu.
3. This time, select Sum from the Function dropdown.
4. Uncheck the Unit Price and Units In Stock in the Add Subtotal To list and check Units In
Stock.
5. This next step is very important – do not skip it. Uncheck the Replace Current Subtotals
option.
6. Click OK.
Subtotals in the same row will always be of the result of the same function. In this example,
we displayed two Average functions in the first row. When you want to evaluate the same
group, but display a different function, add a new row. Just remember to uncheck the Replace
Current Subtotals option (step 4) when doing so – that’s the key to displaying different
subtotaling functions for the same groups.
Mangayarkarasi College of Arts and Science for Women
Affiliated to Madurai Kamaraj University | Re-accredited with ‘B’ Grade by NAAC
Approved by UGC Under Section 2(f) Status| ISO 9001:2015 Certified Institution
Paravai, Madurai-625402