Excel
Excel
lOMoARcPSD|50066264
Experiment No: 1
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.
To find the average marks of the student click on the cell “K5” and type the following formula
=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,”Dis 琀椀 nc 琀椀 on”,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:
lOMoARcPSD|50066264
lOMoARcPSD|50066264
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
III. Count the number of employees where net salary is more than 10,000
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
lOMoARcPSD|50066264
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:
Experiment No: 3
Aim:
Working with Data: Data Validation, Pivot Tables & Pivot Charts.
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.
The following dialog box appears. Excel automatically selects the data for you. The default
location for a new pivot table is New Worksheet.
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.
Below you can find the pivot table. Bananas are our main export product.
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?
Note: you can use the standard filter (triangle next to Row Labels) to only show the amounts of
specific products.
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.
lOMoARcPSD|50066264
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.
lOMoARcPSD|50066264
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 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 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.
St ep 11: A new Dialog box name Scenari o Summary appears. Select Result cell s: $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 7: A dialogue box name data table appears then select the cell in which you want to
change the input value in a row or in the column. Input the value of the Column input cell to
be $D$3. Click Ok. Your data table is ready.
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.
Step 7: A dialogue box appears in which you have to select the cell in which you want to
change the value in both row and column. The Row input cell value is $M$12 and the column
input cell value is $M$13.
Experiment No: 5
Aim:
Cleaning Data with Text Functions: use of UPPER and LOWER, TRIM function,
Concatenate.
:
Procedure
CLEAN
1.
Removes all nonprintable characters from text
TRIM
2.
Removes spaces from text
=TRIM(CLEAN(B2))
lOMoARcPSD|50066264
lOMoARcPSD|50066264
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)
lOMoARcPSD|50066264
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)
lOMoARcPSD|50066264
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”)
lOMoARcPSD|50066264
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)
lOMoARcPSD|50066264
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)
lOMoARcPSD|50066264