25
Excel IF & VLOOKUP 1

1. The IF function is a logical function used for making decisions based on some condition(s) Conditions have to result in Boolean values. (relational

Embed Size (px)

Citation preview

Page 1: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

1

Excel IF & VLOOKUP

Page 2: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

2

The IF function

The IF function is a logical function used for making decisions based on some condition(s)

Conditions have to result in Boolean values. (relational expressions, true/false)

Page 3: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

3

The IF function syntax

=IF(Test, value_if_true,value_if_false) Test

Condition that can be evaluated to true or false

Question that is answered either true or false Value_if_true

Action to perform if test is true Value_if_false

Action to perform if test is false

Page 4: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

4

GradeBook1File 1-Excel Training Part 2

Page 5: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

Gradebook1!I3: Display, “Pass” if student passed the class or “Fail” if student did not pass. A passing score for this class is 245. Copy the formula for each student in the list.

5

Page 6: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

6

File 1-Excel Training Part 2

GradeBook2

Page 7: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

Gradebook2!H3: Calculate curved grade for studentsScore Less than 150--Curve 10%Score Greater than or Equal to150--Curve grade .05%

7

Page 8: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

Gradebook2!H3: Calculate curved grade for studentsScore Less than 150--Curve 10%Score Greater than or Equal to150--Curve grade .05%

8

Page 9: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

Gradebook2!K3: Calculate student’s letter grade

9

Page 10: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

Reference Functions

Functions that allow you to lookup a value in a list

Reference functions we will use VLOOKUP HLOOKUP

10

Page 11: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

Lookup Functions VLOOKUP-List is set up in columns

HLOOKUP-List is set up in Rows

Score Grade

0 E

60 D

70 C

80 B

90 A

Score 0 60

70

80

90

Grade

E D C B A

11

Page 12: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

=VLOOKUP(lookup_value,table_array, col_index_num, range_lookup)

lookup_value criteria to lookup or “match”

table_array The list

col_index_num the column number in your range where to find the corresponding

data range_lookup

the lookup type TRUE ( or blank…Default)

Looks for a match by finding the greatest value that does not exceed the criteria The lookup value cannot be smaller than the first value in the list The first column/row in the list must be in ascending order

FALSE Function only looks for exact matches of the criteria or returns N/A#

12

Page 13: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

13

File 1-Excel Training Part 2

GradeBook3

Page 14: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

Gradebook2!K3: Calculate student’s letter grade

14

Page 15: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

15

Gradebook2!K3: Calculate student’s letter grade

Page 16: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

16

ANDAll items must be true for the statement to be true

=AND(logical1, logical2,…)

ORAt least one item must be true for the statement to be true

=OR(logical1, logical2,…)

And/Or Function

Page 17: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

17

File 1-Excel Training Part 2

OSUN Admissions

Page 18: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

18

OSUN Admissions!H3: Invalid Scores? True or False?

Invalid Math Placement Score < 200 or Score > 800

Invalid Foreign Language Placement Score < 200 or Score > 800

Invalid English Placement Score < 200 or Score > 800

Invalid Class Rank Class Size < 1 or Class Size > Class Rank

Page 19: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

19

OSUN Admissions!I3:All Placement Scores < 500? True or False?

Page 20: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

20

OSUN Admissions!J3:Math Placement Score > Average of all Math Placement Scores? True or False?

Page 21: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

21

OSUN Admissions!K3Foreign Language Score or English Score> 550? True or False?

Page 22: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

22

OSUN Admissions!L3Student in top 20% of class? True or False?

Page 23: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

23

OSUN Admissions!M3: Admission Status? Accept, Waitlist, Reject

Reject Invalid Score or all Placement Scores < 500

Accept Math Placement Score > Average Math Placement Score for all students and Top 20% of class

Waitlist Otherwise

Page 24: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

24

OSUN Admissions!N3: Scholarship Candidate?

Math Score + Foreign Language Score + English Score > 1,600

Page 25: 1.  The IF function is a logical function used for making decisions based on some condition(s)  Conditions have to result in Boolean values. (relational

25

OSUN Admissions!C8: Average Placement Scores Compared to Last Year?

Higher, Same, Lower (Last years average score: 610)

Higher Average Math Score > 610

Same Average Math Score = 610

Lower Otherwise