Functions: IF
From Excel help, the syntax is:
IF(logical_test,value_if_true,value_if_false)
My understanding:
What's cool (and also somewhat complicated when I encountered the first time) is the nested IF functions.
Like this example from the Excel help:
IF(logical_test,value_if_true,value_if_false)
My understanding:
- logical_test = whatever I want to test/ check/ compare
- value_if_true = the text/ number I wish to display if the what I wish to check, from above, is TRUE
- value_if_false = the text/ number I wish to display if the logic test is otherwise
What's cool (and also somewhat complicated when I encountered the first time) is the nested IF functions.
Like this example from the Excel help:
If AverageScore is:
Greater than 89 -> A
From 80 to 89 -> B
From 70 to 79 -> C
From 60 to 69 -> D
Less than 60 - >F
You can use the following nested IF function:
IF(AverageScore>89,"A",IF(AverageScore>79,"B",
IF(AverageScore>69,"C",IF(AverageScore>59,"D","F"))))
In the preceding example, the second IF statement is also the value_if_false argument to the first IF statement. Similarly, the third IF statement is the value_if_false argument to the second IF statement. For example, if the first logical_test (Average>89) is TRUE, "A" is returned. If the first logical_test is FALSE, the second IF statement is evaluated, and so on.
Here's what I did for the workshop activity.





Comments [2]