Golden rules of data structure
Most problems in analysis come from badly structured sheets. Follow these rules:
- One header row with unique, clear column names (
Unit Price, not Price/unit Rs. (incl?)). - One record per row: one sale, one student, one transaction.
- One type of information per column: do not mix city and state in one cell, or numbers and text.
- No blank rows or columns inside the data.
- No merged cells in the data area.
- No subtotals mixed into the data: calculate totals separately.
- Dates as real dates, numbers as real numbers (right-aligned by default), not text.
Wrong vs right
| Wrong | Right |
|---|
| "₹14,999/-" typed as text | 14999 with currency formatting |
| "Delhi, 2 pcs" in one cell | City: Delhi, Qty: 2 in separate columns |
| A "Total" row every 10 rows | A separate summary or pivot table |
Excel Tables
Turning your data into an Excel Table is one of the best habits you can build.
How: click anywhere in the data and press Ctrl + T → confirm "My table has headers" → OK. Give it a name in Table Design → Table Name, e.g. Sales.
Benefits
- Automatic expansion: new rows typed below are included in formulas, charts and pivot tables.
- Banded rows and filter buttons appear automatically.
- Calculated columns: type a formula once and it fills the whole column.
- Structured references: readable formulas like
=[@Qty]*[@[Unit Price]] instead of =F2*G2. - Total row: Table Design → Total Row, then choose Sum, Average or Count from a drop-down.
Add a calculated column
In the column after Salesperson, type the header Revenue, then in the first cell:
=[@Qty]*[@[Unit Price]]
Press Enter, the whole column fills automatically.
Freeze panes
For large data, keep the header visible while scrolling: View → Freeze Panes → Freeze Top Row.
Number formats
Select a column and press Ctrl + 1 to format:
- Amounts → Number with 0 decimals and thousand separators, or Currency with ₹.
- Dates → a consistent format such as
dd-mm-yyyy.
Formatting changes only how a value looks, not the value itself.
Google Sheets note
Sheets has Format → Convert to table (in recent versions) and filter views; structured references work slightly differently. Freezing is under View → Freeze.
Practical exercise
- Convert your ElectroMart data into a Table named
Sales. - Add a calculated
Revenue column. - Turn on the Total Row and show total revenue and average quantity.
- Freeze the top row and format the price and revenue columns with ₹ and thousand separators.
- Add 3 new rows below the table and check that the total updates automatically.