7
3 Comments

Google Tables and Formulas

While Google Tables looks promising, there are no formula capabilities. This is not ideal and while I get it - Tables is about information and workflow - there are cases where given a specific state or a value-pattern, you need certain columns to self-populate.

To overcome this I envisioned a unified bot->webhook interface to perform computations and other types of formula handlers for Tables. Simply, I needed a way for my clients to create a bot that was able to run javascript snippets with arguments.

Examples...

  • Assessing the state of two drop-down columns to compute a percentage
  • Calculating a new value based on two-column values for a third column value

These are each possible using simple formulaic javascript embedded in bots. Given the selling price and cost of goods, for example, it should be easy to construct and utilize a formula like this to populate the Net Profit column in a table.

((({{Sales}} - {{Cost of Goods Sold}}) / {{Sales}}) * 100).toFixed(1).toString() + "%"

By passing this formula to a universal javascript runner service, Users are able to create some very complex formulas without actually writing or deploying code.

Based on my experiments with Google Apps Script and the Tables API, I see a bright future for using Tables in deeply complex and comprehensive information solutions that embrace all that Google Docs and G-Suite has become over the past 15 years and vastly better process automation.

Here's a video with the details and a demonstration.

posted to Icon for group No-Code
No-Code
on September 28, 2020
  1. 1

    Great workaround! I too see the great potential GTables has - let's see where it ends up. Formulas need to become native, if only to avoid the bot count - I haven't yet become accustomed to think of actions as limited per max uses per table per month...

    The other thing they could use: Gantt charts

  2. 1

    Bill - great work, interesting workaround! Thanks for sharing.

    But I hope they introduce a native way to do formulas, so it's as easy as the rest of the product to use.

    I love your optimism in the final paragraph. I could see it being a super valuable tool for existing G Suite customers too. Really hope we see Tables graduate to core product.

    Cheers!

    1. 1

      I hope they introduce a native way to do formulas, so it's as easy as the rest of the product to use.

      Indeed. Until then this is one way to create responsive computational behaviours. But it's also likely the case when an integrated formula capability arrives it will be incomplete; formula consumers have really diverse needs. We saw formula capabilities stagnate at Airtable for a half-decade and even when they began in earnest to enhance them, they continue to fall short even today with math and other powerful string handling methods.

      One way to avoid this is to create a framework for integrated formulas and make it possible to craft them as plugins using javascript. Build all the basics and allow the community to build everything imaginable.

Trending on Indie Hackers
Agencies charge $5,000 for a 60-second product demo video. I make mine for $0. Here's the exact workflow. User Avatar 147 comments I've been building for months and made $0. Here's the honest psychological reason — and it's not what I expected. User Avatar 140 comments This system tells you what’s working in your startup — every week User Avatar 40 comments 11 Weeks Ago I Had 0 Users. Now VIDI Has Reviewed $10M+ in Contracts - and I’m Opening a Small SAFE Round User Avatar 19 comments I built a health platform for my family because nobody has a clue what is going on User Avatar 15 comments Why Direction Matters More Than Motivation in Exam Preparation User Avatar 14 comments