Lab 2
Lab 2
Experiment # 2
Student Name:
Roll Number:
Marks Obtained
Remarks (if any)
Experiment evaluated by
Microsoft Excel is one of the most used software applications of all time. Hundreds of millions of
people around the world use Microsoft Excel. You can use Excel to enter all sorts of data and
perform financial, mathematical or statistical calculations.
2 Workbook: A workbook is another word for your Excel file. Excel automatically creates a blank
workbook when you open it
What you see next is called the backstage view and it contains all the workbook related commands.
2. Recent shows you a list of your recently used workbooks. You can quickly open a workbook
from here.
Fam iliarization with MS-Excel| page 3
Close a Workbook
If you are new to Excel, it's good to know the difference between closing a workbook and closing
Excel. This can be confusing in the beginning.
2. If you have multiple workbooks open, clicking the upper right X closes the active workbook. If
you have one workbook open, clicking the upper right X closes Excel.
.3 Worksheets: A worksheet is a collection of cells where you keep and manipulate the data. By
default, each Excel workbook contains three worksheets.
Select a Worksheet
When you open Excel, Excel automatically selects Sheet1 for you. The name of the worksheet
appears on its sheet tab at the bottom of the document window.
To select one of the other two worksheets, simply click on the sheet tab of Sheet2 or Sheet3.
Rename a Worksheet
By default, the worksheets are named Sheet1, Sheet2 and Sheet3. To give a worksheet a more
specific name, execute the following steps.
Insert a Worksheet
You can insert as many worksheets as you want. To quickly insert a new worksheet, click the
Insert Worksheet tab at the bottom of the document window.
Result:
Move a Worksheet
To move a worksheet, click on the sheet tab of the worksheet you want to move and drag it into
the new position.
1. For example, click on the sheet tab of Sheet4 and drag it before Sheet2.
Fam iliarization with MS-Excel| page 6
Result:
Delete a Worksheet
To delete a worksheet, right click on a sheet tab and choose Delete.
Result:
Copy a Worksheet
Imagine, you have got the sales for 2010 ready and want to create the exact same sheet for 2011,
but with different data. You can recreate the worksheet, but this is time-consuming. It's a lot easier
to copy the entire worksheet and only change the numbers.
4. Click OK.
Result:
4 Format Cells: When we format cells in Excel, we change the appearance of a number without
changing the number itself.
By default, Excel uses the General format (no specific number format) for numbers. To apply a
number format, use the 'Format Cells' dialog box.
3. Right click, and then click Format Cells (or press CTRL + 1).
Note: Excel gives you a life preview of how the number will be formatted (under Sample).
5. Click OK.
Cell B2 still contains the number 0.8. We only changed the appearance of this number, not the
number itself. The most frequently used formatting commands are available on the Home tab.
6. On the Home tab, in the Number group, click the Percentage symbol, to apply a Percentage
format.
8. On the Home tab, in the Font group, change the Font color.
5 Templates: Instead of creating an Excel workbook from scratch, you can create a workbook
based on a template. There are many free templates available, waiting to be used.
Instead of creating an Excel workbook from scratch, you can create a workbook based on a
template. There are many free templates available, waiting to be used.
Existing Templates
To create a workbook based on an existing template, execute the following steps.
Familiarization with MS-Excel| page 11
1. On the green File tab, click New.
2. To choose a template from one of the sample templates (these are already installed on your
computer), click on Sample templates.
3. To choose a template from the Office.com Templates, click a category. For example, click
Calendars.
Familiarization with MS-Excel| page 12
4. To download a template, select a template and then click Download.
Excel creates a workbook (UniversalCalendar1.xlsx) based on this template. Excel also stores the
template (UniversalCalendar.xltx) in the Templates folder. You can access this folder by clicking
on My templates (see first picture). Read on for more information about the Templates folder.
Create a Template
If you create your own template, you can safely store it in the Templates folder. As a result, you
can create new workbooks based on this template without worrying that you overwrite the original
file.
1. Create a workbook.
Excel automatically activates the Templates folder. Notice the location of the Templates folder on
your computer. It's usually located here:
C:\Users\<username>\AppData\Roaming\Microsoft\Templates
5. Click Save.
Availabl e Templ at e s
@, Saye A›
Open
Info
Ofice.co m Te mp ble s hC
tote
Save8Send
8. Select WeddingBudget.
9. Click OK.
Note: to edit a template, on the green File tab, click Open to open the template. Edit the file and save the file to its
original location.
Familiarization with MS-Excel| page 15
6 Data Validation: Use data validation in Excel to make sure that users enter certain
values into a cell.
Input Message
Input messages appear when the user selects the cell and tell the user what to enter.
2. Enter a title.
Error Alert
If users ignore the input message and enter a number that is not valid, you can show them an error
alert.
2. Enter a title.
4. Click OK.
Result:
Note: to remove data validation from a cell, select the cell, on the Data tab, click Data Validation,
and then click Clear All..
7 Protect: Encrypt an Excel file with a password so that it requires a password to open it.
1. Open a workbook.
Hid• Falder:
[
Web Options...
G'eneral Options.„
C ompres s Piñur•s...
Generaltoptions
OK
Note: this feature also encrypts your Excel file. If you lose or forget the password, it cannot be
recovered.
Familiarization with MS-Excel| page 20
6. Enter a file name and click Save.
Functions
Discover how functions in Excel help you save time.
1 Count and Sum: The most used functions in Excel are the functions that count and sum. You
can count and sum based on one criteria or multiple criteria.
Count
To count the number of cells that contain numbers, use the COUNT function.
Countif
To count cells based on one criteria (for example, higher than 9), use the following COUNTIF
function.
Fam iliarization with MS-Excel| page 21
Countifs
To count cells based on multiple criteria (for example, green and higher than 9), use the following
COUNTIFS function.
Sum
To sum a range of cells, use the SUM function.
Sumif
To sum cells based on one criteria (for example, higher than 9), use the following SUMIF
function (two arguments).
Fam iliarization with MS-Excel| page 22
To sum cells based on one criteria (for example, green), use the following SUMIF function (three
arguments, last argument is the range to sum).
Sumifs
To sum cells based on multiple criteria (for example, blue and green), use the following SUMIFS
function (first argument is the range to sum).
General note: in a similar way, you can use the AVERAGEIF and AVERAGEIFS function to
average cells based on one or multiple criteria.
2 Logical: Learn how to use Excel's logical functions such as the IF, AND and OR function.
Familiarization with MS-Excel| page 23
The IF function checks whether a condition is met, and returns one value if TRUE and another
value if FALSE.
The IF function returns Correct because the value in cell A1 is higher than 10.
And Function
The AND Function returns TRUE if all conditions are true and returns FALSE if any of the
conditions are false.
The AND function returns FALSE because the value in cell B2 is not higher than 5. As a result
the IF function returns Incorrect.
Or Function
The OR function returns TRUE if any of the conditions are TRUE and returns FALSE if all
conditions are false.
The OR function returns TRUE because the value in cell A1 is higher than 10. As a result the IF
function returns Correct.
Q1: Covert the name in to e-mail address by using auto fill it should look like as shown in option 1
s.no Dat
a
1 3 6 8 10
2 5 8 10 11
3 2 1 5 4
Q3: Write the number given below in excel sheet and apply remove duplicate function to
remove values that are repeating take a snap shot while applying function.
1,2,4,5,6,7,8,2,4,5,8,9,10,11,24
Q4: For Following Data perform Text to Column operation Take snap shot before and after
performing task
Q6: By using data validation tool assign suitable designation to each employee
S.no Name
1 Fahad
2 Naveed
3 Javaid
4 Ahmed
5 Zubair