On the 1st of each month, emails finance the spending categories that went over budget last month.

UsesGmailGoogle Sheets

Monthly spend against budget

ScheduleRun every month on day 1 at 08:00.Run every month on day 1 at 08:00.
ValuesSpending sheetSet budgetSheet to blank.
ValuesFinance team's emailSet financeEmail to blank.
Google SheetsLast month's expensesRead the rows of budgetSheet. Save it as expenses.Google Sheets
ListsSpend by categoryGroup the items in expenses.rows by Category, with the total Amount of each and save it as spend_by_category.
Google SheetsMonthly budgetsRead the rows of budgetSheet. Save it as budgets.Google Sheets
ListsSpend next to budgetMatch spend_by_category with budgets.rows by Category and save it as compared.
ListsCategories over budgetKeep each item in compared where item.total is greater than item["Monthly budget"] and save it as over_budget.
Decisions & LoopsIf over_budget isn't emptyIf over_budget isn't empty
Yes
HTMLTable of categories over budgetMake a table of over_budget Save it as table.
GmailEmail financeSend an email to financeEmail. Save it as sent. Subject: Categories over budget last monthtable.htmlGmail
No
No steps