computer for health sciences –comp101 lecture 11 : spread sheet software excel.02 1 lecturer.dalia...

21
COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11: Spread sheet software Excel.02 1 Lecturer .Dalia Mirghani Saadabi

Upload: tyler-mcgee

Post on 25-Dec-2015

216 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11 : Spread sheet software Excel.02 1 Lecturer.Dalia Mirghani Saadabi

1

COMPUTER FOR HEALTH SCIENCES –COMP101

Lecture 11: Spread sheet software

Excel.02 Lecturer .Dalia Mirghani Saadabi

Page 2: COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11 : Spread sheet software Excel.02 1 Lecturer.Dalia Mirghani Saadabi

2

Spreadsheet Software Using Microsoft Excel

2007

Page 3: COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11 : Spread sheet software Excel.02 1 Lecturer.Dalia Mirghani Saadabi

3

Working with Basic Functions

The parts of a function:Each function has a specific order, called syntax, which must be strictly followed for the function to work correctly.

Syntax order: All functions begin with the = sign. After the = sign, define the function name (e.g.,

Sum). Then there will be an argument. An argument is

the cell range or cell references that are enclosed by parentheses. If there is more than one argument, separate each by a comma.

Page 4: COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11 : Spread sheet software Excel.02 1 Lecturer.Dalia Mirghani Saadabi

4

An example of a function with one argument that adds a range of cells, A3 through A9:

An example of a function with more than one argument that calculates the sum of two cell ranges:

Working with Basic Functions…

Page 5: COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11 : Spread sheet software Excel.02 1 Lecturer.Dalia Mirghani Saadabi

5

There are many different functions in Excel 2007. Some of the more common functions include:1) Statistical functions:

SUM: Adds a range of cells together. AVERAGE: Calculates the average of a range of cells.

2) Financial functions: Interest rates. Loan payments.

3) Date and time functions: DATE: Converts a serial number to a day of the month. MONTH: Converts a serial number to a month.

You don't have to memorize the functions, but you should have an idea of what each can do for you.

Excel's different functions

Page 6: COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11 : Spread sheet software Excel.02 1 Lecturer.Dalia Mirghani Saadabi

6

To calculate the sum of a range of data using AutoSum

Select the Formulas tab. Locate the Function Library group. From here, you can

access all available functions. Select the cell where you want the function to appear. In

this example, select B7. Select the drop-down arrow next to the AutoSum

command. Select Sum. A formula will appear in the selected cell,

B7 This formula, =SUM(A2:A6), is called a function. The

AutoSum command automatically selects the range of cells from A2 to A6, based on where you inserted the function. You can alter the cell range if necessary.

Page 7: COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11 : Spread sheet software Excel.02 1 Lecturer.Dalia Mirghani Saadabi

7

Select the range from A2 to A6 then Press the Enter key or Enter button to see the total.

Page 8: COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11 : Spread sheet software Excel.02 1 Lecturer.Dalia Mirghani Saadabi

8

Select the cell where the function is defined. Insert the cursor in the formula bar. Edit the range by deleting and changing necessary cell

numbers.

Click the Enter icon.

To edit a function

Page 9: COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11 : Spread sheet software Excel.02 1 Lecturer.Dalia Mirghani Saadabi

9

Select the cell where you want the function to appear—in this example, C5.

Click the Insert Function command on the Formulas tab. A dialog box appears.

SUM is selected by default.

To calculate the sum of two arguments

Page 10: COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11 : Spread sheet software Excel.02 1 Lecturer.Dalia Mirghani Saadabi

10

Click OK, and the Function Arguments dialog box appears so you can enter the range of cells for the function.

Insert the cursor in the Number 1 field. In the spreadsheet, select the first range of cells—in

this example, A1 through A4. The argument appears in the Number 1 field. To select the cells, left-click cell A1 and drag the

cursor to A4, then release the mouse button. Insert the cursor in the Number 2 field.

Page 11: COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11 : Spread sheet software Excel.02 1 Lecturer.Dalia Mirghani Saadabi

11

In the spreadsheet, select the second range of cells—in this example, B1 through B4. The argument appears in the Number 2 field.

Notice that both arguments appear in the function in cell C5 and the formula bar when C5is selected.

Click OK in the dialog box, and the sum of the two ranges is calculated.

Page 12: COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11 : Spread sheet software Excel.02 1 Lecturer.Dalia Mirghani Saadabi

CountIF in Excel

Kindly do the same picture below and write the formula in cell B11 =COUNTIF(B2:B9;"F")Then press Enter

Page 13: COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11 : Spread sheet software Excel.02 1 Lecturer.Dalia Mirghani Saadabi

CountIF in Excel…

Kindly do the same picture below and write the formula in cell B12 =COUNTIF(B2:B9;“M")

Then press Enter

Page 14: COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11 : Spread sheet software Excel.02 1 Lecturer.Dalia Mirghani Saadabi

IF Function

=IF(A1 > 5, “Nice", “bad") Hit the enter key on your keyboard and your

spreadsheet should look like ours below:

Page 15: COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11 : Spread sheet software Excel.02 1 Lecturer.Dalia Mirghani Saadabi

Create an Excel Chart

From the tabs on the Excel Ribbon, click on Insert Locate the Charts panel:

Choose the chart according to the problem you are worked on.

Page 16: COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11 : Spread sheet software Excel.02 1 Lecturer.Dalia Mirghani Saadabi

16

Formatting the chart

To Change the chart’s style design tab.

To Change the chart’s details Layout tab.

To Change the chart’s font Format tab

To Move the chart. To Resize the chart.

Page 17: COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11 : Spread sheet software Excel.02 1 Lecturer.Dalia Mirghani Saadabi

How to use AutoFill

we'll fill in the days of the week using something called AutoFill. This allows you to quickly fill in things like days of the week, months, and consecutive numbers.

Click inside cell B3 of your spreadsheet, and type Monday, as in the image below:

Page 18: COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11 : Spread sheet software Excel.02 1 Lecturer.Dalia Mirghani Saadabi

How to use AutoFill.…

Position your mouse pointer to the bottom right of the B3 cell

The mouse pointer will change to a black cross, as in the images below. The image on the left shows the normal white cross; the image on the right, the black cross, tells you AutoFill is available:

Page 19: COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11 : Spread sheet software Excel.02 1 Lecturer.Dalia Mirghani Saadabi

How to use AutoFill.…

When you can see the AutoFill cursor, hold down your left mouse button and drag to the right

Drag your mouse all the way to cell H3, as in the following image:

When your cursor is in the H3 cell, let go of the left mouse button

Excel will now complete the days of the week:

Page 20: COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11 : Spread sheet software Excel.02 1 Lecturer.Dalia Mirghani Saadabi

20

Printing Workbooks

To View the Spreadsheet in Print Preview:

Page 21: COMPUTER FOR HEALTH SCIENCES –COMP101 Lecture 11 : Spread sheet software Excel.02 1 Lecturer.Dalia Mirghani Saadabi

21

Wish you all the best