Sub topic 5
Building Tables and Templates
Assume you can open a Google Sheet, select a range, and use the Gemini side panel. You should also know basic terms such as row, column, header, and range. Gemini can suggest a table structure, but you still decide where the table belongs and whether its fields fit your work.
A table is a structured range in which each row represents one record and each column represents one attribute of that record. A template is a reusable table layout with headings and, sometimes, example rows or instructions.
Start with the data model
Before writing a prompt, decide what one row means. For an expense tracker, one row might represent one purchase. Its columns could be:
| Date | Category | Description | Amount | Paid By |
|---|---|---|---|---|
| 2026-01-05 | Groceries | Weekly food shop | 85.40 | Alex |
Use one header row. Avoid combining cells, placing totals between records, or using a different data type in the same column. Store dates as dates and amounts as numbers rather than text with currency symbols typed into each cell.
A clean layout gives Gemini enough context to suggest useful columns and makes later formulas and charts more reliable.
Write a prompt with a clear outcome
A useful prompt names the table's purpose, the columns, and any formatting or behavior you need. Do not ask only for “a tracking sheet.” That leaves important decisions unspecified.
Create a table to track monthly expenses with columns Date, Category, Description, Amount, and Paid By.
Use one header row and one record per row. Format Date as a date and Amount as a number with two decimal places.
Do not add totals or sample records.The prompt requests a layout rather than pretending that Gemini knows your business rules. If you need a particular location, include it when the interface allows you to specify a range or sheet. Otherwise, select the destination area first and check where Gemini proposes to place the result.
You can also request a reusable project template:
Create a project task template with columns Task ID, Task, Owner, Status, Start Date, Due Date, and Notes.
Use one row per task. Suggest these Status values: Not started, In progress, Blocked, and Done.
Keep the header row clear and leave the record rows empty.Review and adjust the generated table
Inspect the proposed headers before accepting or copying the result. Ask these questions:
- Does every column describe one property of a record?
- Is any column redundant or too vague?
- Are dates, numbers, and categories stored consistently?
- Will a future formula need a column that is missing?
- Does the table contain instructions or example data that might be mistaken for real records?
If Gemini adds unwanted fields, use a follow-up prompt such as:
Remove the Notes and Paid By columns. Keep the other columns in their current order.
Leave all record rows empty.Manual edits are often faster for small changes. Rename a header directly, delete an unnecessary column, or add data validation for a fixed list such as Status. Gemini's suggestion is a starting layout, not a schema that your sheet must keep.
Keep the table ready for later work
A stable table makes formulas and charts easier to build. Keep headers in the first row and records below them without blank separator rows. Use consistent category names, such as Groceries every time, rather than alternating between Grocery and Food.
When the table is ready, record its location, such as Expenses!A1:E50. You can use that range in later prompts:
Using Expenses!A1:E50, create a summary of total Amount by Category.This connects table generation to formula and chart generation without making Gemini guess which data you mean.
Exercise
What is missing from the prompt “Create a table for project work,” and how would you improve it?
Show answer
It does not define one record, the columns, or the desired structure. Improve it by naming the purpose, specifying columns such as Task, Owner, Status, and Due Date, and stating that each row represents one task.