Bcom 4 Data Analytics
Bcom 4 Data Analytics
UNIT PAGE.N0
WORKSHEET I 1 -3
BASIC FUNCTION IN EXCEL 1
Count 1
Minimum Function 1
Maximum Function 2
Average Function 2
Sum Function 3
WORKSHEET II 4-5
If Function 4
Nested If Function 5
WORKSHEET III 6-7
Absolute And Relative Reference 6-7
WORKSHEET IV 8-9
Vlookup Function 8
Hlookup Function 9
WORKSHEET V 10 - 12
Pie Chart 10
Line Chart 10
Column Chart 11
Line Graph 11
Scatter Plot 12
Bar Chart 12
WORKSHEET VI 13 - 17
Pivot Table 13 - 17
WORKSHEET VII 18 - 19
Sorting And Filtering 18 - 19
WORKSHEET VIII 20 - 21
Conditional And Filtering 20 - 21
WORKSHEET IX 22
Aggregate Function 22
WORKSHEET I
1. COUNT
The count function counts the number of cells that contain numbers and counts within the list of
arguments. Use the count function to get the number of entries in a number field that is in a range
or array of numbers.
2. MINIMUM FUNCTION
The MIN function is a premade function in excel, which finds the lowest number in a range. It is
typed =MIN the function ignore cell with the text. It will only work for cells with numbers.
Page | 1
3. MAXIMUM FUNCTION
The max function is a premade function in excel, which finds the highest number in a range. It is
typed =MAX. the function ignore cell with the text. It will only work for cells with numbers.
4. AVERAGE FUNCTION
Average, which is the arithmetic mean, and is calculated by adding a group of numbers and then
dividing by the count of those numbers. For example, the average of 2, 3, 3, 5, 7, and 10 is 30 divided
by 6, which is 5.
Page | 2
5. SUM FUNCTION
The sum function add values. You can add individual values, cell references or ranges or a mix all three.
For example =sum(C2:G2) adds the values in the cell C2:G2.
Page | 3
WORKSHEET II
I. IF FUNCTION
The IF function is a pre made function in Excel, which returns values based on a true or false condition.
It is typed =if and has 3 parts :-
=IF(logical_test,[value_if_true],[value_if_false])
The condition is referred as to logical_test, which can check things like:-
If a number is greater than the another>
If a number is smaller than the another<
If a number or text is equal to something=
Q1. Using IF function, display the grades of the students as per the following criteria:
Page | 4
II. NESTED IF FUNCTION
Nested IF functions, meaning one IF function inside of another, allow you to test multiple criteria and
increases the number of possible outcomes.
Syntax:
=IF(logical_test,[value_if_true],[value_if_false])
Q. Using Nested IF function in Excel, display the status of the flights according to total seats of the flights
and seat sold
Page | 5
WORKSHEET III
ABSOLUTE AND RELATIVE REFERENCE
Relative Cell References
They change relative to where you copy the formula.
Q. Calculate the amount by multiplying price and quantity using relative referencing
Page | 6
Absolute Cell References
If you do not want cell references to change when you copy a formula, then make
those cell references absolute cell references. Place a "$" before the column letter if
you want that to always stay the same.
Q2. Calculate 17% of the total amount
Here we will freeze 17 percent and calculate the values using absolute referencing. Hence, we
added $ sign before E2 cell.
Page | 7
WORKSHEET IV
I. VLOOKUP FUNCTION
VLOOKUP stands for ‘Vertical Lookup.’ It is a function that makes Excel search for a certain
value in a column (the so called table array), in order to return a value from a different column
in the same row.
Syntax: =VLOOKUP(VLOOKUP=VLOOKUP(lookup_value,table_array,col_index_number,
[range_lookup)]
Q1. Using VLOOKUP function in Excel, display marks obtained by Numan and Zeeshan in the
given dataset
Syntax Used in the question: =VLOOKUP(K4,A1:I11,9,0)
Page | 8
HLOOKUP is a function in Excel used to look up a value in the first row of a table and return to
a corresponding value in the same column from a specified row. The “H” in HLOOKUP stands
for horizontal, which means that it searches for the value horizontally across the table.
WORKSHEET V
Page | 9
I. PIE CHART
Data that’s arranged in one column or row on a worksheet can be plotted in a pie chart. Pie charts show
the size of items in one data series, proportional to the sum of the items. The data points in a pie charts are
shown as a percentage of the whole pie.
Page | 10
Data that’s arranged in columns or rows on a worksheet can be plotted in a column chart. A column chart
typically displays categories along the horizontal (category) axis and values along the vertical (value)
axis, as shown in this chart:
V. SCATTER PLOT
Page | 11
In a scatter plot, a mark, usually a dot or a small circle, represent a single data point. With one mark for
every data point a visual distribution of the data can be seen. Depending on how tightly the points cluster
together, you may be able to discern a clear trend in the data.
WORKSHEET VI
Page | 12
PIVOT TABLE
A Pivot Table is a table of grouped values that aggregates the individual items of a
more extensive table (such as from a database, spreadsheets, or business
intelligence programs) within on or more discrete categories. This summary might
include sums, averages, or other statistics, which the pivot table groups together
using a chosen aggregation function applied to a grouped value.
Q1. Insert the Pivot table of all the clients with their respective total amounts
Step 1: Select the cells you want to create a Pivot Table from.
Page | 13
Step 2: Select Insert > Pivot Table
This gives a dialogue box where we need to specify the existing table or range
Page | 14
Step 3: Chose where you want the pivot table report to be placed. Select New worksheet to place the pivot
table in the new worksheet or existing worksheet and select where you want the new pivot table to appear.
Page | 15
Q2. Insert a pie chart of the pivot table in the last question
STEP 1: Select Insert > Select the table > Go to pie chart
Page | 16
Step 3: Position the pie-chart below the table
Page | 17
WORKSHEET VII
You sort data to quickly organize your data and to find the data that you want and
filter data to display only the rows that meet criteria that you specify and hidden
rows and you do not want displayed, for one or more columns of the data.
Q. Filter the data and display only the records from the Mumbai region in the given
dataset using Excel?
Step 1: Select the range of data you want to sort. Go to Home tab
Page | 18
Step 3: Click filter. Drop down arrow appears in every column. Go to region column and select
Mumbai. Click OK
Page | 19
WORKSHEET VIII
CONDITIONAL FORMATTING
Q1 Highlight cells in quantity column that are more than 20 in number
Step 1: Click on Conditional Formatting> hover over Highlight Cells Rules> click on Greater
than 20. Excel will automatically highlight the values which are greater than 20.
Page | 20
Q2 Applying top- bottom rule in cell formatting, find out items that belong to top 10 percentage
wrt amount.
Step 1: Click on Conditional Formatting> hover over Top/Bottom rules> Chose Top 10%. Excel
will automatically highlight the values that fall within the top10 percent of the selected range.
Step 1: Applying top- bottom rule in cell formatting, find out items that belong to bottom 10
percentage wrt amount.
Step 1: Click on Conditional Formatting> hover over Top/Bottom rules> Chose Bottom 10%.
Excel will automatically highlight the values that fall within the bottom 10 percent of the
selected range.
Page | 21
WORKSHEET IX
AGGREGATE FUNCTIONS
The Aggregate Function performs an aggregate calculation (like AVERAGE, COUNT, MAX,
MIN, etc) on a list of data, offering more control and options than the older SUBTOTAL
function, including the ability to ignore hidden rows and errors.
SYNTAX:
=AGGREGATE(function_num, options, ref1,[ref2,…)
Q1. Display the smallest 3 values from the given data set.
Since, there are missing values in the dataset, we will use Aggregate function in the question
above.
Syntax:
=AGGREGATE(15,6,A1:E10,(3))
Page | 22