Locked lesson.
About this lesson
In this lesson, we learn the basic uses of IF and IFS and how to combine it with AND()/OR().
Quick reference
IF and IFS Functions
Learn the basic uses of IF and IFS and combine it with AND()/OR()
When to use
These functions are useful to provide a specified result if certain criteria are met and an alternative if the criteria are not met.
Instructions
- The IF() syntax is: =if(test, what to do if true, what to do if false)
- The test can be any logic test, including AND() / OR()
- What to do if true/false can be
- Simple: return text value or nothing (“”)
- More complex: perform a calculation and provide the answer
- Nested if occur if you add an if inside an if, but is not a very elegant way to writing formulas. Try an AND() or an OR() or try the IFS()
- IFS() syntax is: =IFS(Test1, what to do if true1, test2, what to do if true2, test3, ….)
- The IFS work well for performing multiple tests with different outcomes and the AND() and OR() works well if different tests can result in one of two outcomes
Lesson notes are only available for subscribers.