IS2022 WK 02
IS2022 WK 02
Basic Excel
Functions (II)
Lookup_array
Match_type
=MATCH(lookup_value,lookup_array,[match_type]
=MATCH(E13,Coupon_Num,0)
Row_num
Column_num
=INDEX(array,row_number,[column_number])
Operator Description
= Equal to
<> Not equal to
< Less than
> Greater than
<= Less than or equal to
>= Greater than or equal to
AND function
Has 2 or more logical conditions
Returns TRUE only if all conditions are true
Returns FALSE if any of the conditions are false
Example: IF(AND(ACT>=30,GPA>=3.5),"Eligible","Not Eligible")
Logical Test ‘A’ Logical Test ‘B’ AND Function Result
TRUE TRUE TRUE
TRUE FALSE FALSE
FALSE TRUE FALSE
© Tania Lau – all right reserved by the author FALSE FALSE FALSE
28
Integrate Conjunction Function - OR
OR function
Has 2 or more conditions
Returns TRUE if any of the conditions are true
Returns FALSE only if all conditions are false
Example: IF(OR(ACT>=30,GPA>=3.5),"Eligible","Not Eligible")
Logical Test ‘A’ Logical Test ‘B’ OR Function Result
TRUE TRUE TRUE
TRUE FALSE TRUE
FALSE TRUE TRUE
© Tania Lau – all right reserved by the author
FALSE FALSE FALSE
29
Integrate Conjunction Function – AND vs OR
NOT function
Contains only 1 argument
Reverses the truth value of its argument
Example: IF(NOT(PermRes="NC"),"Non-resident","Resident")
Value_if_error
=IFERROR(value,value_if_error)
Use date and text functions, e.g. TODAY, LEFT, FIND, etc.
Explored IF, VLOOKUP and PMT functions