advanced functions set 153l. logical function an if function can place different values in a cell...

10
Advanced Functions SET 153L

Upload: alyson-fletcher

Post on 18-Jan-2018

219 views

Category:

Documents


0 download

DESCRIPTION

Example Calculate the result if the following expressions were placed in cell C6 =IF(B3>B2, B3, B2) =IF(B3+B2

TRANSCRIPT

Page 1: Advanced Functions SET 153L. Logical Function An IF function can place different values in a cell based on some condition. =IF (test, value if true, value

Advanced Functions

SET 153L

Page 2: Advanced Functions SET 153L. Logical Function An IF function can place different values in a cell based on some condition. =IF (test, value if true, value

Logical Function• An IF function can place different values

in a cell based on some condition.

=IF (test, value if true, value if false)

• The value in a cell should be 0 if the value in A3 is negative, and 1 if the value in A3 is zero or positive.

=IF(A3<0, 0, 1)

Page 3: Advanced Functions SET 153L. Logical Function An IF function can place different values in a cell based on some condition. =IF (test, value if true, value

ExampleCalculate the result if the following expressions were placed in cell C6

=IF(B3>B2, B3, B2)

=IF(B3+B2<B4, 3, 6)

=IF(B2+B3/2< B4, “NO”, “YES”)

Page 4: Advanced Functions SET 153L. Logical Function An IF function can place different values in a cell based on some condition. =IF (test, value if true, value

Stacking IF Functions

• Multiple IF functions can be used in a single command.

=IF(A3<0, “NEG”, IF(A3=0, “ZERO”, “POS”))

Page 5: Advanced Functions SET 153L. Logical Function An IF function can place different values in a cell based on some condition. =IF (test, value if true, value

AND Function

• Checks whether all arguments are true.=AND(A3<0, A4<0)

AND Function returns a true or false

• Often used with IF functions=IF(AND(A3<0,A4<0), “Both Neg”, “Both Not Neg”)

Page 6: Advanced Functions SET 153L. Logical Function An IF function can place different values in a cell based on some condition. =IF (test, value if true, value

ExampleCreate a spreadsheet that solves for the real roots of a quadratic equation:

ax2 + bx +c = 0

aacbb

242

Beware of a = 0 and b2 < 4ac

Page 7: Advanced Functions SET 153L. Logical Function An IF function can place different values in a cell based on some condition. =IF (test, value if true, value

ExampleCreate a spreadsheet that determines whether students pass a course with at least a grade of 65.0

Page 8: Advanced Functions SET 153L. Logical Function An IF function can place different values in a cell based on some condition. =IF (test, value if true, value

ExampleCreate a spreadsheet that identifies how many students scored in the “B” range (between 80 and 90%).

Page 9: Advanced Functions SET 153L. Logical Function An IF function can place different values in a cell based on some condition. =IF (test, value if true, value

LOOKUP Function• A powerful function that returns a value

based on a table located in Excel.

Page 10: Advanced Functions SET 153L. Logical Function An IF function can place different values in a cell based on some condition. =IF (test, value if true, value

ExampleResistors are color coded where each color is worth a value (a, b, c). The resistance is R = (10a + b) x 10c

Create a spreadsheet that uses a lookup table to determine resistance