advanced functions set 153l. logical function an if function can place different values in a cell...
DESCRIPTION
Example Calculate the result if the following expressions were placed in cell C6 =IF(B3>B2, B3, B2) =IF(B3+B2TRANSCRIPT
![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](https://reader036.vdocuments.mx/reader036/viewer/2022082501/5a4d1b8a7f8b9ab0599be56c/html5/thumbnails/1.jpg)
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](https://reader036.vdocuments.mx/reader036/viewer/2022082501/5a4d1b8a7f8b9ab0599be56c/html5/thumbnails/2.jpg)
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](https://reader036.vdocuments.mx/reader036/viewer/2022082501/5a4d1b8a7f8b9ab0599be56c/html5/thumbnails/3.jpg)
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](https://reader036.vdocuments.mx/reader036/viewer/2022082501/5a4d1b8a7f8b9ab0599be56c/html5/thumbnails/4.jpg)
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](https://reader036.vdocuments.mx/reader036/viewer/2022082501/5a4d1b8a7f8b9ab0599be56c/html5/thumbnails/5.jpg)
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](https://reader036.vdocuments.mx/reader036/viewer/2022082501/5a4d1b8a7f8b9ab0599be56c/html5/thumbnails/6.jpg)
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](https://reader036.vdocuments.mx/reader036/viewer/2022082501/5a4d1b8a7f8b9ab0599be56c/html5/thumbnails/7.jpg)
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](https://reader036.vdocuments.mx/reader036/viewer/2022082501/5a4d1b8a7f8b9ab0599be56c/html5/thumbnails/8.jpg)
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](https://reader036.vdocuments.mx/reader036/viewer/2022082501/5a4d1b8a7f8b9ab0599be56c/html5/thumbnails/9.jpg)
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](https://reader036.vdocuments.mx/reader036/viewer/2022082501/5a4d1b8a7f8b9ab0599be56c/html5/thumbnails/10.jpg)
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