day 6: microsoft excel (ch. 2) - cs101.wvu.edu · day 6: microsoft excel (ch. 2) daksha yadav...

23
DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav [email protected] September 4, 2013 1

Upload: others

Post on 21-Sep-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1

DAY 6:

MICROSOFT EXCEL (CH. 2)

Daksha Yadav

[email protected]

September 4, 2013

1

Page 3: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1

TODAY

• Count Function

• IF Function

• VLOOKUP

• PMT

• FV

• Rank

• Homework 1 Overview

3

Page 4: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1

COUNT & COUNTA

• Statistical Functions – COUNT, COUNTA

• COUNT function counts the number of

cells in a range that contain numerical

data.

• COUNTA function counts the number of

cells in a range that are not blank.

• Ex: COUNT(C6:C24)

COUNTA(E2:E10)

4

Page 5: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1

IF FUNCTION

• Used to determine whether a given condition has been satisfied or not

• When the condition is met, the formula performs one task; when it is not met, the formula performs another task

• Has three arguments: – a condition tested to determine if it is true or

false

– the resulting value if the condition is true

– the resulting value if the condition is false

5

Page 6: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1

IF (CONTD.)

6

• Syntax:

IF(condition,value_if_true,value_if_false)

Value when condition is false

Value when condition is true

Condition is true or false

• IF(A4=“10”, G2=„Good‟, G2=„Bad‟)

Page 7: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1

VLOOKUP

• Used to gauge an entered value against a

range of corresponding results

• Well suited for large tables of data, such

as tax tables

• Also to convert the number grades into

letter grades

• Has three arguments

7

Page 8: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1

EXAMPLE : VLOOKUP

Converting marks

obtained to

the letter grades

8

Page 9: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1

VLOOKUP (CONTD.)

• Syntax

=VLOOKUP(lookup value , lookup table , column index number )

• The lookup value ─ value to look up in a reference table

• The lookup table ─ a range of cells containing the reference table

• The column index number ─ the column number in the lookup table that contains return values

9

Page 10: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1

FINANCIAL FUNCTIONS

• Used for decisions involving payments,

investments, interest rates, etc.

• Allows you to consider several alternatives

• PMT

• FV

10

Page 11: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1

PMT FUNCTION

• Used to calculate loan payments

• Has three arguments:

– the interest rate per period

– the number of periods

– the amount of the loan

• Computes the associated payment on a

loan

11

Page 12: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1

PMT (CONTD.)

• Syntax:

Pmt( interest_rate, number_payments, PV, FV, Type )

• Example: – Pmt(7%/12, 2*12, 5000, 0, 0)

– returns the monthly payment on a $5,000 loan at an annual rate of 7%. The loan is paid off in 2 years (ie: 2 x 12).

– E2 - 7% ; E3 - 24 ; E4 - $5,000.00

– PMT ( E2/12 , E3 , - E4 )

12

Page 13: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1

FV FUNCTION

• Used to determine the future value of an

amount, such as an investment

• Has three arguments:

– The interest rate (also called the rate of return)

– The number of periods (how long you will pay into

the investment)

– The periodic investment (how much you will

invest per year)

• Syntax: FV(rate, nper, pmt)

13

Page 14: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1

RANK

• Ranks a value in either ascending or

descending order

• Syntax: RANK(number, cell range, order)

• Example: rank the average score for each

student in ascending order

14

Page 15: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1

HOMEWORK 1 OVERVIEW

• Link:

http://cs101.wvu.edu/instructors/yadav/assignme

nts/

• Use the Find-it guides:

http://cs101.wvu.edu/findit

• The Kennel Club dog registration data for

211breeds from 2008 through 2012.

• Analyse rank and annual rates of change while

looking for changing trends in breed registration.

15

Page 16: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1

USE THIS AS A GUIDE

• Following slides give an overview of the flow of the assignment

• Specific examples on how to do tasks similar to what the assignment calls for given

• Beneficial to review these slides as you work on the assignment

• Only assignment that we will provide a solution file to view (Student Solution.pdf)

16

Page 17: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1

HW1 STEP 1

• When doing the homework, begin by

downloading, NOT OPENING

• Store this file to your flash drive or hard

drive:

– Right click, Save Target (link) as, Save

• Do not open this file, you will import

information from this file later in step 5.

7-zip, winrar, winzip

17

Page 18: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1

HW1 STEPS 2 & 3

• Create a new workbook as described

• Please be sure to substitute YOUR last

name and first name where indicated

• Manipulate the worksheet tabs as

described.

18

Page 19: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1

HW1 STEP 4

• XML is eXtensible Markup Language

• Files can contain a significant amount of

data and allow us to easily import it into

Microsoft Office to work with

• Importing data from an XML file is not

really shown in the text book. The

information is here…

19

Page 20: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1

HW1 STEP 5

• 5a: Insert table columns

• 5b: While in a table cell, select Table Tools

/ Design ribbon and check “Total Row”

• 5c: Enter text as described

• 5d-e: Merge & Center, Change font size

• 5f: While in Table Tools / Design ribbon

chose another table style

20

Page 21: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1

HW1 STEP 6B-D

• Use the RANK function to rank each breed

by its number of registrations in a given

year

21

Page 22: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1

NEXT CLASS

• Excel Chapter 3

• Homework 1 Overview Continued

22

Page 23: DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav daksha.yadav@mail.wvu.edu September 4, 2013 1