Sheets Tip 370: Upgrade your Tables with this quick trick


Brought to you by:


Hi Reader,

Welcome to the Google Sheets Tips newsletter #370, your Monday morning espresso, in spreadsheet form!

This is the last Google Sheets Tips email for 2025.

We're taking a break from publishing for the holidays and will return with Tip 371 on 5th January 2026.

Thank you so much for reading and replying to these emails. I love learning from all of you when you write back and share your own tips and tricks (and occasional corrections! 😉 ).

In the meantime, I wish you all a Happy Holidays! 🎅 🎄 🎁 ☃️


Brought to you by: Query Streams

SQL to Google Sheets in Minutes—Zero Code Required

Query Streams makes it effortless to bring live SQL data straight into Google Sheets with absolutely no coding required.

Connect in minutes, run queries instantly, and refresh data automatically without dealing with VPNs, firewall rules, drivers, or technical setup.

Query Streams works with SQL Server, PostgreSQL, MySQL, MariaDB, SQLite, and Access, with additional databases coming soon.

It gives teams a simple, unified way to work with real-time data directly inside Sheets. Share queries securely, control access, and eliminate CSV exports or complex scripts.

It’s the fastest, most reliable way for teams to use live database data in Google Sheets.


➜ Sheets Tip #370: Upgrade your Tables with this quick trick

If you've been reading these emails or attended one of my recent webinars, you'll know that I'm a strong advocate of using Tables. They have many built-in benefits such as data validation, column types, named ranges, etc.

One of those benefits is the ability to add a footer to our Tables with a single click. And, if we set the column type to one of the numeric data types (e.g. Currency), the footer will automatically add a SUM function to our data.

Add a footer from the Table menu (next to the Table name):

In our Sheet, it looks like this:

This is great!

But, but, but... (There is always a but.)

If we apply any filters to our data, then that SUM total will be incorrect.

Consider this example, where we apply a filter to show only the vegetables:

The SUM function still shows the total value of all the items ($40.70) and not the total of only the vegetables ($12.10).

Hmm? That's a problem...

The solution is to switch the SUM function to a SUBTOTAL function, which only includes the visible rows in the aggregation calculation.

Delete the SUM function and type this one instead:

=SUBTOTAL( 9 , Table1[Expense] )

where the number 9 specifies a SUM calculation. Other options include 1 = Average, 4 = Max, 5 = Min (see here for a full list).

"Table1[Expense]" refers to the Expense column of Table1.

In our Sheet, the total now displays the correct value:


If you enjoyed this newsletter, please forward it to a friend who might enjoy it.

Have a great week!

Cheers,
Ben

P.S. AI auditioning for acting job

Google Sheets Tips

Get better at working with Google Sheets! Join 50,000 readers to get an actionable tip in your inbox every Monday.

Read more from Google Sheets Tips

Hi Reader, Welcome to the Google Sheets Tips newsletter #398, your Monday morning espresso, in spreadsheet form! Everyone loves a pretty dashboard, right? But building dashboards in Google Sheets is difficult and involves lots of finicky formatting tricks. And even then, it won't look or perform as well as a professionally-developed web dashboard. Well... no longer! Today we're looking at the biggest update to Google Sheets since, well, forever. Google have launched a new Gemini-powered...

Rule precedence in conditional formatting

Hi Reader, Happy End-of-the-Summer-Holidays! ☀️ Welcome to the Google Sheets Tips newsletter #397, your Monday morning espresso, in spreadsheet form. Today I'm sharing three conditional formatting techniques that will help you really understand how conditional formatting works. Conditional Formatting is formatting applied to your data that changes as certain conditions are met. It's a super useful concept to understand. Check it out below. Recently in my household, we've been focussed on...

Brought to you by: Hi Reader, Welcome to the Google Sheets Tips newsletter #396, your Monday morning espresso, in spreadsheet form! Today I'm sharing 3 killer tips for pivot tables. I would still argue that Pivot Tables are THE killer feature of spreadsheets. Their ability to quickly and simply generate insights about your data is unmatched. So it makes sense to learn how to use them to their fullest. Today, I'm sharing three under-the-radar tips for using pivot tables. All 3 are very simple...