Skip to content

Database design for spreadsheet users: from tabs to tables

How to structure a database: one thing per table, a field per fact, a link where you'd have made a tab, and nothing typed that the data already knows.

Updated November 2026

If you've run a serious spreadsheet, you already do data modeling. You decided what the columns were, what a row meant and which tab held what. Database design is the same work with three rules added, and the rules fit on this page.

One thing per table

A table holds one kind of thing, and you should be able to name it in a word, like guests, bookings, orders or products. The test is simple and it works: finish the sentence "each record is one ___." If the answer comes out "well, mostly bookings, but the top section is this year's rates," that's two tables sharing a grid, and they'll keep getting in each other's way.

The opposite problem counts too. If two tabs pass the test with the same word (Bookings 2025 and Bookings 2026 are both "each record is one booking"), they're one table split by hand. Merge them and add a date field, and each year becomes a filtered view of the same table.

A record per thing, a field per fact

Each field states one fact about the record's thing, like a booking's check-in date or an order's status. Two patterns break this rule, and you want to catch both early:

  • A fact about a different thing. Guest name, Guest email and Guest phone on every booking are facts about the guest, stored once per booking. With ten bookings there are ten copies of the phone number, and the day it changes you update nine.
  • The same fact, once per column. Jan revenue, Feb revenue and Mar revenue are one fact, revenue, spread across twelve columns. The columns are hiding a date, and the fix is records, one per month, with a month field. In a database, records are cheap and fields are structure.

When a new tab should have been a linked table

As soon as guest details clutter the bookings tab, the spreadsheet habit is to make a Guests tab and VLOOKUP across. That instinct is right. Guests are a second kind of thing, so they get their own table. What changes is the connection. Instead of a formula matching names, a booking links to its guest. The link is a value in the cell, not a lookup that breaks when a name is misspelled or a column moves.

A shop works the same way. An Orders tab that repeats product names and prices on every line needs a Products table, and each order links to the products in it. There's one record per product, a hundred orders can point at it, and a price correction happens once.

As a general rule, give a new kind of thing its own linked table, and never make a new tab for more of the same thing, because that's a view. Relationships, explained covers how links behave, including which side holds them and what appears on the other table.

Naming

These are small decisions you'll be reading for years:

  • Name the table for the thing, plural. Orders, not Order, and not Order tracking 2026 NEW. The table is where those things are kept from now on, not a document with a date on it.
  • Name a field for the fact, not the widget. Deliver by, not Delivery date dropdown v2. The field already has a type, so the name doesn't have to carry it.
  • Don't number-prefix fields to force an order. Field order is arrangement, not data. Drag fields into place, or let each view arrange its own.

The multiplying status columns

Someone adds a checkbox column for each stage: Confirmed?, then Preparing?, then Shipped?, then Delivered?. That's four columns and fifteen legal-looking combinations, one of which (everything checked at once) means nothing, and the answer to "where is this order?" is spread across all four.

Those four columns are one fact, the status. Replace them with a single select field that has the stages as its choices. An order is then "Preparing" or "Shipped," never both, and a board view can stack orders by it, which four checkboxes could never draw.

Only merge columns that are stages of one lifecycle. Paid? isn't a stage of delivery (an order can be delivered and unpaid), so it stays its own checkbox. If two "statuses" can be true at the same time, they're two different facts.

Don't store what you can derive

The last spreadsheet habit to unlearn is typing in what the data already knows. A Total typed next to Nights and Rate is correct until someone edits the nights and not the total, and nothing marks it as stale. Derived values belong in fields that compute them: arithmetic on the same record in a formula, a linked record's value shown through a lookup, a group summed by a rollup. Lookup vs rollup and formula, lookup or rollup sort out which of the three to use. For design, the one rule is if it can be computed, don't type it.

There's one exception to remember, because invoices depend on it. A value that must not change when its inputs do, such as the price you charged on the day, is history, not a derived value. Type that one in and keep it as a stored value.

What the result looks like

Model the guests and bookings sheet by these rules and you get a Guests table (a record per person), a Bookings table (a record per stay, linked to its guest, with a Status select), and every yearly, monthly or per-guest angle as a view. The shop version has Products and Orders, links between them, and totals that are derived.

Most working databases have this shape: two or three tables with plain names, nothing stored twice, and nothing typed that could be computed. If you're building one in Tabla, your first database goes through the same steps with the buttons on screen.

About Tabla

Tabla is a no-code database with Postgres underneath. Every feature is on every plan, you get a million records per database, and you can export your whole database in one file any day.

More guides