Professional Documents
Culture Documents
Aim:
Getting Started with Excel: Creation of spread sheets, Insertion of rows and columns, Drag &
Fill, use of Aggregate functions.
Procedure:
1. Create a suitable examination database and find the sum of the marks(total) of each Student,
Average, pass or fail and grade secured by each student.
Rules
Pass if marks in each subject >=35,
Distinction if average>=70,
First class if average>=60 but <70,
Second class if average>=50 but<60,
Third class if average>=35andbut<50,
Fail if marks in any subject is<35.
Solution:
Display average marks of the class, subject wise and pass percentage
Type the student database with the required fields starts from A1 cell.
To find the total marks of a student click on the cell “J5” and type the following formula:
=SUM(E5:I5)
To find the total marks for the remaining students select “J5” cell and drag down to the
remaining students.
=J5/5
To find the average marks for the remaining students select “J2” cell and drag down to the all the
students.
=IF(AND(E5>=35,F5>=35,G5>=35,H5>=35,I5>=35),”Pass”,”Fail”)
To check the remaining students are Pass/Fail select the cell “L5” and drag down to all the
students.
To find the grade of a student click on the cell “M5” and type the following formula
=IF(AND(E5>=35,F5>=35,G5>=35,H5>=35,I5>=35),IF(K5>=75,”Distinction”,IF(K5>=65,
”First class”,IF(K5>=50,”Second class”,IF(K5>=35,”Third class”)))),”Fail”)
To find the grade for the remaining students select “M5” cell and drag down to the all the
students.
Finally we get the following student database with total, average and grade
OUTPUT:
Experiment No: 2
Aim:
Working with Data: Importing data, Data Entry & Manipulation, Sorting & Filtering.
Procedure:
Microsoft Excel is a powerful tool for managing and analyzing data. Whether you are dealing
with a large dataset or a simple list, Excel offers various features for importing data, entering
information, manipulating content, sorting, and filtering.
Prepare a salary statement for the following information and plot a graph
BASIC
SL NO EMP NAME
PAY
1 ASHIKA K 70000
2 ADITHI S 5000
3 BASAVARAJ 30000
ALWIN
4 250000
SAVIO
5 SAHADIYA 100000
BHANU
6 10000
PRIYA
NATIM
7 11000
MALLICK
a. DA is 3% of basic
b. HRA is 5% of basic
c. Tax is 5% of Gross
IV. Sort the data on the basis of employee name in ascending order
V. Plot the column graph by taking employee name on x-axis and net salary on y-axis
VI. Apply custom filter and display the emp names for whom the Basic pay>=10000
SOLUTION:
1. Type the text i.e. “EMPLOYEES SALARY STATEMENT” in the cell from “A1 to H1”
2. Type the SL NO, EMPLOYEE NAME, BASIC PAY, DA, HRA, GROSS, TAX, NET
SALARY in A2, B2, C2, D2, E2, F2, G2, H2 respectively
4. Calculation for
DA = C2*3%
HRA = C2*5%
GROSS = C2+D2+E2
TAX = F2*5%
5. Calculation for
MAXIMUM = max(C2:C8)
MINIMUM = min(C2:C8)
COUNT = countif(C2:C8,”&>=10000”)
6. For Sorting
Select data range -> Click data menu ->Sort -> Sort by -> Emp Name -> Sort on ->
7. For Graph
Select data range -> Click insert menu -> Chart -> Select column chart -> OK
8. For Filtering
Apply filter selecting Basicpay, then -> click Number filter -> Select greater than and equal to ->
enter 10000
Click OK
OUTPUT:
Filtered Data:
Procedure:
Pivot tables are one of Excel's most powerful features. A pivot table allows to extract the
significance from a large, detailed data set.
Solution:
Data set consists of 14 records and 5 fields. Order ID, Product, Category, Amount, Date and
Country.
3. Click OK.
Drag fields
The PivotTable Fields pane appears. To get the total amount exported of each product, drag the
following fields to the different areas.
Sort
To get Banana at the top of the list, sort the pivot table.
Filter
Because we added the Country field to the Filters area, we can filter this pivot table by Country.
For example, which products do we export the most to Canada?
By default, Excel summarizes your data by either summing or counting the items. To change the
type of calculation that you want to use, execute the following steps.
3. Choose the type of calculation you want to use. For example, click Count.
4. Click OK.
Two-dimensional Pivot Table
If you drag a field to the Rows area and Columns area, you can create a two-dimensional pivot
table. First, insert a pivot table. Next, to get the total amount exported to each country, of each
product, drag the following fields to the different areas.
1. Country field to the Rows area.
2. Product field to the Columns area.
3. Amount field to the Values area.
4. Category field to the Filters area.
Below you can find the two-dimensional pivot table.
To easily compare these numbers, create a pivot chart and apply a filter. Maybe this is one step
too far for at this stage, but it shows one of the many other powerful pivot table features Excel
has to offer.
Experiment No: 4
Aim:
Data Analysis Process: Conditional Formatting, What-If Analysis, Data Tables, Charts &
Graphs.
Procedure:
Solution:
Conditional formatting:
Conditional formatting is a feature in Microsoft excel that allows you to apply specific
formatting to your cells according to certain criteria.
It is a premade type of conditional formatting in excel used to change the appearance of cells in a
range based on your specified conditions.
Enter ok
2)TOP/BOTTOM RULES
They are premade types of conditional formatting in excel used to change the appearance of cells
in a range based on your specified condition.
Enter
What-if Scenerio:
What-if analysis is a procedure in excel in which we work in tabular form data. In the What-
if analysis variety of values have been in the cell of the excel sheet to see the result in
different ways by not creating different sheets. There are three tools of what-if analysis.
1)Goal seek
In goal seek we already know our output value we have to find the correct input value. For
example, if a student wants to know his English marks and he knows all the rest of the marks
and total marks in all subjects.
Step 1: Write all subjects and their marks in an excel sheet and do the sum by applying the
formula sum.
Step 2: Go into the data tab of the Toolbar.
Step 3: Under the Data Table section, Select the What-if analysis.
Step 5: The dialogue box appears in the first column write the name of the cell in which you
apply the formula sum. Type $B$7 in Set cell.
Step 6: In the second column write the value of the target. The target value for this example
is 450.
Step 7: In the third column write the name of the cell in which you want to get marks
in English. Provide absolute cell reference, i.e. $B$7.
Step 8: Click ok and see the result. The estimated marks for English are 74
.
2)Scenario Manager
In scenario manager, we create different scenarios by proving different input values for the
same variable than by comparing scenarios to choose the correct result. For Example, To
check the cost of revenue for three different months.
Step 1: Given a data set, for Revenue Cost of Jan, with Expenses and Cost as its columns.
Step 2: Select the numerical value cell and Go to the Data.
Step 5: A dialog box appears in the dialog box select add option.
Step 6: A new dialog appears to write the name of the new scenario in the first column.
Under Scenario name, write “Revenue of Feb”.
Step 7: In the second column select the changing cell. The changing cells for this example,
are K3:K8.
Step 8: A new dialogue box name Scenario Values appears to write the changed value in the
box. Enter the values as per shown in the image. Click Ok.
Step 9: Repeat step5, step6, and step8.
Step 11: A new Dialog box name Scenario Summary appears. Select Result cells: $E$10.
Data Table
In data, we create a table with different input values for the same variables. It is one of the
most helpful features in what-if analysis. One can change different values in x and can achieve
different outputs accordingly for research as well as business-driven purposes.
A data table is of two types:
Data table in one Variable
In the data table in one variable, we can change only one input value either in a row or in a
column. It includes only one input cell. For example, a company wants to know about its
revenue by changing the cost of raw materials by using a data table. Given a data set,
with material and their cost.
Step 2: Copy the last cell in which you get output in another cell. D7 for this example.
Step 3: Write the values in the cell for which you want to make a change in a column or in
rows.
Step 5: Under the data table section, Select the what-if analysis.
Step 2: Copy the last cell in which you get output in another cell.
Step 3: Write both values you want to change in both columns and rows.
Procedure:
CLEAN
1.
Removes all nonprintable characters from text
TRIM
2.
Removes spaces from text
=TRIM(CLEAN(B2))
The formula is filled in the cells B2 – B10.
Excel has several built-in text functions that you can use for formatting data containing text.
These include –Functions that format the Text as per your need −
1)LOWER
Converts text to lowercase
=LOWER(C2)
1)UPPER
Converts text to uppercase
=UPPER(D2)
2) PROPER
Capitalizes the first letter in each word of a text value
1)DOLLAR
Converts a number to text, using the $ (dollar) currency format
=DOLLAR(J2,2)
2)TEXT
Formats a number and converts it to text
=TEXT(TODAY(),”DD/MM/YY”)
You might have to perform certain Text Operations on your Data. For example, if Login-IDs for
the Employees are changed to a New Format in an Organization, based on the Format Change,
Text Replacements might have to be done.
Following Text Functions help you in performing Text Operations on your data containing Text
−
S.No
Function & Description
.
1)REPLACE
Replaces characters within text
=REPLACE(F2,1,4,”2531”)
2)SUBSTITUTE
Substitutes new text for old text in a text string
3)CONCATENATE
Joins several text items into one text item
=CONCATENATE(G7,G8)
4) CONCAT
Combines the text from multiple ranges and/or strings, but it does not provide the
delimiter or IgnoreEmpty arguments.
6) REPT
Repeats text a given number of times
=REPT(H5,2)
Experiment No: 6
Aim:
Cleaning Data Containing Date and Time Values: use of DATEVALUE function,
DATEADD and DATEDIF, TIMEVALUE functions.
Procedure:
We can convert −
Solution:
Date in Serial Format
A Date in serial format is a positive integer that represents the number of days between the given
date and January 1, 1900. Both the current Date and January 1, 1900 are included in the count.
For example, 42354 is a Date that represents 12/16/2015.
Date in Month-Day-Year Formats
Excel supports different Date Formats based on the Locale (Location) you choose. Hence, you
need to first determine the compatibility of your Date formats and the Data Analysis at hand.
To convert dates from serial format to Month-Day-Year format, follow the steps given below −
You can convert dates in Month-Day-Year format to Serial format in two ways −
To convert serial time format to hour-min-sec format follow the steps given below −
=TIMEVALUE(“11:15:25”)
If you need to perform calculations based on current time, simply use the Excel function NOW
(). The result reflects the date and time when it is used.
The following screen shot of Now () function usage has been taken on 26th December, 2023 at
15:39 .
=NOW()
Your data might have the information about hours, minutes and seconds separately. Suppose,
you need to get the Time combining these 3 values to perform any calculation. You can use
Excel Function Time for getting the Time values.
=TIME(A6,B6,C6)
2)DATEVALUE
You can use Excel DATEVALUE function to convert a Date to Serial Number format. You need
to enclose the Date argument in “”. For example,
=DATEVALUE(“26-12-2023")
If you need to perform calculations based on today’s date, simply use the Excel function
TODAY (). The result reflects the date when it is used.
The following screenshot of TODAY () function usage has been taken on 26th december,2023−
=TODAY()
4)DATEIF
=DATEIF(A2,B2,”D”)
Experiment No: 7
Aim:
Conditional Formatting: formatting, parsing, and highlighting data in spreadsheets during
data analysis.
Conditional formatting is used to change the appearance of cells in a range based on your
specified conditions. The conditions are rules based on specified numerical values or matching
text. Changing the appearance of cells can visually highlight interesting data points for analysis.
Procedure:
4)Visual comparison
5)Presentation
SOLUTION:
Excel offers several built-in conditional formatting rules you can apply to your data.
Step:2 :Click the Home tab. It's at the top of the Excel window. This is where you'll find the
Conditional Formatting option.
Step 3: Click Conditional Formatting. You'll find this in the "Styles" section of
the Home toolbar. Clicking it prompts a drop-down menu to appear.
Step 4: Click New Rule…. It's near the bottom of the drop-down menu. Doing so opens the
Conditional Formatting window.
Step 5: Save your spreadsheet. Click File, then click Save to save your changes, or
press Ctrl + S (or ⌘ Command + S on a Mac). If you want to save this document as a new
document, do the following:
Windows - Click File, click Save As, double-click This PC, click a save location on the
left side of the window, type the document's name into the "File name" text box, and
click Save.
Conclusion:
Conditional Formatting in Excel is a versatile tool that empowers users to transform raw data
into visually appealing and meaningful representations. By applying formatting rules based on
specific conditions, we can uncover hidden patterns, identify outliers, and gain valuable insights
from our data. Mastering Conditional Formatting will undoubtedly enhance our data analysis
capabilities and drive better decision-making in various personal and professional contexts.
Experiment No: 8
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.
Aim:
Investigate the impact of working with multiple sheets within a workbook on data
organization, complex calculations, and report creation in spreadsheet software, and assess the
benefits of this approach in practical scenarios.
Procedure:
Step 1:
1)Start with a blank workbook.
The above figure show the price of a product at selling time is determined by the current cost of
the product.
Step 2 : Multiple Worksheets with same Structure
Next, you have to set up worksheets –1,2,3,4 and summary, in the order with
same structure.
Press the shift key and click on the tab 2. All the 4 tabs will be selected.
Now, whatever editing you do in the 1 worksheet will get automatically reflected
in the other three selected worksheets.
In the 1 worksheet,
Add the column headers – S. No., Month, Product, Price, No. of Units, Total Amount.
Add the S. No., Month April and the 4 Product Names.
Format the Table.
The same structure appears in the other worksheets 2, 3 and 4.
Step 3: Creating a Formula across Multiple Worksheets
Define names for the price values of the products in the product catalog worksheet. Set the Scope
as Workbook for all the names.
Once again select all the four worksheets – 1,2,3,4. In the 1 worksheet, for each product, in the
price column, give the formula as the Price Value Name. So the price of a product is as per the
product catalog that is updated on the first of every month.
Repeat the same steps for each Month. Therefore, for the worksheets for the worksheet 1,2,3,4
you have successfully set the same structure and placed the price information for each product
based on the month from product catalog worksheet.
=SUM(1:4!F6)
Note that you are still in the East worksheet. Press Enter.
You will be in the Summary worksheet. In the formula bar, you will see the formula as
The calculated value appears in the cell C3.
This is exactly how you wanted to summarize the results from each region.
Click in the cell C15.
Type =sum(C2:C6)
Conclusion:
Working with multiple sheets within a workbook in spreadsheet software is a powerful approach
for data organization, complex calculations, and report creation. It enhances data management,
accuracy, and collaboration. The benefits include improved data organization, streamlined
complex calculations, and efficient report creation.
Experiment No: 9
Aim:
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.
Procedure:
SOLUTION:
Fill up details for Employee Number, Employee Name and Basic Pay
Using the above you should be able to fill up the data required and final sheet looks like
below
Step 3: Explore Different Charts
Charts are visual representations of data used to make it more understandable. There are
different chart types like Pie Chart, Line Chart, Column Chart etc.
Lets analyse the salary of all the employee. we can use the Bar chart for this
You can visually see the breakup and if you hover the pointer above each piece of pie it will
Conclusion:
The worksheet simplifies the process by automating the calculation of Gross Pay, Deductions,
and Net Pay, thus reducing the risk of errors and expediting the payroll process.
Experiment No: 10
Aim:
Create worksheet on Inventory Management: Sheet should contain Product code, Product name,
Product type, MRP, Cost after % of discount, Date of purchase. Use appropriate formulas to
calculate the above scenario. Analyse the data using appropriate chart and report the data.
Procedure:
Solution:
Fill up details for Product Code, Product Name, Product Type, MRP, Discount %,
Using the above you should be able to fill up the data required and final sheet looks
like below
Step 3: Explore Different Charts
Charts are visual representations of data used to make it more understandable. There are different
chart types like Pie Chart, Line Chart, Column Chart etc.
Lets analyse the salary of all the employees, we can use the Bar chart for this.
As we have many data points like Quantity, Price and Data of Purchase, it will be useful to have
Choose a bar chart and then go to Chart Design section and click on Change Chart Type
You can choose which series you want in Secondary Axis and also what chart type you need like
Lets analyze Total Price and Quantity of the Products in a Combo Chart and Total Price and
Creating an Inventory Management worksheet with product details, including codes, names,
types, prices, and purchase dates, is a valuable tool for businesses and organizations. Using
appropriate formulas, you can calculate the cost of products after applying discounts, which
provides clarity on your inventory's actual value. Additionally, generating charts allows you to
visualize and analyze the data effectively.
Experiment No: 11
Aim:
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 of formula to segregate different categories and
perform a comparative study using pivot tables and different sort of charts.
Procedure:
Solution:
Fill up details for Order ID, Customer ID, Gender, age, date of order, month, online
Using the above you should be able to fill up the data required and final sheet looks like
below
Step 3: Create Different Pivot Tables
A PivotTable is an interactive way to quickly summarize large amounts of data. You can use
a PivotTable to analyze numerical data in detail and answer unanticipated questions about
your data. A Pivot Table is especially designed for: Querying large amounts of data in many
user-friendly ways.
You can create a pivot table by going to Insert column -> PivotTable -> From Table/Range
Below screen will be displayed, choose the data which needs to be added to pivot table and
Lets create a Pivot table with the Customer Information like Customer ID, Gender, Age,
Filter option which will determine what your Pivot table will show.
2.Pivot_Order_City
Let’s create a Pivot table to Analyze the Order ID and Amount which was shipped to
Now create a chart using the data from the Pivot table created above.
Can you spot the difference between regular chart and chart created from Pivot Table?
Yes, you will get option to filter different fields in the chart which will help you in analysis.
Below chart is filtered for Orders shipped to Bangalore City for all of this year
Conclusion:
These insights can inform our marketing and inventory strategies to better cater to our customers
and optimize our operations. It is evident that data-driven decision-making is crucial for our
continued success, and we will continue to monitor and analyze our sales data regularly to stay
competitive in the market and meet our customer's needs effectively.
Experiment-12
Procedure-
Step 1: Data preparation
Solution:
A macro is a small program or set of actions that you can run repeatedly. Excel macros
are used to automate repetitive tasks to save a lot of time and hassle.
Procedure:
1. Click on the View tab in the Excel ribbon
2. Click on the Macros button on the right side of the View ribbon
4. Select Store macro in: This Workbook then click the OK button.
This time, you can record the macro from the Developer tab.
The Developer tab gives you access to a lot of useful Microsoft Excel features such as the Visual
Basic Editor. It also allows you to quickly insert form controls such as buttons and checkboxes.
However, the Developer tab is not visible in the Excel ribbon by default.
To add it:
1. Insert 2 rows above the table headers. Select Row 1 then press Ctrl + Shift + Plus
Sign(+) twice.
5. In the Assign Macro window, select Hide and click OK. The Hide button now
works!
6.Now click on anyone of the rectangle and see the instruction being executed