Logical Functions - Notes
Logical Functions - Notes
he most powerful feature of excel is to be able to effortlessly perform mathematical calculations. The excel formulae universe is large; however, an analyst must know these basic commands that has been covered in this chapter.
FUNCTIONS
In a spreadsheet application, values often need to be added, subtracted, multiplied and divided To allow for the fact that individual values might change, spreadsheet formulae generally refer not to actual values, but to the cells where those values are being held If values have been entered into A1 and A2, then A1+A2 will return an answer which will automatically recalculate if the value of A1 should change It is this automatic recalculation which makes spreadsheets invaluable Excel recognizes functions because they are preceded by an equals sign (=) You will find all of these mathematical operators ranged across the top and down the right hand side of the numeric keypad
SYNTAX
=IF(Condition,ActionIfTrue,ActionIfFalse) The Condition is usually a test of two cells, such as A1=A2 ActionIfTrue and ActionIfFalse can be numbers, text or calculations
EXAMPLE
www.educorporatebridge.com
3 4 5 6
E F G H Result Not Achieved =IF(C4>=D4,"Achieved","Not Achieved") Achieved =IF(C5>=D5,"Achieved","Not Achieved") Not Achieved =IF(C6>=D6,"Achieved","Not Achieved")
SYNTAX
=AND(Test1,Test2) Note that there can be up to 30 possible tests When used by itself it will show TRUE or FALSE
EXAMPLE
C D Items To Test 500 800 500 25 25 500 12 E Result TRUE FALSE FALSE TRUE F G
3 4 5 6 7
SYNTAX
=OR(Test1,Test2) Note that there can be up to 30 possible tests When used by itself it will show TRUE or FALSE
www.educorporatebridge.com
EXAMPLE
C 3 4 5 6 7 Order No. K1 K2 K3 K4 D Cost 1000 1000 2000 5000 E F Payment Handling Type Charge Cash $0 Visa $5 Cheque $0 Mastercard $5 G H I J
www.educorporatebridge.com
www.educorporatebridge.com