Experiments1 Labmanual Bcs358a Data Analytics With Excel
Experiments1 Labmanual Bcs358a Data Analytics With Excel
TABLE OF CONTENTS
1. PREFACE..........................................................................................................................................2
2. INTRODUCTION TO EXCEL.........................................................................................................3
6. CONDITIONAL FORMATTING-1...............................................................................................33
7. CONDITIONAL FORMATTING-2...............................................................................................40
8. WHAT-IF ANALYSIS....................................................................................................................42
9. CLEANING DATA.........................................................................................................................47
16. REFERENCES................................................................................................................................63
17. NOTES.............................................................................................................................................64
PREFACE
Welcome to the "Data Analytics with Excel" Lab Manual, an invaluable resource meticulously crafted to
delve into the multifaceted world of data analytics using Microsoft Excel. This manual is designed to be a
comprehensive guide covering a diverse range of topics, ensuring a holistic understanding of the key
aspects of data analytics.
The journey begins with an introduction to Excel, the foundational tool for data analytics. Understanding
the basics of cells, rows, and columns sets the stage for the subsequent exploration. The manual then
delves into the power of aggregate functions in Excel, unraveling the capabilities of functions like SUM,
COUNT, and AVERAGE.
As we progress, you will immerse yourself in the intricacies of working with data, gaining insights into
data cleaning techniques and the application of conditional formatting to enhance visualizations. The
transformative potential of Pivot Tables and Pivot Charts is explored, offering a dynamic approach to data
summarization and visualization.
A dedicated section on What-If Analysis provides a deep dive into scenario modeling, allowing you to
understand how changes in variables impact outcomes. The importance of cleaning data is underscored,
addressing issues such as duplicates and missing values, ensuring that data is reliable and accurate.
Working with multiple sheets is a crucial skill in Excel, and this manual provides guidance on navigation,
linking, grouping, and protecting sheets. The generation of reports and effective data presentation is
emphasized, showcasing Excel's capabilities in conveying insights.
The latter part of the manual introduces practical worksheet creation exercises, offering hands-on
experience in scenarios like Employee Data Management, Inventory Management, and Sales Analysis. To
consolidate your learning, a section of Viva Questions is included to reinforce theoretical knowledge.
This lab manual is designed to cater to diverse learning needs. Each topic is carefully structured to
provide a seamless learning experience, ensuring that you emerge with a robust skill set in data analytics
with Excel.
Happy Larning!
EXPERIMENT NO – 1 DATE D D MM Y Y Y Y M Y
INTRODUCTION TO EXCEL
OBJECTIVES
To use Microsoft EXCEL to:
Create spread sheet(s)
Insertion of rows and columns
Enter a given set of data into an EXCEL spreadsheet
Drag and Fill
Cell Formatting
EQUIPMENT
1. Computer or Laptop
2. Microsoft EXCEL
PROCEDURE:
1. Open an Excel Worksheet (using the search bar located next to windows button in windows10).
2. In the first row, label column A as “Student Name”, column B as “Height”, and column C as
“Weight”
3. Enter the raw data into the cells (refer Figure.1)
4. Save the spread sheet by pressing the save button on top left corner or by shortcut Ctrl+S or by File
tab > Save.
5. Save As the Document by File tab > Save As > Choose the location where you want to save > Enter
the Name of the sheet as EXERCISE#1.
Inserting Rows
6. Click on the row number above which you want to insert a new row. The selected row will be the one
below which the new row will be inserted.
7. Right-click the selected row number and choose "Insert" from the context menu.
8. Alternatively, you can use the "Insert" option from the Excel ribbon: Select any row where you want
to add an extra row > Go to the "Home" tab on the Excel ribbon > In the "Cells" group, click on the
"Insert" drop-down button > Select "Insert Sheet Rows."
9. Shortcut: Select the row and use the "Ctrl + +"
10. Insert a new student data (refer the Figure. 2)
Inserting Columns
11. Click on the column letter to the left of which you want to insert a new column. The selected column
will be the one to the right of the new column
12. Right-click the selected column letter and choose "Insert" from the context menu.
13. Alternatively, you can also use the "Insert" option from the Excel ribbon: Select the column where
you want to add extra column > Go to the "Home" tab on the Excel ribbon > In the "Cells" group,
click on the "Insert" drop-down button > Select "Insert Sheet Columns."
14. Shortcut: Select the column and use "Ctrl + +"
15. Insert a new category of data "AGE" (refer the Figure. 3)
Figuere.4: Fill & drag option Figure.5: Fill & drag option
Figuere.6: Fill & drag option Figure.7: Fill & drag option
Formatting of Cell
23. Formatting cells in Excel allows you to control the appearance of the data, making it more readable
and visually appealing.
24. Select the cells under column "WEIGHT" > right click > Format Cells > Under ‘Number’ Tab select
‘Number’ > Select Decimal Places as ‘2’ > Ok
25. Alternatively, Select the cells under column "WEIGHT" > go to Number group in the ribbon > select
‘Increase decimal’ option.
SUMMARY:
Upon finishing this exercise, you will acquire the skills to proficiently generate spreadsheets, seamlessly
insert rows and columns, perform data entry with precision, expertly format cells, and skillfully utilize the
drag-and-fill functionality in Excel.
EXPERIMENT NO – 2 DATE D D MM Y Y Y Y M Y
OBJECTIVES
To use Microsoft EXCEL aggregate functions:
COUNT, COUNTA, MAX, MIN, LARGE, and SMALL
SUM, AVERAGE
COUNTIF, SUMIF, AVERAGEIF
EQUIPMENT
1. Computer or Laptop
2. Microsoft EXCEL
PROCEDURE:
Excel offers several aggregate functions that allow you to perform calculations on sets of data,
summarizing and analyzing it effectively. These functions are useful for tasks such as finding sums,
averages, maximum or minimum values, and more
COUNT: The COUNT function in Excel is used to count the number of cells in a given range that
contain numbers or values. It's a simple yet essential function for data analysis and reporting.
Syntax: =COUNT(range)
*range: The range of cells you want to count. This can be a single cell, a range of cells, or even an entire
column or row.
Note: The COUNT function counts only numeric values. If a cell contains text or is empty, it won't be
included in the count.
Q. Count the total number of students in the dataset given using column ‘D’
COUNTA: The COUNTA function in Excel is used to count the number of non-empty cells within a
given range. It counts cells that contain any type of data, including text, numbers, logical values (TRUE
or FALSE), errors, and even empty cells.
Syntax: =COUNTA(range)
*range: The range of cells you want to count. This can be a single cell, a range of cells, or even an entire
column or row.
Q. Count the total number of students in the dataset given using column ‘B’
SUM: The SUM function adds up all the numbers in a specified range and returns the sum as the result.
Syntax: =SUM(range)
*range: This is the range of cells you want to add together. It can include a single cell, a range of cells, or
multiple cell references separated by commas.
Note:
1. The SUM function can handle both positive and negative numbers.
2. It can be used with a wide range of references, including single cells, entire rows, entire columns,
and more. For example, you can use =SUM(D1, D2, D3) or =SUM(D:D) to sum all values in
column D.
3. You can also use the SUM function to perform more complex calculations, such as adding the
results of other formulas. For instance, =SUM(D2:D12) + 100 will give you the sum of the values
in D2 to D12, plus 100.
AVERAGE: The AVERAGE function is used to calculate the arithmetic mean or average of a set of
numbers.
Syntax: =AVERAGE(range)
* range: This is the range of cells you want to find the average for. It can include a single cell, a range of
cells, or multiple cell references separated by commas.
Note:
1. The AVERAGE function can handle both positive and negative numbers.
2. You can use the AVERAGE function with various types of references, including single cells,
entire rows, entire columns, and more. For example, you can use =AVERAGE(E1, E2, E3) or
=AVERAGE(E:E) to find the average of all values in column E.
3. You can also use the AVERAGE function with more complex calculations, such as finding the
average of values derived from other formulas.
MAX: The MAX function in Excel is used to find the highest or maximum value in a range of numbers.
Syntax: =MAX(range)
*range: This is the range of cells you want to find the maximum value for. It can include a single cell, a
range of cells, or multiple cell references separated by commas.
Note:
1. The MAX function can handle both positive and negative numbers.
2. You can use the MAX function with various types of references, including single cells, entire
rows, entire columns, and more. For example, you can use =MAX(F1, F2, F3) or =MAX(F:F) to
find the maximum value of all numbers in column F.
MIN: The MIN function in Excel is used to find the lowest or minimum value in a range of numbers. It's
a straightforward function that helps you quickly identify the smallest value within your data.
Syntax: =MIN(range)
* range: This is the range of cells you want to find the minimum value for. It can include a single cell, a
range of cells, or multiple cell references separated by commas
Note:
1. The MIN function can handle both positive and negative numbers.
2. You can use the MIN function with various types of references, including single cells, entire rows,
entire columns, and more. For example, you can use =MIN(F1, F2, F3) or =MIN(F:F) to find the
minimum value of all numbers in column F.
LARGE: The LARGE function in Excel is used to find the "k th" largest value in a range of numbers. It
allows you to locate values in a dataset based on their position from the largest to the smallest
Syntax: =LARGE(range, k)
*range: This is the range of cells or numbers from which you want to find the "k th" largest value. It can
include a single cell, a range of cells, or multiple cell references separated by commas.
**k: This is a number that specifies the position of the value you want to find, starting from the largest.
For example, if k is 1, you'll find the largest value; if k is 3, you'll find the third-largest value, and so on
Note:
1. The LARGE function is often used in situations where you need to find values beyond the
maximum (or minimum). For example, you might want to find the third-highest sales figure or the
fourth-highest salary in a dataset.
2. You can use the LARGE function with various types of references, including single cells, entire
rows, entire columns, and more. For example, you can use =LARGE(F1, F2, F3, 3) or
=LARGE(F:F, 3) to find the fourth-largest value in column F.
SMALL: The SMALL function in Excel is used to find the "kth" smallest value in a range of numbers. It
allows you to locate values in a dataset based on their position from the smallest to the largest.
Syntax: =SMALL(range, k)
*range: This is the range of cells or numbers from which you want to find the "kth" smallest value. It can
include a single cell, a range of cells, or multiple cell references separated by commas.
**k: This is a number that specifies the position of the value you want to find, starting from the smallest.
For example, if k is 1, you'll find the smallest value; if k is 3, you'll find the third-smallest value, and so
on.
Note:
1. The SMALL function is often used in situations where you need to find values beyond the
minimum (or maximum). For example, you might want to find the third-lowest price or the fifth-
lowest sales figure in a dataset.
2. You can use the SMALL function with various types of references, including single cells, entire
rows, entire columns, and more. For example, you can use =SMALL(F1, F2, F3, 3) or
=SMALL(F:F, 3) to find the fifth-smallest value in column F.
COUNTIF: It is used to count the number of cells in a range that meet specific criteria or conditions.
*range: This is the range of cells that you want to count values from. It can include a single cell, a range
of cells, or multiple cell references separated by commas.
**criteria: This is the condition or criteria that you want to apply to the range for counting. It can be a
specific value, text, expression, or even a cell reference.
Note:
1. The COUNTIF function is case-insensitive. It counts cells that match the criteria regardless of the
letter case. If you need a case-sensitive count, you can use the COUNTIFS function.
2. The criteria can be specified in various ways, such as specific values, text, expressions, or even
cell references.
SUMIF: s used to sum values in a range that meet a specific condition or criteria. It allows you to add up
numbers in a specified range only if they satisfy the condition you specify.
*range: This is the range of cells that you want to evaluate against the criteria. It can include a single cell,
a range of cells, or multiple cell references separated by commas.
**criteria: This is the condition that you want to apply to the range. It can be a specific value, text,
expression, or even a cell reference.
***[sum_range] (optional): This is the range of cells from which you want to sum values. If omitted,
Excel will sum the values in the range that meets the criteria specified in the first argument.
Note:
The SUMIF function is flexible and can be used to sum numbers based on various criteria, including
specific values, text, expressions, or even cell references.
AVERAGEIF: is used to calculate the average of values in a range that meet specific criteria or
conditions. It allows you to find the average of a set of numbers only if they satisfy the condition you
specify.
*range: This is the range of cells that you want to evaluate against the criteria. It can include a single cell,
a range of cells, or multiple cell references separated by commas.
**criteria: This is the condition that you want to apply to the range. It can be a specific value, text,
expression, or even a cell reference.
***[average_range] (optional): This is the range of cells from which you want to calculate the average. If
omitted, Excel will calculate the average of the values in the range that meet the criteria specified in the
first argument.
Note:
The AVERAGEIF function is versatile and can be used with various criteria, including specific values,
text, expressions, or even cell references.
SUMMARY:
Upon successfully finishing this exercise, you will be proficient in effectively using various Excel
aggregate functions.
EXPERIMENT NO – 3 DATE D D MM Y Y Y Y M Y
PROCEDURE:
There are several ways to import data into the Excel and they are as follows.
a. Importing from file (different Excel workbook, from text/.csv file, from xml file etc.)
b. Importing from database (from SQL server database, from MYSQL database, from oracle
database, from IBM Db2 database, from SAP HANA database etc.)
c. Importing from web
d. Importing from Azure
3.1 Importing data from Excel workbook
1. For importing data from one Excel workbook into another, open the Excel workbook from which
you want to copy data (the source workbook) and the Excel workbook where you want to paste
the data (the destination workbook).
2. In the source workbook, navigate to the worksheet containing the data you want to copy. Select
the range of cells you want to copy. You can do this by clicking and dragging the mouse over the
cells or using keyboard shortcuts like Ctrl+A to select the entire worksheet or Ctrl+Shift+Arrow
keys to select specific ranges.
3. Right-click on the selected cells and choose "Copy" from the context menu, or use the keyboard
shortcut Ctrl+C to copy the data.
4. In the destination workbook, go to the worksheet and cell where you want to paste the data. Click
on the cell to select it. Right-click in the destination cell and choose "Paste" from the context
menu, or use the keyboard shortcut Ctrl+V to paste the data.
1. Open Destination Excel workbook > ‘Data’ tab (from excel ribbon) > Get Data > From File >
From Text/CSV file > Select the respective .csv file to import > Load.
2. The data can be imported by other file formats using the similar procedure as like .csv file.
In Excel, data can be entered by manually by typing, copy and pasting from source file to
destination file, auto filling and importing from different sources.
3.4 Data Sorting: Data sorting in Excel allows you to arrange the rows of a worksheet in a specific order
based on the values in one or more columns. Sorting is a useful feature for organizing data in ascending
or descending order, making it easier to analyze and interpret
1. Click on a cell in the column you want to sort (this selects the entire column) or select group of
cells which needs to sort in either ascending or descending order.
2. To sort the column in ascending order, click the "Sort A to Z" or "Smallest to Largest" button in
the "Data" tab on the Excel ribbon.
3. To sort the column in descending order, click the "Sort Z to A" or "Largest to Smallest" button on
the Excel ribbon.
1. Click on a cell under the column which you want to sort (this will select the entire dataset)
2. From Excel ribbon > ‘Data’ tab > from ‘Sort & Filter’ group > select ‘Sort A to Z’ icon
3. Click on a cell within the data range that you want to sort (this will select the entire dataset)
4. From Excel ribbon > ‘Data’ tab > from ‘Sort & Filter’ group > select ‘sort’ icon
5. Select the columns which needs to be sorted by ‘Add Level’ and select the appropriate ‘Sort On’
and ‘Order’.
Q. Sort (ascending) the given data set by the DOB, SSLC Marks and PUC or Diploma Marks
Select any cell from the spread sheet > Data’ tab > from ‘Sort & Filter’ group > select ‘sort’ icon > Select
DOB > ‘Add Level’ > Select ‘SSLC Marks’ (from drop down list) > ‘Add Level’ > Select ‘PUC or
Diploma Marks’ (from drop down list) > Ok
Note: The ‘Sort On’ and ‘Order’ options can be selected accordingly as per the requirement.
Data filtering in Excel allows you to display a subset of data from a larger dataset based on specific
criteria or conditions. Filtering makes it easier to focus on relevant information and perform targeted
analysis.
1. Click on a cell within the data range that you want to sort (this will select the entire dataset)
2. From Excel ribbon > ‘Data’ tab > from ‘Sort & Filter’ group > select ‘Filter’ icon > Click on the
down arrow symbol on the column label or head > Select which fields needs to be filtered.
Select any cell from the spread sheet > Data’ tab > from ‘Sort & Filter’ group > select ‘Filter’ icon >
Click on the down arrow symbol on the column label or head > Select ‘GEN’ and unselect other all fields
> Ok
SUMMARY:
Upon completing this exercise, you will have the ability to import data from various file formats and
enhance the data for more effective analysis.
EXPERIMENT NO – 4 DATE D D MM Y Y Y Y M Y
OBJECTIVES
To use Microsoft EXCEL to:
Design and create pivot tables
Manipulating (Filtering and Sorting values) data in a pivot table
Updating and Refreshing pivot table
Presenting a breakdown of a value in a pivot table
Grouping data in pivot table
Creating pivot charts
EQUIPMENT
1. Computer or Laptop
2. Microsoft EXCEL
INTRODUCTION
What is Pivot Table
A pivot table in Excel is a powerful way to summarize, analyze, and visualize your data. It allows
you to quickly and easily transform a large dataset into a more understandable format.
The “pivot” part of a pivot table stems from the fact that you can rotate (or pivot) the data in the
table to view it from a different perspective.
Normal Table Vs Pivot Table
PROCEDURE:
1. Before creating a pivot table, make sure your data is well-organized in an Excel worksheet and check
these points
Your data should be in tabular form with rows and columns
There should be no blank rows or columns within your dataset
Ensure your data has column headers to describe the content of each column.
Eliminate any duplicates or inconsistencies
2. Selection of Data: Click anywhere within the range of your data to select it (Excel will use this
selection to create the pivot table) > Go to the "Insert" tab on the Excel ribbon > Click on
"PivotTable." (This will open the Create PivotTable dialog box. (Refer Figure. 4.1)
3. In the Create PivotTable dialog box, make sure the "Select a table or range" option is selected.
Ensure that your data range is correctly shown in the "Table/Range" field. If not, you can manually
adjust it.
4. Choose Where to Place the Pivot Table: In the Create PivotTable dialog box, select “New
Worksheet” to create the Pivot Table in a new worksheet > Click ‘Ok’. (Note: Option “Existing
Worksheet”, will create the pivot table in the existing worksheet itself). (Refer Figure. 4.1)
5. Designing of Pivot Table: Now the PivotTable Fields pane will appear on the right, the pivot table
consists all the column headers and the four areas: Filters, Columns, Rows and Values.
Rows – Here you will choose the field/s which we would like to base our Pivot Table rows
upon.
Columns – Here you will choose the field/s which we would like to base our Pivot Table
columns upon.
Values – Here you will choose the field you want Excel to calculate and our desired
calculation. (under values area only numbers fields or data only be used)
Filters – Here you will choose the field/s by which we would like to filter our data in the Pivot
Table.
6. Now drag ‘STATE’ under rows area > drag ‘ENGINEERING BRANCH’ under columns area > drag
‘SSLC MARKS’ under values are
7. Now to find the average of SSLC MARKS under columns row > right click on ‘Sum of SSLC
MARKS’ > Select ‘Value Field Settings’ > Select ‘Average’ > Click on ‘Number Format’ (to change
the format of the number display) > Under category select ‘Number’ and type decimal places as ‘2’ >
Click ‘Ok’
8. Now the pivot table displays the average SSLC marks of students, department wise with respect to
the different states with two decimal places.
9. Double click on any cell > to check the detailed data of any cell of pivot table in a separate sheet
10. If you want to modify the pivot table > drag back the field heads and select the required fields
11. Select any cell inside the pivot table > go to ‘design tab’ > Report Layout > Show it in Out Line
Form
12. To show or to don’t show the grand total of all the columns or rows go to ‘design tab’ > ‘Grand
Totals’ > select the required option.
13. To change the color of pivot table > go to ‘design tab’ > ‘pivot table styles’ > select any style which
you want
Pivot charts are used to display summarized data from a pivot table in a graphical format, making
it easier to spot trends, patterns, and insights in your data
Pivot charts are very flexible compared to normal charts
PROCEDURE:
1. Click anywhere within the range of your data to select it (Excel will use this selection to create the
pivot table) > Go to the "Insert" tab on the Excel ribbon > Go to ‘Charts’ tab > Click on ‘Pivot Chart’
(This will open the Create Pivot Chart dialog box)
2. In the Create PivotChart dialog box, make sure the "Select a table or range" option is selected. Ensure
that your data range is correctly shown in the "Table/Range" field. If not, you can manually adjust it.
3. In the Create PivotChart dialog box, select “New Worksheet” to create the Pivot Chart in a new
worksheet > Click ‘Ok’. (Note: Option “Existing Worksheet”, will create the pivot chart in the
existing worksheet itself)
4. Now the ‘PivotChart Fields’ pane will appear on the right, the ‘PivotChart’ consists all the column
headers and the four areas: Filters, Legends (Series), Axis (Categories) and Values
5. Now drag ‘STATE’ under Axis area > drag ‘ENGINEERING BRANCH’ under Legend area > drag
‘SSLC MARKS’ under values
6. Now, by default a bar chart will created for the selected data options.
7. Select ‘AP, KA, KL & TN’ from the STATE drop down list from the chart
8. Select ‘CS, EC’ from the ENGINEERING BRANCH drop down list from the chart
9. This gives the data of south Indian states SSLC average marks of students of CS, EC and ME
engineering branches.
10. The styles and types of charts can be changed by going to the ‘Design’ tab
what is slicer in excel pivot charts
In Excel, a slicer is a visual filtering tool that is primarily used in pivot charts and pivot tables to
allow users to interactively filter and narrow down the data displayed in the chart or table.
Slicers provide a user-friendly way to filter data, making it easier for users to explore and analyze
information without the need to manually change filter settings.
Once you create slicers, they are displayed as visual buttons or lists in your Excel worksheet.
Users can click on these slicer elements to filter the data displayed in the pivot chart or table.
Slicers are interactive. When a user selects one or more slicer elements, the pivot chart or table
updates in real-time to reflect the selected filter criteria. This enables users to focus on specific
data subsets or categories easily.
Slicers can be multiple in a pivot chart or table, allowing users to apply multiple filters
simultaneously to refine the data view.
Slicers typically include a "Clear" button that allows users to remove filters and restore the
original view of the data
PROCEDURE:
1. Select a cell in the pivot table or select pivot chart prepared
2. Go to ‘Insert’ tab from the Excel ribbon > Go to ‘Filters’ group > Click on ‘Slicer’ > ‘Insert Slicers’
window will be popped up > Select which specific data you want to select > Select ‘Religion’ > Click
Ok.
3. Now Slicer Elements will be created with visual buttons
4. Now the chart which will be displaced will be the data of south Indian states with SSLC average
marks of students of CS, EC and ME engineering branches specifically HINDU region students.
SUMMARY:
Upon completing this exercise, you will have the ability to create pivot tables, pivot charts and
application of slicers for analyzing the data.
EXPERIMENT NO – 5 DATE D D MM Y Y Y Y M Y
CONDITIONAL FORMATTING-1
OBJECTIVES
To use Microsoft EXCEL to:
Understand the conditional formatting
Highlight cells rules (Greater Than, Less Than, Equal To, Between, Duplicate, Unique etc.)
Use Top/Bottom rules (Top 10, Bottom 10, Above Average, Below Average etc.)
Data Bars, Color Scales and Icon Sets
Clear rules
EQUIPMENT
1. Computer or Laptop
2. Microsoft EXCEL
INTRODUCTION
What is Conditional Formatting
Conditional formatting in Excel is a feature that allows users to automatically format cells or
ranges of cells based on specified conditions or criteria.
This dynamic formatting feature is incredibly useful for data analysis, visualization, and making
your spreadsheets more informative)
Icon Sets are commonly used for tasks like data visualization, performance tracking, and progress
reporting
Q. Represent the selected data range (PUC/Diploma marks) using Icon Sets
Go to ‘Home’ tab in Excel ribbon > Click on ‘Conditional Formatting’ button in Style group >
Clear Rules > Clear Rules from Entire Sheet
Select the data range (PUC/Diploma marks under column ‘I’) > Click on ‘Conditional Formatting’
button in Style group > Icon Sets > Select any color pattern
SUMMARY:
Upon completing this exercise, you will have the ability to perform conditional formatting, highlighting
the data and using of Data Bars, Color scales and Icon Sets.
EXPERIMENT NO – 6 DATE D D MM Y Y Y Y M Y
CONDITIONAL FORMATTING-2
OBJECTIVES
To use Microsoft EXCEL to:
Understand the various formatting options
Learn the Parsing
Know how to highlight the data during data analysis
EQUIPMENT
1. Computer or Laptop
2. Microsoft EXCEL
INTRODUCTION
What is Parsing of data?
Parsing refers to the process of extracting specific parts or elements from a text string or value and
placing them in separate cells.
This can be particularly useful when user has data that is not well-structured, and user needs to
break it down into more manageable components.
SUMMARY:
Upon completing this exercise, you will have the ability to use parsing option to extract specific parts or
elements from a text string and placing them in separate cells.
EXPERIMENT NO – 7 DATE D D MM Y Y Y Y M Y
WHAT-IF ANALYSIS
OBJECTIVES
To use Microsoft EXCEL to:
Understand the What-If Analysis
Use Scenario Manager
Use Goal Seeking
Creating a Data Table, Charts and Graphs
EQUIPMENT
1. Computer or Laptop
2. Microsoft EXCEL
INTRODUCTION
What is “What-If Analysis”
What-If analysis in Excel is a powerful tool that allows users to explore different scenarios and
make predictions or decisions based on changing input values.
This feature is particularly useful for financial modeling, budgeting, and any situation where user
want to understand how changes in certain variables affect the results.
There are three primary methods for performing What-If analysis in Excel and they are (i)
Scenario Manager, (ii) Goal Seek, (iii) Data Table
Scenario Manager allows you to create and manage different scenarios for your data. You can
define different sets of input values and compare the results of each scenario. This is useful when
you have multiple variables and want to compare various combinations of values.
Goal Seek helps you find the input value needed to achieve a specific goal or result. You specify a
target value, a formula, and an input cell, and Excel iteratively determines the required input
value.
One Variable Data Table helps user to see how changing one input value impacts a single
formula or result. You set up a table with different values for the input variable, and Excel
calculates the results for each value.
Two Variable Data Table helps user to explore how two input variables affect a single result.
You set up a table with different values for both variables, and Excel calculates and displays the
results in a grid format.
Case Study:
A pen manufacturing and sales data has given. Develop a sales strategy to maximize the profits for the
different sales quantity using What-If analysis.
Q. prepare a summary report how the profits of a pen sales vary with the Quantity sold 100, 200, 300, 400
and 500 using What-If Analysis Scenario manager option? Note: Import the data sheet ‘Excecise#7’.
1. Open Exercise#7 sheet > Go to ‘Data’ tab > from ‘Forecast’ group > Click drop down menu ‘What-If
Analysis’ > Scenario Manager > Add > Enter Scenario Name as ‘Qty 200’ > Enter Changing Cells as
‘C5’ (or) select the respective cell by using mouse > Enter Comment as ‘When Qty is 200’ > Ok >
Enter Value as ‘200’ > Ok
2. Now scenario for ‘Qty 200’ is created. Similarly create multiple scenarios for the 300, 400 and 500.
3. Now from the Scenario Manager you can check different scenarios variable and their target values
automatically.
4. Once the multiple scenarios are created generate a scenario summary for the given dataset by Data
Tab > What-If Analysis > Scenario Manager > Summary > Select Report types as ‘Scenario
Summary’ > Select Result Cell as ‘C10’ (target value) > Ok
Q. Determine the pen quantity to be sold to get the profit of ₹. 500 using What-If Analysis Goal Seek
option? Note: Import the data sheet ‘Excecise#7’.
1. Open Exercise#7 sheet > Go to ‘Data’ tab > from ‘Forecast’ group click drop down menu ‘What-If
Analysis’ > Goal Seek > Enter Set Cell as ‘C10’ > Enter To Value as ‘500’ > Enter By Change Cell
as ‘C5’ > Ok
2. Now the Excel will perform calculations and display the values of carriable value (C5) and the target
value (C10) in the data
3. You can change the ‘C5’ cell value to a integer by Select Cell ‘C5’ > Home tab > Numbers Group >
Decrease Decimal > now it will show the answer as ‘167’.
Q. Develop a data table to compare the profits against different quantity sold (100, 200, 300, 400, 500,
600 700 and 800) using What-If Data Table option? Note: Import the data sheet ‘Excecise#7’.
1. Open Exercise#7 sheet > At any random cell, type ‘QTY’ and PROFIT’.
2. Under QTY enter ‘100’ and PROFIT enter ‘=C10’
3. Under QTY enter the different values of Quantity Sold ‘200, 300, 400, 500, 600, 700 and 800’
4. Select the table which has created and Go to ‘Data’ tab > from ‘Forecast’ group click drop down
menu ‘What-If Analysis’ > Data Table > for column input cell select enter ‘C5’ or select by mouse >
Ok
SUMMARY:
Upon completing this exercise, you will have the ability to use What-If analysis for the real-world
problems to improve the sales or efficiency of a process.
EXPERIMENT NO – 8 DATE D D MM Y Y Y Y M Y
CLEANING DATA
OBJECTIVES
To use Microsoft EXCEL to:
Understand the cleaning of data functions
Learn text functions UPPER, LOWER, TRIM, CONTATINATE, REPLACE, SUBSTITUTE etc.
Learn DATEVALUE, DATEADD, DATEDIF, TIMEVALUE functions
EQUIPMENT
1. Computer or Laptop
2. Microsoft EXCEL
PROCEDURE:
Excel offers several aggregate functions that allow you to perform calculations on sets of data,
summarizing and analyzing it effectively. These functions are useful for tasks such as finding sums,
averages, maximum or minimum values, and more
UPPER: It is a text function that converts all the letters in a text string to uppercase. This can be helpful
when you want to standardize the case of text or make text consistent throughout your spreadsheet.
LOWER: It is a text function that converts all the letters in a text string to lowercase. This can be helpful
when you want to standardize the case of text or make text consistent throughout your spreadsheet.
PROPER: It is a text function that capitalizes the first letter of each word in a text string while
converting all other letters to lowercase. This can be helpful when you want to standardize the case of text
or make text consistent throughout your spreadsheet.
TRIM: This function allows user to remove any leading, trailing, or extra spaces within a text string. It is
particularly useful when dealing with text imported from external sources or when you want to ensure
that your data is properly cleaned and formatted.
CONCATENATE: This function is used to combine, or concatenate, two or more text strings into a
single text string. This function can be helpful when you want to join text from different cells or add
specific characters or spaces between text elements.
Syntax-2: = “Text-1”& “Text-2” (or) == “A1”& “B1” //combining without space between words
Syntax-3: =CONCATENATE(text1, " ", text2) (or)=CONCATENATE(A1, " ", B1) //combining with
space between words
LEN: It returns the number of characters in a text string.
The date format can be converted right-click, choose "Format Cells," and then select the date format you
prefer.
DATEDIF: is used to calculate the difference between two dates and express the result in various date
units, such as days, months, or years. This function may not appear in the function dropdown. However,
user can still use it by typing the formula manually.
* start_date: This is the start date from which you want to calculate the difference.
end_date: This is the end date up to which you want to calculate the difference.
unit: This is a code that represents the time unit for the result. It can be "d" for days, "m" for months, or
"y" for years, among others.
TIMEVALUE: It is used to convert a text representation of a time into a serial number that Excel
recognizes as a time. This is particularly useful when user has time data stored as text and you want to
perform time-related calculations or formatting.
* time_text is the text string that represents the time you want to convert
FREQUENCTLY USED DATA & TIME FUNCTIONS:
TODAY(): Returns the current date.
NOW(): Returns the current date and time.
DATE(year, month, day): Creates a date based on the provided year, month, and day.
TIME(hour, minute, second): Creates a time value based on the provided hour, minute, and second.
YEAR(date): Returns the year of a date.
MONTH(date): Returns the month of a date (1 to 12).
DAY(date): Returns the day of the month (1 to 31).
HOUR(time): Returns the hour of a time.
MINUTE(time): Returns the minute of a time.
SECOND(time): Returns the second of a time.
SUMMARY:
Upon completing this exercise, you will have the skill to clean the data containing text, numbers, date etc.
EXPERIMENT NO – 9 DATE D D MM Y Y Y Y M Y
OBJECTIVES
Working with multiple sheets is essential for efficiently managing and analyzing data in a spreadsheet. It
enables you to keep your work organized and present your findings effectively in reports and
presentations.
EQUIPMENT
1. Computer or Laptop
2. Microsoft EXCEL
PROCEDURE
Creating a worksheet with the specified fields and performing calculations using appropriate formulas is a
common task in spreadsheet applications like Microsoft Excel or Google Sheets. Here's a step-by-step
guide to set up such a worksheet, calculate values, create a chart, and generate a report:
**Step 1: Create the Worksheet**
1. Open your preferred spreadsheet application (e.g., Microsoft Excel or Google Sheets).
2. Create the following column headers in the first row of your worksheet: Empno, Ename, Basic
Pay(BP), Travelling Allowance(TA), Dearness Allowance(DA), House Rent Allowance(HRA), Income
Tax(IT), Provident Fund(PF), Net Pay(NP).
**Step 2: Input Data**
3. Enter employee data in rows below the headers. For each employee, fill in Empno, Ename, BP, TA,
DA, HRA, IT, and PF.
**Step 3: Calculate Net Pay**
4. In the "Net Pay(NP)" column, use the following formula to calculate the net pay for each employee:
Net Pay(NP) = (BP + TA + DA + HRA) - (IT + PF)
Enter this formula in the first cell under "Net Pay(NP)" and drag the fill handle (a small square at the
bottom right corner of the cell) to apply the formula to all employees.
Data Analytics with Excel: BCS358A Academic Year: 2023-24
5. Select the data in the "Ename" and "Net Pay(NP)" columns. This data will be used to create a chart
showing employee names and their corresponding net pay.
6. Go to the "Insert" tab (in Excel) or "Chart" (in Google Sheets) and choose the type of chart you prefer.
A "Column" or "Bar" chart is typically suitable for this scenario.
7. Customize the chart as needed. You can add titles, axis labels, and other formatting options.
**Step 5: Generate a Report**
8. Create a new sheet in the workbook and title it "Report."
9. In the "Report" sheet, summarize the data using appropriate headings and text. For example, you can
include sections like "Employee Salary Summary" and "Chart Analysis."
10. Write a brief analysis of the data, discussing key findings, trends, or insights. For instance, you can
mention the highest and lowest net pay, the average net pay, or any noteworthy patterns you observe in
the chart.
11. Insert the chart you created in the "Chart Analysis" section.
12. You can use functions like AVERAGE, MAX, MIN, and COUNT to calculate summary statistics for
the Net Pay column in the "Report" sheet.
13. Format the report sheet to make it visually appealing and easy to read.
**Step 6: Save and Share**
14. Save your workbook with a descriptive name.
15. Share the report with relevant stakeholders, such as your team or management.
EXPERIMENT NO – 10 DATE D D MM Y Y Y Y M Y
OBJECTIVES
Working with Multiple Sheets: work with multiple sheets within a workbook is crucial for organizing and
managing data, perform complex calculations and create comprehensive reports.
EQUIPMENT
3. Computer or Laptop
4. Microsoft EXCEL
PROCEDURE
1. **Creating and Renaming Sheets**:
- In Excel: Right-click on a sheet tab at the bottom of the window and select "Insert" to add a new sheet.
To rename a sheet, double-click on its tab and type the new name.
- In Google Sheets: Click the "+" button at the bottom left to add a new sheet. To rename a sheet, right-
click on its tab and select "Rename."
2. **Navigating Between Sheets**:
- In Excel: Simply click on the sheet tab at the bottom of the window to switch between sheets.
- In Google Sheets: Click on the sheet tab at the bottom of the window to switch between sheets.
3. **Copying and Moving Data**:
- To copy data from one sheet to another, select the cells you want to copy, copy them (Ctrl+C or
Command+C), go to the destination sheet, and paste (Ctrl+V or Command+V).
- To move data, cut it (Ctrl+X or Command+X) and paste it in the target sheet.
4. **Linking Data**:
- You can create links to cells or data in one sheet from another. This is helpful for creating summary
sheets or cross-referencing data. In Excel, use the "=" formula to reference data in another sheet (e.g.,
'=Sheet2!A1').
5. **Grouping and Ungrouping Sheets**:
- In Excel, you can group sheets by selecting multiple sheet tabs while holding down the Ctrl key.
Right-click and choose "Group." This allows you to make changes to multiple sheets simultaneously. To
ungroup, right-click and select "Ungroup Sheets."
- Google Sheets doesn't have native grouping of sheets, but you can use the built-in filter feature to
show or hide specific sheets.
6. **Consolidating Data**:
- Use functions like VLOOKUP, HLOOKUP, or INDEX/MATCH to consolidate data from multiple
sheets into a summary sheet. This is useful for creating comprehensive reports.
7. **Protecting and Hiding Sheets**:
- You can protect sheets with a password to prevent unauthorized access or editing. In Excel, right-click
the sheet tab, choose "Protect Sheet," and set a password. You can also hide sheets to keep them out of
view but still accessible through the "Format" menu.
8. **Using 3D Formulas**:
- In Excel, you can use 3D formulas to calculate data across multiple sheets. For example, to sum the
same cell in multiple sheets, you can use the formula '=SUM(Sheet1:Sheet3!A1)'.
9. **Creating Pivot Tables and Charts**:
- Pivot tables and charts can analyze data from multiple sheets collectively, allowing you to create
powerful visualizations and summaries.
10. **Printing Multiple Sheets**:
- To print multiple sheets, select the sheets you want to print by holding Ctrl and clicking their tabs,
then go to the print settings and choose "Print Active Sheets" or "Print Selection.".
EXPERIMENT NO – 11 DATE D D MM Y Y Y Y M Y
OBJECTIVES
Creating a worksheet for inventory management is essential for tracking and analyzing product data.
Here's a step-by-step guide on how to set up the worksheet, perform calculations, create a chart, and
generate a report
EQUIPMENTs
1. Computer or Laptop
2. Microsoft EXCEL
PROCEDURE:
**Step 1: Create the Worksheet**
1. Open your preferred spreadsheet application (e.g., Microsoft Excel or Google Sheets).
2. Create the following column headers in the first row of your worksheet: Product code, Product name,
Product type, MRP, Discount (%), Cost after Discount, Date of purchase.
**Step 2: Input Data**
3. Enter product data in rows below the headers. Fill in the details for each product, including Product
code, Product name, Product type, MRP, Discount (%), and Date of purchase.
**Step 3: Calculate Cost after Discount**
4. In the "Cost after Discount" column, use the following formula to calculate the cost of each product
after applying the discount:
Cost after Discount = MRP - (MRP * (Discount % / 100))
Enter this formula in the first cell under "Cost after Discount" and drag the fill handle to apply the
formula to all products.
**Step 4: Create a Chart**
5. Select the data in the "Product type" and "Cost after Discount" columns. This data will be used to
create a chart showing product types and their corresponding costs after discounts.
6. Go to the "Insert" tab (in Excel) or "Chart" (in Google Sheets) and choose the type of chart you prefer.
A "Bar" or "Pie" chart can be suitable for this scenario, depending on the nature of your data.
7. Customize the chart as needed. Add titles, axis labels, and other formatting options.
**Step 5: Generate a Report**
8. Create a new sheet in the workbook and title it "Report."
9. In the "Report" sheet, summarize the data using appropriate headings and text. For example, include
sections like "Inventory Summary" and "Chart Analysis."
10. Write a brief analysis of the data, discussing key findings, trends, or insights. Mention any notable
product types, the total cost after discounts, or other observations.
11. You can use functions like SUM, AVERAGE, MAX, MIN, and COUNT to calculate summary
statistics for the "Cost after Discount" column in the "Report" sheet.
12. Format the report sheet to make it visually appealing and easy to read.
**Step 6: Save and Share**
13. Save your workbook with a descriptive name.
14. Share the report with relevant stakeholders, such as your team or management.
By following these steps, you can create an inventory management worksheet, calculate values, generate
a chart, and report the data in a structured and visually appealing manner. This approach is commonly
used for managing and analyzing inventory data in business and retail settings
EXPERIMENT NO – 12 DATE D D MM Y Y Y Y M Y
OBJECTIVES
Creating a sales analysis worksheet for a merchandise store involves organizing and analyzing a wide
range of data. Here's a step-by-step guide on how to set up the worksheet, perform data segmentation,
create pivot tables, and use different types of charts for comparative analysis
EQUIPMENT
1. Computer or Laptop
2. Microsoft EXCEL
PROCEDURE:
**Step 1: Create the Worksheet**
1. Open your preferred spreadsheet application (e.g., Microsoft Excel or Google Sheets).
2. Create columns for the following fields: Order ID, Customer ID, Gender, Age, Date of Order, Month,
Online Platform, Category of Product, Size, Quantity, Amount, Shipping City, and any other relevant
details.
**Step 2: Input Data**
3. Enter sales data in rows below the headers. Include details for each sale, such as Order ID, Customer
ID, and so on.
**Step 3: Data Segmentation**
4. Use Excel's or Google Sheets' filtering or sorting tools to segment the data based on different criteria.
For example, you can sort data by "Category of Product" to group products by category.
**Step 4: Create Pivot Tables**
5. Select the data and create pivot tables for in-depth analysis. Here's an example of pivot table usage:
- Create a pivot table to show total sales by "Category of Product" and "Online Platform."
- Create another pivot table to show the average age of customers by "Gender" and "Category of
Product."
**Step 5: Create Charts**
6. Use pivot tables or the segmented data to create various types of charts for comparative analysis:
- Create a bar chart to compare total sales by product category.
EXPERIMENT NO – 13 DATE D D MM Y Y Y Y M Y
OBJECTIVES
Creating a report and presentation using auto filter and macros is a powerful way to analyze and present
data in a structured and automated manner. Below is a step-by-step guide on how to generate a report and
presentation using these tools
EQUIPMENT
1. Computer or Laptop
2. Microsoft EXCEL
PROCEDURE
**Step 1: Prepare Your Data**
1. Open your spreadsheet application (e.g., Microsoft Excel) and ensure your data is organized in a clear
and structured manner with headers in the first row.
**Step 2: Create a Report**
2. Filter the data using Autofilter to focus on specific criteria or subsets of data relevant to your report. To
apply an Autofilter:
- Select the range of data you want to filter.
- Go to the "Data" tab (in Excel) or the equivalent in your spreadsheet software.
- Click on "Filter" or "Autofilter."
- Set the criteria for your filter, such as product category, date range, or any other relevant field.
- Review and analyze the filtered data to gather insights.
3. Create a summary or report based on the filtered data. You can manually create a report by copying and
pasting the filtered data into a new sheet or use Excel functions to calculate specific metrics.
**Step 3: Create a Presentation**
4. To create a presentation, you can use a tool like Microsoft PowerPoint or Google Slides.
5. Copy and paste the relevant information and insights from your report into presentation slides. Ensure
that the presentation is well-structured and visually appealing, using charts, graphs, and visuals to convey
your data effectively.
VIVA QUESTIONS
29. What is the role of the "Row Labels" and "Column Labels" in a PivotTable?
30. How can you customize the appearance of a PivotTable for better presentation?
31. What is a PivotChart, and how does it complement PivotTables in data analysis?
32. Can you describe the process of creating a PivotChart from a PivotTable?
33. How does drilling down into data work in the context of PivotTables?
34. What is the significance of the "Slicer" feature in PivotTables?
35. Explain the concept of calculated fields in PivotTables and their applications.
36. What is the main purpose of using conditional formatting in Excel?
37. How can you apply conditional formatting to highlight cells that meet a specific criterion?
38. Can you explain the difference between "Format Cells That Contain" and "Format Cells That Are"
in conditional formatting?
39. In what ways does data bars contribute to data visualization in conditional formatting?
40. How can you use the "Top/Bottom Rules" in conditional formatting to highlight specific data
points?
41. What role does the "Manage Rules" option play in the conditional formatting settings?
42. Explain the purpose of the "Clear Rules" option and how it affects conditional formatting.
43. How can you create custom conditional formatting rules tailored to your specific data analysis
needs?
44. In what scenarios would you use the "Format Painter" tool for conditional formatting in Excel?
45. What is the primary purpose of performing "What-If" analysis in Excel?
46. Can you explain the role of scenarios in the context of "What-If" analysis?
47. How can the Goal Seek feature be utilized for "What-If" analysis in Excel?
48. What is the difference between data tables and scenario manager in Excel's "What-If" analysis
tools?
49. In what situations would you use the Solver tool for advanced "What-If" analysis in Excel?
50. Why is data cleaning an essential step in the data analysis process in Excel?
51. Can you explain the significance of removing duplicates when cleaning data in Excel?
52. How does the TRIM function contribute to cleaning and standardizing data in Excel?
53. In what situations would you use the "Text to Columns" feature for data cleaning?
54. What are some common techniques for handling missing values during the data cleaning process in
Excel?
55. How can you navigate between multiple sheets in an Excel workbook?
56. Explain the purpose of linking cells or data between different sheets in Excel.
57. What is the significance of grouping and ungrouping sheets in Excel, and how is it done?
58. How can you protect or lock specific sheets in an Excel workbook, and why would you do so?
59. Describe the process of referencing data from one sheet to another in Excel.
REFERENCES
1. Berk & Carey - Data Analysis with Microsoft® Excel: Updated for Office 2007®, Excel: Updated for
Office 2007®, Third Edition, © 2010 Brooks/Cole, Cengage Learning, ISBN-13: 978-0-495-39178-4
2. Wayne L. Winston Microsoft Excel 2019: Data Analysis And Business Modeling, PHI, ISBN:
9789389347180
3. Aryan Gupta - Data Analysis in Excel: The (https://www.simplilearn.com/tutorials/excel-
tutorial/data-analysis-excel)
1. MS EXCEL Basics:
2. https://www.youtube.com/watch?v=rJPWi5x0g3I&list=PLWPirh4EWFpEpO6NjjWLbKSCb-
wx3hMql&index=2
3. PIVOT TABLE: https://www.youtube.com/watch?
v=4PWVFBiFVVU&list=PLWPirh4EWFpEpO6NjjWLbKSCb-wx3hMql&index=70
4. PIVOT CHART: https://www.youtube.com/watch?
v=mc7xO8F8Pj8&list=PLWPirh4EWFpEpO6NjjWLbKSCb-wx3hMql&index=69
5. ONDITIONAL FORMATTING: https://www.youtube.com/watch?
v=7iKoccSTNZA&list=PLWPirh4EWFpEpO6NjjWLbKSCb-wx3hMql&index=78
6. DATA VALIDATION: https://www.youtube.com/watch?
v=nMxl1_NAcxc&list=PLWPirh4EWFpEpO6NjjWLbKSCb-wx3hMql&index=81
7.
NOTES