day 10: excel chapter 7-8 rahul kavi [email protected] [email protected] september 19,...

19
DAY 10: EXCEL CHAPTER 7-8 RAHUL KAVI [email protected] September 19, 2013 1

Upload: jeffery-wood

Post on 13-Dec-2015

218 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: DAY 10: EXCEL CHAPTER 7-8 RAHUL KAVI Rahul.Kavi@mail.wvu.edu Rahul.Kavi@mail.wvu.edu September 19, 2013 1

DAY 10:EXCEL CHAPTER 7-8

RAHUL [email protected]

September 19, 2013

1

Page 2: DAY 10: EXCEL CHAPTER 7-8 RAHUL KAVI Rahul.Kavi@mail.wvu.edu Rahul.Kavi@mail.wvu.edu September 19, 2013 1

2

LAST CLASS

• Outlines/Groups• PivotTables• PivotCharts• Conditional Functions• Rank/Percentile

Page 3: DAY 10: EXCEL CHAPTER 7-8 RAHUL KAVI Rahul.Kavi@mail.wvu.edu Rahul.Kavi@mail.wvu.edu September 19, 2013 1

3

NESTED IF

• IF functions can be nested• For example:

– A store gives its employees commission based on sales

– For sales <= $1000, they earn 5%– For sales > $1000 and <= $5000, they earn

7.5%– For sales > $5000, they earn 10%– IF(sales <= 1000, sales*0.05, IF(sales <= 5000,

sales*0.075, sales*0.10))

Page 4: DAY 10: EXCEL CHAPTER 7-8 RAHUL KAVI Rahul.Kavi@mail.wvu.edu Rahul.Kavi@mail.wvu.edu September 19, 2013 1

4

LOGICAL FUNCTIONS

• Logical functions accept True and False values• AND(logical1, logical2)

– Returns True if logical1 AND logical2 are both True, False otherwise

• OR(logical1, logical2)– Returns True if either logical1 OR logical2 is True,

False otherwise

• NOT(logical)– Returns the opposite of logical. True -> False,

False->True

Page 5: DAY 10: EXCEL CHAPTER 7-8 RAHUL KAVI Rahul.Kavi@mail.wvu.edu Rahul.Kavi@mail.wvu.edu September 19, 2013 1

5

LOGICAL FUNCTION EXAMPLE

• For a class, bonus points are given for having no absences and also for having no late assignments– Show students who got bonus points in both

categories– Show students who got bonus points for one

category– Show students who got no bonus points

Page 6: DAY 10: EXCEL CHAPTER 7-8 RAHUL KAVI Rahul.Kavi@mail.wvu.edu Rahul.Kavi@mail.wvu.edu September 19, 2013 1

6

MATCH

• MATCH(lookup_value, lookup_array, [match_type])– Looks up the position of lookup_value in

lookup_array– match_type: 1 finds the largest value <=

lookup_value from an array in ascending order; -1 finds the smallest value >= lookup_value from an array in descending order; 0 finds an exact match for lookup_value

Page 7: DAY 10: EXCEL CHAPTER 7-8 RAHUL KAVI Rahul.Kavi@mail.wvu.edu Rahul.Kavi@mail.wvu.edu September 19, 2013 1

7

INDEX

• INDEX(array, row_num, [column_num])– Returns the value in array in the row specified

by row_num– If the array range has multiple columns, you

can specify which column you want to index by specifying the column_num argument

Page 8: DAY 10: EXCEL CHAPTER 7-8 RAHUL KAVI Rahul.Kavi@mail.wvu.edu Rahul.Kavi@mail.wvu.edu September 19, 2013 1

8

MATCH/INDEX EXAMPLE

• We have sales per city for a company• We would like to know

– What are the lowest sales numbers for any city?

– What is the city of lowest sales?

• Do calculate this we will also calculate– What is the position of the city with the lowest

sales in our list?

Page 9: DAY 10: EXCEL CHAPTER 7-8 RAHUL KAVI Rahul.Kavi@mail.wvu.edu Rahul.Kavi@mail.wvu.edu September 19, 2013 1

9

NESTING FUNCTIONS GRAPHICALLY

• Open the dialog for your outermost function• Click the argument box where the nested

function is needed• Click the Name Box arrow to select the

function you need• Enter the arguments for the nested function• Click the name of the outer function in the

formula bar to return to the outer function’s dialog box

Page 10: DAY 10: EXCEL CHAPTER 7-8 RAHUL KAVI Rahul.Kavi@mail.wvu.edu Rahul.Kavi@mail.wvu.edu September 19, 2013 1

10

ADVANCED FILTERING

• Create a Criterion Range– Copy the labels from the table and add conditions

for any fields you want to restrict– Multiple rows of conditions will create an OR filter

• Data->Sort & Filter->Advanced– Filter in-place or Copy– Select data range– Select criterion range– Select location if copying

Page 11: DAY 10: EXCEL CHAPTER 7-8 RAHUL KAVI Rahul.Kavi@mail.wvu.edu Rahul.Kavi@mail.wvu.edu September 19, 2013 1

11

DSUM, DAVERAGE, DMAX, DMIN, DCOUNT

• DSUM(data_range, field_name, criteria_range)

• Same arguments for the other functions– data_range specifies the table we want to

aggregate data from– field_name specifies the label above the

column we would like to aggergate– criteria_range specifies the range with your

criteria (like advanced filtering)

Page 12: DAY 10: EXCEL CHAPTER 7-8 RAHUL KAVI Rahul.Kavi@mail.wvu.edu Rahul.Kavi@mail.wvu.edu September 19, 2013 1

12

FINANCIAL FUNCTIONS

• IPMT(rate, per, nper, pv)– Calculates the interest for a specific payment period

• PPMT(rate, per, nper, pv)– Calculates the principal repayment for a specific

payment period

• CUMIPMT(rate, nper, pv, start_period, end_period, type)– Calculates the cumulative interest paid

• CUMPRINC(rate, nper, pv, start_period, end_period, type)– Calculates the cumulative principal repaid

Page 13: DAY 10: EXCEL CHAPTER 7-8 RAHUL KAVI Rahul.Kavi@mail.wvu.edu Rahul.Kavi@mail.wvu.edu September 19, 2013 1

13

PV AND FV

• PV(rate, nper, pmt)– Calculates the present value of future

payments

• FV(rate, nper, pmt)– Calculates the future value of an investment

Page 14: DAY 10: EXCEL CHAPTER 7-8 RAHUL KAVI Rahul.Kavi@mail.wvu.edu Rahul.Kavi@mail.wvu.edu September 19, 2013 1

14

WHAT-IF ANALYSIS

• What-If Analysis is a process of experimenting with different variables and assumptions to observe how they affect the results of the situation– We will see examples of one-variable analysis

and two-variable analysis

Page 15: DAY 10: EXCEL CHAPTER 7-8 RAHUL KAVI Rahul.Kavi@mail.wvu.edu Rahul.Kavi@mail.wvu.edu September 19, 2013 1

15

ONE VARIABLE ANALYSIS

• The variable you will be investigating will be tried for several different substitution values.– For example, changing the interest rate on a

loan– Calculate the desired value for each possible

substitution value

Page 16: DAY 10: EXCEL CHAPTER 7-8 RAHUL KAVI Rahul.Kavi@mail.wvu.edu Rahul.Kavi@mail.wvu.edu September 19, 2013 1

16

SERIES

• Home->Editing->Fill->Series– Creates series of values you can use as

substitution values• Step value: distance between values• Stop value: where you want the series to stop

Page 17: DAY 10: EXCEL CHAPTER 7-8 RAHUL KAVI Rahul.Kavi@mail.wvu.edu Rahul.Kavi@mail.wvu.edu September 19, 2013 1

17

WHAT-IF TOOL

• Data->Data Tools->What-If Analysis->Data Table– Select the reference for the cell you want to

replace• If your series is in rows, use ‘Row input cell’• If your series in in columns, use ‘Column input cell’

– Click Ok to complete the table

Page 18: DAY 10: EXCEL CHAPTER 7-8 RAHUL KAVI Rahul.Kavi@mail.wvu.edu Rahul.Kavi@mail.wvu.edu September 19, 2013 1

18

NEXT CLASS

• Two Variable What-If Analysis• Goal Seek• Scenario Manager• Solver• Hyperlinks• Linked Workbooks• Templates

Page 19: DAY 10: EXCEL CHAPTER 7-8 RAHUL KAVI Rahul.Kavi@mail.wvu.edu Rahul.Kavi@mail.wvu.edu September 19, 2013 1