DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav...
Transcript of DAY 6: MICROSOFT EXCEL (CH. 2) - cs101.wvu.edu · DAY 6: MICROSOFT EXCEL (CH. 2) Daksha Yadav...
DAY 6:
MICROSOFT EXCEL (CH. 2)
Daksha Yadav
September 4, 2013
1
QUICK TOPICS
• Recording attendance
• How‟s MyITLab
• Homework 1 released. Due date: Sept 13
• Friday, Sept 6: How to install Windows VM
on Mac (206 ARM, 1pm)
http://cs101.wvu.edu/resources/software/
mac-os-virtual-machine/
2
TODAY
• Count Function
• IF Function
• VLOOKUP
• PMT
• FV
• Rank
• Homework 1 Overview
3
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
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
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‟)
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
EXAMPLE : VLOOKUP
Converting marks
obtained to
the letter grades
8
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
FINANCIAL FUNCTIONS
• Used for decisions involving payments,
investments, interest rates, etc.
• Allows you to consider several alternatives
• PMT
• FV
10
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
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
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
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
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
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
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
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
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
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
HW1 STEP 6B-D
• Use the RANK function to rank each breed
by its number of registrations in a given
year
21
NEXT CLASS
• Excel Chapter 3
• Homework 1 Overview Continued
22