Presentation is loading. Please wait.

Presentation is loading. Please wait.

DECISIONS AND FUNCTIONS Module 4.2. DECISIONS AND FUNCTIONS Module 4.2.

Similar presentations


Presentation on theme: "DECISIONS AND FUNCTIONS Module 4.2. DECISIONS AND FUNCTIONS Module 4.2."— Presentation transcript:

1 DECISIONS AND FUNCTIONS Module 4.2

2 DECISIONS AND FUNCTIONS Module 4.2

3 Content  Calculations based on a decision or test Calculations based on a decision or test  The VLOOKUP function The VLOOKUP function  Test and improve your knowledge and skills Test and improve your knowledge and skills 3

4 Calculations based on a decision or test 4

5 COUNTIF and SUMIF functions FunctionWhat the function does = COUNTIF(range, criterion) Counts the number of cells in a range that meet a certain criterion. Such a criterion can be a number, text or expression. =SUMIF(range, criterion, sum_range) The cells in the sum_range which correspond to the cells in the range that meet the criterion are added together. 5

6 Example - application of the COUNTIF and SUMIF functions 6

7 COUNTIf is used to count how many choir members are in each grade. The total amounts paid by the choir members in each grade is calculated using SUMIF. 7

8 IF function =IF(condition, value_if_true, value_if_false) =IF(D2>800, “Gold”, IF(D2>=600, “Silver”, “Bronze”)) ConditionValue_if_trueValue_if_false 8

9 IF function TRUE IF(D2>800 “Gold” FALSE If the value is greater than 800, the word Gold will be displayed, otherwise the Value_if_false part is executed. This part consists of the next IF function where the value in D2 is tested again. IF(D2>=600 TRUE “Silver” FALSE“Bronze” =IF(D2>800, “Gold”, IF(D2>=600, “Silver”, “Bronze”)) 9

10 IF function - Insert Function 10

11 Activity 1 11

12 Activity 2 TryNestedIF ABC_printing Overtime Marks 12

13 VLOOKUP stands for Vertical Lookup which means that a value is searched for from top to bottom in a column. The VLOOKUP function 13

14 Looking up a specific value The table where you search for the answer The column number in the table where the answer is Use FALSE if you want to search for an exact value 2 nd column The value you want to search for =VLOOKUP(Lookup_value, Table_array, Col_index_num, Range_lookup) 14

15 Activity 3 CostsCourses 15

16 Activity 4 BooksOutstanding OnlineCourses Increase_Stationery StudyOppBooks 16

17 Looking up a value in an interval The following table shows how the conversion must be done. MarksSymbol 90-100A+ 80-89A 70-79B 60-69C 50-59D 40-49E 34-39F 30-33FF 10-29G 0-9H To do the conversion with the help of a VLOOKUP, the intervals must first be sorted from smallest to largest. MarksSymbol 0-9H 10-29G 30-33FF 34-39F 40-49E 50-59D 60-69C 70-79B 80-89A 90-100A+ Only the minimum values of each interval are stored in the lookup table in Excel. AB 1MarksSymbol 20H 310G 430FF 534F 640E 750D 860C 970B 1080A 1190A+ When intervals are used, TRUE must be the last argument in the VLOOKUP function. 17

18 Activity 5 SchoolMarks Medals Bonuses_Gifts 18

19 Test and improve your knowledge and skills 19

20 Summary of module The COUNTIF and SUMIF functions How many boys? How many girls? Hoy many Gr 11s? How many Gr 12s? COUNTIF Counts the number of cells in a range with a particular value 20

21 Summary of module The COUNTIF and SUMIF functions SUMIF Adds the values of those cells where the corresponding column has a certain value. What is the total amount paid by Gr 10? 21

22 Summary of module The IF statement The nested IF statement = an IF statement within an IF statement. When you use a nested IF statement the conditions must be entered in the correct order. Begin with the largest, e.g. = IF(B2>=80,”A”,IF(B2>=70,”B”,IF(B2>=60,”C”,”D”))) In a nested IF statement make sure that the number of left and right-hand brackets agree. Check that every IF function has a closing bracket at the end. 22

23 Summary of module The VLOOKUP function Use a VLOOKUP function - too many IF functions to use in a nested IF function. Be careful when you select the column – the number of the column, (2 and 3), not the name of the column. When the VLOOKUP function has to be copied to other cells in a column, use absolute referencing for the lookup table, e.g. =VLOOKUP(C2,$F$1:$G$5,2,FALSE) It is important that the values are sorted from low to high when you use a VLOOKUP function with intervals. The lowest must be at the top of the table. 23

24 Written module activity 24

25 Practical module activity Awards FundRaising Swimming ReadingCompetition 25


Download ppt "DECISIONS AND FUNCTIONS Module 4.2. DECISIONS AND FUNCTIONS Module 4.2."

Similar presentations


Ads by Google