Working with conditions and case statements

Loan Amortization in Google Sheets

Brent Allen

Instructor

Schedules vs. Dashboards

Schedule

  • Run by creator, or with documentation on how to run.
  • Created for a specific scenario.

Dashboard

  • Easy to understand for non-technical users.
  • Created as a process for different types of analysis.
Loan Amortization in Google Sheets

The IF() formula

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

Monthly IF formula example

Loan Amortization in Google Sheets

Nested IF() formula

Nested IF formula for multiple periods

  • Easy to lose track of brackets.
  • Unclear number at the end of the IF() formula.
Loan Amortization in Google Sheets

Time to SWITCH() things up!

The SWITCH() function takes values from a cell and converts them to other values.

=SWITCH(cell, case1, value1, case2, value2, ... default value)

SWITCH formula for multiple periods

  • No clear else statement.
Loan Amortization in Google Sheets

IF() you don't succeed, try IFS()!

The IFS() formula takes multiple conditions and returns a value based on the first true condition.

=IFS(condition1, value1, condition2, value2...)

IFS formula example for multiple periods

  • No default value
  • Use a condition like 1=1 to provide a default value
Loan Amortization in Google Sheets

Time to practice with conditions!

Loan Amortization in Google Sheets

Preparing Video For Download...