Data Analytics with MS Excel Lab Manual Full 2024-25
Data Analytics with MS Excel Lab Manual Full 2024-25
Lab Manual
Lab Code: BCS358A
AY: 2024-25 Semester : 3rd
Figure 1.4
Step 5: Now type the student names and other details in the Excel Sheet as shown in the
Figure 1.5.
Figure 1.5
Step 8: The Final Table looks as shown in Figure 1.8. Final Output
Figure 1.8
Figure 2.1
Step 3: Now add the Total Marks, Percentage, Result and Class columns to the table as shown in
Figure 2.2.
Figure 2.2
6 GM Institute of Technology, Davangere Data Analytics with MS Excel Lab Manual
Step 4: Now to Calculate Total Marks click in cell I2 in the Excel Sheet and type the following
formula =SUM(C2:H2) and press enter to get the Total Marks of all the six subjects mentioned
in the table paste the same formula to all the other cells in Total Marks column to get the Total
Marks of all the 10 students as shown in Figure 2.2.
Step 5: To get the percentage of a student click in cell J2 and type the following function
=AVERAGE(C2:H2) and press enter the percentage is calculated and now paste the same
function to all other cells of Percentage column to get the Total Marks of all the 10 students as
shown in Figure 2.2.
Step 6: To get the Result of a student click in cell K2 and type the following formula using the
IF condition =IF(AND(C2>=35,D2>=35,E2>=35,F2>=35,G2>=35,H2>=35),"Pass","Fail"))
and press enter and the result of the student is displayed and now paste the same IF condition
formula to all other cells of Result column to get the Results of all the 10 students as shown in
Figure 2.2.
Step 7: To get the Class of a student click in cell L2 and type the following IF condition
=IF(AND(C2>=35,D2>=35,E2>=35,F2>=35,G2>=35,H2>=35), IF(J2>=75, "Distinction",
IF(J2>=60, "First Class",IF (J2>=50, "Second Class", IF(J2>=35, "Pass
Class")))),"Fail")and press enter and the Class of the student is displayed and now paste the
same IF condition formula to all other cells of Class column to get the Class secured by all the 10
students as shown in Figure 2.2. Final Output
Figure 2.3
Figure 3.1
Step 2: Now select the entire table from cells B3 to I9 and click on Insert Tab and click on
Column Chart option from charts group to insert a column chart from the options available select
2D Column Chart option. We get the Chart as shown in the Figure 3.2.
Step 4: In order to insert Horizontal Axis title for the chart click on the chart first now click on
Layout Tab, click on Axis Title option in Labels group, click on Primary Horizontal Axis Title
option and select Title below Axis option. Now click inside the text box delete the existing text
and type the Horizontal Axis title as “Computer Components” for your chart as shown in
Figure 3.2.
Step 5: In order to insert Vertical Axis title for the chart click on the chart first now click on
Layout Tab, click on Axis Title option in Labels group, click on Primary Vertical Axis Title
option and select Rotated Axis option. Now click inside the text box delete the existing text and
type the Vertical Axis title as “No of Units Sold” for your chart as shown in Figure 3.2.
Creating a Line Chart for the above Table Data as shown in Figure 3.1:
Step 6: Now select the entire table from cells B3 to I9 and click on Insert Tab and click on
column option from charts group to insert a Line chart from the options available select 2D Line
Chart option. We get the Chart as shown in the Figure 3.3.
Step 8: Now finally save the file with the filename “ Working with Charts in MS Excel ”
which will be saved in Documents Folder by default.
Procedure: Create a table and type all the data as shown in Figure 4.1 in a new Excel file and
perform the following steps.
Figure 4.1
Step1: Select the cells from B2 to F10 and click on the Insert Tab, click on Pivot Tables option
in Tables Group on the ribbon and select the Pivot Table option from the menu as shown in
Figure 4.2 and a Create Pivot Table Box appears immediately as shown in Figure 4.3.
Figure 4.5
Step 4: Now click on OK button in the dialog box to generate the Pivot Chart. A Pivot Table
with Pivot Chart is generated and inserted into a new Excel Sheet, in order to display the Pivot
Table and Chart select or click on all the fields shown on the right of the window section which
5. Create a Table containing data regarding prices of Cars, SUVs, Trucks and Bikes of
different companies Like Honda, Tata and Hyundai Vehicles and implement Data
Validation rules on the table as applicable. Save the file as “ Data Validation in MS
Excel ”.
Procedure: Create a Table containing the Vehicles data as shown in Figure 5.1
Figure 5.1
Step 1: Select the cells from C3 to C11 using left mouse button under Cars field as per Figure
5.1 Table and click on Data Tab, Select Data Validation Option under Data Tools Group and
click on Data Validation Option as shown in Figure 5.2. Now Data Validation Dialog Box
appears as shown in Figure 5.3.
Figure 5.2
Figure 5.4
Step 3: Now for SUV column repeat the same procedure as mentioned in Step 2 but enter the
Minimum Value as 800000 and Maximum Value as 1500000 and select the Between condition
as per step 2.
Step 5: Now for BIKES column repeat the same procedure as mentioned in Step 2 but enter the
Minimum Value as 50000 and Maximum Value as 100000 and select the Between condition as
per step 2.
6. Create a Table showing Sales Details of Different Types of Computers, and the cells
containing different values should highlight with different cell colors using Conditional
Formatting feature in MS Excel. Finally Save the file with the filename as “Conditional
Formatting in MS Excel”.
Procedure: Create a Table in MS Excel showing Sales Details of Different Types of Computers
with the following data as shown in Figure 6.1.
Figure 6.1
Step 1: The Table Data values shown in Figure 6.1 should satisfy the Conditional Formatting
rules as shown in Figure 6.2.
Step 4: Now click on Fill tab in the Format Cells dialog box and click on the Red Color box in
the Background Color option, now the selected Red Color preview is shown in Sample section
now finally click on OK button to apply this fill color for the cells containing values less than 50.
Step 5: Now repeat the steps from 1 to 4 for all other conditions as shown in Figure 6.2 and
select the appropriate colors and conditions as given in the below table :
Step 6: Once you apply all the conditions to the cells from C3 to G12 as shown in Table 6.1 the
final Table will look as shown in Figure 6.6.
Step 6: Now save the file with the Filename as “Conditional Formatting in MS Excel”.
7. Create a Table with the Students Details showing the Implementation of Cleaning Data
with Text Functions in MS Excel. Finally Save the file with the filename as “ Cleaning
Data with Text Functions in MS Excel”.
Procedure: Create a Table in MS Excel showing Student Details with the following Fields as
shown in Figure 7.1.
Figure 7.1
Step 1: Create a Table in MS Excel and Type the data as shown in Figure 7.1. Now place the
mouse pointer on the cell E4 and Type the function as =TRIM(B4) and press enter now the
resulting text in cell E4 will be trimmed with trailing, leading and to single space if there are
multiple spaces between First Name and Last Name as shown in Figure 7.2. And now copy and
paste the same formula upto cell E8.
Step 2: Now type the following function in cell F4 to get a Trimmed and Capitalized Names
=TRIM(UPPER(B4)) and copy and paste the same formula upto cell F8. The Output is as shown
in Figure 7.2.
Step 3: Now type the following function in cell G4 to get a Trimmed and All small letters in
Names =TRIM(LOWER(B4)) and copy and paste the same formula upto cell G8. The Output is
as shown in Figure 7.2.
Step 4: Now type the following function in cell H4 to get a Trimmed and All First Letters in
Names Capitalized =TRIM(PROPER(B4)) and copy and paste the same formula upto cell H8.
The Output is as shown in Figure 7.2.
Figure 7.2 OUTPUT Showing the Implementation of All the Text Cleaning Functions in
MS Excel
Step 6: Now save the file with the Filename as “ Cleaning Data with Text Functions in MS
Excel ”.
8. Create a Table with the Students Details showing the Implementation of Date and Time
Functions in MS Excel. Finally Save the file with the filename as “ Working with Date
and Time Functions in MS Excel”.
Procedure: Create a Table in MS Excel showing Student Details with the following Fields as
shown in Figure 8.1.
Figure 8.1
Step 1: Create a Table in MS Excel and Type the data as shown in Figure 8.1. Now to find the
Age of a student in Years place the mouse pointer on the cell E4 and Type the function as
=DATEDIF(C4,D4,"Y") and press enter now the age of the student is displayed in Years as
shown in Figure 8.2. And now copy and paste the same formula up to cell E8 to get the age of all
the students in Years in the table.
Step 2: Now to find the Age of a student in Months place the mouse pointer on the cell F4 and
Type the function as =DATEDIF(C4,D4,"M") and press enter now the age of the student is
displayed in Months as shown in Figure 8.2. And now copy and paste the same formula up to
cell F8 to get the age of all the students in Months in the table.
Step 3: Now to find the Age of a student in Days place the mouse pointer on the cell G4 and
Type the function as =DATEDIF(C4,D4,"D") and press enter now the age of the student is
displayed in Days as shown in Figure 8.2. And now copy and paste the same formula up to cell
G8 to get the age of all the students in Days in the table.
Step 4: Now to find the today’s Date & Time place the mouse pointer on the cell H4 and Type
the function as =NOW() and press enter so that we get the Today’s Date and Time as shown in
Figure 8.2 which is updated every time the file is opened. Now copy and paste the same formula
up to cell H8 to get the Date & Time for all the students in the table.
Figure 8.2 OUTPUT Table showing the Students Age in Years, Months and Days, Today’s Date
& Time and Course completion Dates of all the Students by Implementing the Date and Time
Functions in MS Excel.
Step 6: Now save the file with the Filename as “ Working with Date and Time Functions in
MS Excel ”.
9. Create worksheet with following fields: Empno, Ename, Basic Pay (BP), Travelling
Allowance (TA), Dearness Allowance (DA), House Rent Allowance (HRA), Income Tax
(IT), Provident Fund (PF), Net Pay (NP). Use appropriate formulas to calculate the above
scenario. Analyse the data using appropriate chart and report the data. Finally Save the file
with the filename as “ Employee Salary Details ”.
Procedure: Create a Table in MS Excel showing Employee Salary Details with the following
Fields as shown in Figure 9.1.
Figure 9.1
Step 1: Create a Table in MS Excel and Type the data as shown in Figure 9.1. Now to find the
Travelling Allowance (TA) 3% for Basic Pay (BP) amount place the mouse pointer on the cell
D3 and Type the formula =C3*0.03 and press enter now the Travelling Allowance (TA) 3% for
the Employees Basic Pay is displayed as shown in Figure 9.2. And now copy and paste the same
formula from D4 to D7.
Step 2: Now to find the Dearness Allowance (DA) 10% for Basic Pay (BP) amount place the
mouse pointer on the cell E3 and Type the formula =C3*0.1 and press enter now the Dearness
Allowance (DA) 10% for the Employees Basic Pay is displayed as shown in Figure 9.2. And
now copy and paste the same formula from E4 to E7.
Step 3: Now to find the House Rent Allowance (HRA) 5% for Basic Pay (BP) amount place the
mouse pointer on the cell F3 and Type the formula =C3*0.05 and press enter now the House
Rent Allowance (HRA) 5% for the Employees Basic Pay is displayed as shown in Figure 9.2.
And now copy and paste the same formula from F4 to F7.
Step 4: Now to find the Income Tax (IT) 12% for Basic Pay (BP) amount place the mouse
pointer on the cell G3 and Type the formula =C3*0.12 and press enter now the Income Tax (IT)
Step 5: Now to find the Provident Fund (PF) 5% for Basic Pay (BP) amount place the mouse
pointer on the cell H3 and Type the formula =C3*0.05 and press enter now the Provident Fund
(PF) 5% for the Employees Basic Pay is displayed as shown in Figure 9.2. And now copy and
paste the same formula from H4 to H7.
Step 6: Now to find the Net Pay (NP) for all the Employees place the mouse pointer on the cell
I3 and Type the formula =SUM(C3:F3)-G3-H3 and press enter now the Net Pay (NP) for all the
Employees is displayed as shown in Figure 9.2. And now copy and paste the same formula from
I4 to I7.
Step 7: Now to Analyze the Table data insert a 2D Column Chart, select the cells from C2 to I7
in the table using the mouse and click on Insert Menu and click on Column option present in
Charts Group and click on First option in 2D Column Charts. You will get the Chart as shown in
Figure 9.3.
Figure 9.3
25 GM Institute of Technology, Davangere Data Analytics with MS Excel Lab Manual
Step 8: Now to Analyze the data of each Employee insert a Pie Chart select cells from B3 to I3
for the first Employee in the Table and click on Insert Menu and click on Pie option present in
Charts Group and click on First option in 2D Pie Charts. You will get the Chart as shown in
Figure 9.4. Now Repeat Step 8 in order to graphically analyze the data of each employee using
the Pie Chart.
Figure 9.4
Step 9: Now save the file with the Filename as “ Employee Salary Details ”.
Figure 10.1
Step 1: Type the data as shown in Figure 10.1. Now to find the Cost after 10% Discount place
the mouse pointer on the cell F3 and Type the formula =E3-E3*0.1 and press enter now the Cost
after 10% Discount for the Product P001 is displayed as shown in Figure 10.1. And now copy
and paste the same formula from F4 to F7 to calculate the 10% discount for all the products
given in the Table.
Step 2: Now to Analyze the Table data insert a 2D Column Chart, select the cells from D2 to F7
in the table using the mouse and click on Insert Tab and click on Column option present in
Charts Group and click on First option in 2D Column Charts. You will get the Chart as shown in
Figure 10.2.
Figure 10.2 Chart showing the comparison of MRP and Cost after 10% discount of all Products.
Step 4: Now save the file with the Filename as “Inventory Details”.
11. Create worksheet on Sales analysis of Merchandise Store: data consisting of Order ID,
Customer ID, Gender, Age, Date of Order, Month, Online Platform, Category of Product,
Size, Quantity, Amount, Shipping City and other details. Use formulas to segregate different
categories and perform a comparative study using pivot tables and different sort of charts.
Procedure: Create a Table in MS Excel showing Merchandise Details with the following Fields
as shown in Figure 11.1.
Figure 11.1
Step 1: Type the data as shown in Figure 11.1. Now to Analyze the Merchandise sold using a
Pivot Table click on Insert Tab select the Pivot Table Option in Tables group in the ribbon and
select the first option i.e. Pivot Table using the mouse and left clicking on the option. A Pivot
Table is displayed as shown in Figure 11.2.
Step 2: In the Pivot Table Choose fields to add to the report in the Pivot Table Field List shown
at the right side part as shown in Figure 11.2. Now select the fields Amount, Online Platform,
Category of Product and Shipping City and move the field Shipping City from Row Labels
Section to Column Labels Section as shown in Figure 11.2 in the right side bottom sections of
the Pivot Table.
Figure 11.3
Step 4: In order to analyze the Merchandise sold Amount Insert a Area graph select the cells L2
to L7 from table refer Figure 11.1 click on Insert tab select Area Chart option in Charts Group
and select first option under 2D Area section. Now the Graph is displayed as shown in Figure
11.4.
Figure 11.4
Step 5: Now save the file with the Filename as “Merchandise Sales Details”.