lOMoARcPSD|50066264
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
Step1: Typing Student database in Excel2007
Type the student database with the required fields starts from A1 cell.
Step2: To find Total Marks of Student
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.
Step 3: To find Average marks
                                                lOMoARcPSD|50066264
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.
Step 4: To Check Pass or Fail
To check whether the student is Pass or Fail select the cell “L5” and type the following formula.
                =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.
Step5: To find Grade
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
I. Using MS-Excel calculate the following
a. DA is 3% of basic
b. HRA is 5% of basic
c. Tax is 5% of Gross
II. Find maximum and minimum of Basic pay
                                              lOMoARcPSD|50066264
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”
using the merge and center button
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
3. Put the data for SL NO, EMP NAME, BASIC PAY
4. Calculation for
DA = C2*3%
HRA = C2*5%
GROSS = C2+D2+E2
TAX = F2*5%
NET SLARY = F2-G2
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 ->
Values -> Order -> A to Z
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:
EMPLOYEE NAMES FOR WHOM BASIC PAY >=10000
Sorted according to ascending order of names
lOMoARcPSD|50066264
                                     lOMoARcPSD|50066264
Column Chart For Employee Database
                                                 lOMoARcPSD|50066264
                                         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.
Insert a Pivot Table
To insert a pivot table, execute the following steps.
1. Click any single cell inside the data set.
2. On the Insert tab, in the Tables group, click PivotTable.
                                             lOMoARcPSD|50066264
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.
1. Product field to the Rows area.
2. Amount field to the Values area.
3. Country field to the Filters area.
                                                  lOMoARcPSD|50066264
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.
1. Click any cell inside the Sum of Amount column.
2. Right click and click on Sort, Sort Largest to Smallest.
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?
1. Click the filter drop-down and select Canada.
Result. Apples are our main export product to Canada.
                                                lOMoARcPSD|50066264
Note: you can use the standard filter (triangle next to Row Labels) to only show the amounts of
specific products.
Change Summary Calculation
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.
1. Click any cell inside the Sum of Amount column.
2. Right click and click on Value Field Settings.
3. Choose the type of calculation you want to use. For example, click Count.
4. Click OK.
                                               lOMoARcPSD|50066264
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.
                                              lOMoARcPSD|50066264
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.
                        lOMoARcPSD|50066264
Downloaded by Birongifty s (giftyshideout@gmail.com)
                                                     lOMoARcPSD|50066264
                                          Experiment No: 4
Aim:
Data Analysis Process: Conditional Formatting, What-If Analysis, Data Tables, Charts &
Graphs.
Procedure:
Datasets are experimented for conditional Formatting, What-If                       Analysis,-Goal seek,
Scenario manager, Data Tables – in one and two variables.
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.
1)Highlighting Cells rules
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.
      Select the cells
      Go to conditional formatting and select highlighting
      Select lesser than
                             Downloaded by Birongifty s (giftyshideout@gmail.com)
                                                   lOMoARcPSD|50066264
     Set the condition lesser than 26000
     Enter ok
2)TOP/BOTTOM RULES
                           Downloaded by Birongifty s (giftyshideout@gmail.com)
                                                    lOMoARcPSD|50066264
They are premade types of conditional formatting in excel used to change the appearance of cells
in a range based on your specified condition.
      Select the cells
      Go to conditional formatting and select top/bottom rules
      Select top items
      Select the range
      Enter
                            Downloaded by Birongifty s (giftyshideout@gmail.com)
                                                   lOMoARcPSD|50066264
What-if Scenerio:
What is What-if Analysis?
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.
                           Downloaded by Birongifty s (giftyshideout@gmail.com)
                                                    lOMoARcPSD|50066264
Step 2: Go into the data tab of the Toolbar.
Step 3: Under the Data Table section, Select the What-if analysis.
Step 4: A drop-down appears. Select the Goal Seek.
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.
                            Downloaded by Birongifty s (giftyshideout@gmail.com)
                                                   lOMoARcPSD|50066264
Step 2: Select the numerical value cell and Go to the Data.
Step 3: Under the forecast section, click on the What-if analysis.
Step 4: A drop-down appears. Select the Scenario manager.
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.
                           Downloaded by Birongifty s (giftyshideout@gmail.com)
                                                     lOMoARcPSD|50066264
St ep 9: Repeat st ep5, st ep6, and st ep8.
St ep 10: Click Ok then select summary.
St ep 11: A new Dialog box name Scenari o Summary appears. Select Result cell s: $E$10.
St ep 12: See the result.
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
                             Downloaded by Birongifty s (giftyshideout@gmail.com)
                                               lOMoARcPSD|50066264
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 1: Create a table of revenue 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 4: Go to the data tab of the Toolbar.
Step 5: Under the data table section, Select the what-if analysis.
Step 6: A drop-down appears. Select the Data Table.
                                               lOMoARcPSD|50066264
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.
Data table in two Variable
In the Data table in two variables, we can change two input values in both row and column.
It includes two input cells. For example, A person wants to know about per month
installments of loan by the different rates of interest and for the different time periods for
the same principal amount.
Step 1: Create a table to find PMT.
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 4: Go to the Data tab of the toolbar.
Step 5: Select the what-if analysis.
Step 6: Select the Data Table.
                                           lOMoARcPSD|50066264
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.
Step 8: Click ok and see the result.
                                             lOMoARcPSD|50066264
                                     Experiment No: 5
Aim:
Cleaning Data with Text Functions: use of UPPER and LOWER, TRIM function,
Concatenate.
         :
Procedure
Data cleaning includes removing unwanted characters from text.
  S.No.                        Function & Description
          CLEAN
   1.
          Removes all nonprintable characters from text
          TRIM
   2.
          Removes spaces from text
                             =TRIM(CLEAN(B2))
lOMoARcPSD|50066264
                                               lOMoARcPSD|50066264
The formula is filled in the cells B2 – B10.
Formatting Data with Text Functions
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 −
  S.No.                          Function & Description
           1)LOWER
           Converts text to lowercase
                            =LOWER(C2)
           Function & Description
           1)UPPER
           Converts text to uppercase
                            =UPPER(D2)
                                            lOMoARcPSD|50066264
          2) PROPER
          Capitalizes the first letter in each word of a text value
Functions that convert and/or format the Numbers as Text −
 S.No.                          Function & Description
         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”)
Executing Data Operations with the Text Functions
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