if
Returns one of two values based on a condition.- A condition
- The result when the condition is true
- The result when the condition is false
if calls:
iferror
Returns the first expression when it succeeds, or the fallback when that expression produces a calculation error.iferror returns 0 instead.
You can also use it with date calculations: