Lorna Jacob

Google Apps Script to automate mundane tasks

The power of google apps script and how I used it to get more free time

Google Apps Script is a cloud-based JavaScript platform that lets you integrate with and automate tasks across Google products. It has built-in libraries for Google Workspace applications like Sheets, Gmail, Calendar, Drive, and more. You don’t need to install anything to get started — Google gives you a code editor in the browser, and the scripts you write runs on Google’s servers.

What can Apps Script do?

Apps Script is versatile. Among other things, you can:

If you are interested to learn more 👉 read from Google overview page itself.

I wrote a mini side project to use the apps script for automating my monthly budget monitoring task. Every month, I download my Credit Card statements in CSV format from my bank, open up my Google Sheet, paste the transactions there, and then categorise my expenses one by one, generate nice charts and pivot tables, and compare how I did financially vs last month. On a nice day, it would take me about an hour to finish this. Early this year, instead of spending an hour doing the same thing again, I instead googled how I can automate this mundane task using Google Sheets. In my good ol' days, I used to write macros in MS Excel to do same stuff, so I thought what are the odds Sheets has the same functionality. And alas, I discovered Google Apps Script.

In a nutshell, here’s what I did:

If you want to see the code (warning! it’s a bit rubbish), you can checkout my Github repository. I hope you learn something and get inspired to start exploring the Google Apps Script too.