Lab 4
Lab 4
Lab 4
LAB # 4
OBJECT
To understand and to familiarize with MS-Excel.
To create and edit professional documents using functions and charts.
THEORY
Excel can be used for organizing, calculating and analyzing data. A user may work on
one or more worksheets in a workbook.
A user can save time by using formulas to calculate values automatically. A user can also
make its worksheet attractive by formatting it. A user may add charts and may save and
print a workbook.
Workbooks are a collection of worksheets in the same file on disk. Sheets may contain
different types of information. Usually, the sheets in a workbook contain related
information, such as budgets.
A standard worksheet contains 256 columns and 16,384 rows. The intersection of a row
and column forms a cell in which a user can enter text or values.
Saving Workbook
To save the changes, click File ➔ Save.
Closing Workbook
For closing the current workbook click File ➔ Close
Activating Worksheets
To activate a worksheet, click on the worksheet tab at the bottom of the workbook.
To copy a worksheet within the same workbook, use the following method.
With the mouse, select the tab, then hold down the Ctrl key while you drag and drop
the tab.
With the menu command, check the Create a Copy check box on the Move or Copy
dialog box. A copy of the new worksheet is inserted.
Inserting Cells
To insert cells, select the cells where you want to perform the insertion. This can be a cell
or a range of cells, entire rows or entire columns using following method:
Right-click on the selection to display the short cut menu and choose to insert. From
insert menu do one of the following
Choose the rows command to insert entire rows.
Choose the Columns command to insert entire columns.
Choose the cells command to insert a range of cells. The insert dialog box is
displayed, asking how the insertion should occur.
Deleting Cells
To delete a cell or cells, follow these steps:
Select the cells that you want to delete.
Click Edit ➔ Delete.
Finding a Value
To find a value on an active worksheet, follow these steps:
Choose Edit ➔ Find. The Find dialogue box appears.
Type the characters you want to find in the Find What box.
Click on Find Next to find the next cell containing the search value.
Replacing a Value
The replace option works like Find but allows you to replace the found value with
another value. Try the following exercise:
Enter the following data into a blank worksheet:
Nasir Karim Karim Jamal
Fazal Ahmed Kashif Ahmed
Click Edit ➔ Replace. The replace dialogue box appears.
Formatting Columns
A user can improve the appearance of worksheet by adjusting column widths using
following method:
Select cells in the column that you want to change.
Click the Format ➔ Column option.
Type in the width and then choose OK.
Formatting Rows
A user may change row height to create more space for titles using following method.
Select a cell in each row you want to change.
Click Format ➔ Row Height option.
Enter the height in the Row Height box.
Click OK.
Fig 3.2: Excel File Menu Fig 3.3: Excel View Menu
Fig 3.4: Excel Format Menu Fig 3.5: Excel Data Menu
Theory
A spreadsheet is only as good as the operations a user can perform on it. Excel offers its
users a wealth of options for charting and calculating the data in worksheets. Formulas
provide the real power when doing analysis and modeling, creating functioning
spreadsheet systems, in Excel.
A user can perform a wide variety of numeric calculations, including addition,
subtraction, multiplication and division. A user can also manipulate text and lookup
values in tables.
Entering Formula
To enter a formula into a cell, simply select the cell in which you want the formula. The
first character must be an equal sign.
Select the desired cell on a blank worksheet.
Enter =<formula> then press Enter. The returning value will appear in the cell.
Editing Formula
A formula can be edited either in the formula bar or in the cell.
Entering Functions
To enter function within a formula or as a formula, use following method:
Select the cell where you want to enter the function.
Click Insert ➔ Function to display the function wizard dialogue box.
Editing Functions
To edit an existing function, use the following method:
Select the cell containing the text.
Click Insert ➔ Function.
After editing the function, click OK.
Part – II : Charts
When working with charts, it is important to understand the difference between a data
series and data points. These concepts are crucial both for understanding how the data is
being represented in the chart and for creating the chart that will display properly.
A data point is an individual value that originated in a single worksheet cell. When data
points are plotted onto a chart, they are represented by columns, bars, dots, slices or other
shapes called markers.
A data series is a group of related data point that represents a single row or column of
data. Each series is distinguished on a chart by a unique color or pattern.
Creating a Chart
To create a chart uses the following method:
Select the data you want to chart.
Click Insert ➔ Chart or click the Chart Wizard.
Formatting a Chart
A user can apply different number formats, fonts, patterns and colors to the various chart
elements.
The chart element must be selected in order to format it.
Double-click the chart element you want to format to display the format dialogue box
(or right-click on the element, and choose the format command from the short cut
menu). The name of the selected element is displayed in the Name box on the left part
of the formula bar.
Select the formatting option you want and then click OK.
Deleting a Chart
To delete a chart element, select the element and press Delete (or choose Clear from the
shortcut menu).
LAB TASK:
1- Prepare students mark list in MS-Excel by using Formulas. The data must contain the
following fields: Roll No, Student Name, Project marks, lab manual marks, Lab exam
marks, Total, Average, Pass/Fail status and performance status.
2- Apply formulas for following fields:
Total Marks: SUM
Percentage: AVERAGE
Pass/Fail Status: IF Conditional
Performance Status: IF Conditional
3- Using Pie chart shows the cumulative Pass and Fail status of all students.