Sub topic 5
Cells, Rows, Columns and Sheet Tabs
This chapter assumes you can open a spreadsheet in Google Sheets and find your way around the interface from the previous chapter. You should also know that a table is made of rows and columns. Here you will learn how Sheets organizes a spreadsheet into cells, rows, columns and sheet tabs. You will also learn how to address any cell, select ranges, and manage the structure of a file.
The grid is a coordinate system
A Google Sheets file is called a spreadsheet. Each spreadsheet holds one or more sheets, also called tabs. Each sheet is a grid made of three building blocks:
- A column runs vertically and is labeled with letters: A, B, C, and so on.
- A row runs horizontally and is labeled with numbers: 1, 2, 3, and so on.
- A cell is the box where one row and one column cross. A cell holds one value or one formula.
Every cell has an address built from its column letter followed by its row number. The cell in column B, row 3 is B3. The column letter always comes first. 3B is not a valid address.
After column Z, the labels continue with AA, AB, AC and so on, then BA, BB, and onward. A new sheet starts with 1,000 rows and 26 columns (A to Z). You can add more as needed. A single spreadsheet can hold up to 10 million cells across all of its sheets. Google can change this limit, so check the current Sheets limits if you plan to work with very large data.
Selecting cells and ranges
Clicking a cell selects it. The selected cell gets a blue border. Its address appears in the name box, the small field at the left end of the formula bar. Anything you type goes into this active cell.
A range is a group of neighboring cells written as the first cell, a colon, and the last cell. The range B2:B6 is five cells in column B, from row 2 to row 6. The range A1:C3 is a rectangle of nine cells, three columns wide and three rows tall.
You can select a range in several ways:
- Click the first cell and drag to the last.
- Click the first cell, hold Shift, and click the last.
- Type the range into the name box, such as
B2:B6, and press Enter. - Click a column letter to select the whole column, or a row number to select the whole row.
- Click the empty rectangle in the top-left corner, above row 1 and left of column A, to select the entire sheet.
To select cells that are not next to each other, hold Ctrl (Cmd on a Mac) while you click or drag.
When you select several numeric cells, the bottom-right corner of the window shows quick statistics such as the sum and average. This is a fast way to check numbers without writing a formula.
Why addresses matter: formulas use them
Addresses are not just labels. Formulas use them to find data. Suppose column B holds quantities and column C holds unit prices. The formula below multiplies the values in B2 and C2:
=B2*C2Because the formula points to cells instead of containing the numbers, the result updates when either value changes. The same idea works with ranges:
=SUM(B2:B6)This adds every number in B2 through B6. Later chapters cover formulas in detail. For now, remember that a good layout makes addresses easy to reason about.
Working with rows and columns
You will often need to change the shape of your data after you have started. Right-click a row number or column letter to open a menu with the structural options.
| Task | How to do it | Result |
|---|---|---|
| Insert a row | Right-click a row number, then choose Insert 1 row above or below | A blank row appears. Rows below shift down. |
| Insert a column | Right-click a column letter, then choose Insert 1 column left or right | A blank column appears. Columns to the right shift over. |
| Delete a row or column | Right-click its header, then choose Delete row or Delete column | The row or column is removed and the others close the gap. |
| Hide a row or column | Right-click its header, then choose Hide | It disappears from view but its data and formulas remain. |
| Resize | Drag the border between two headers | The row gets taller or the column gets wider. |
| Move | Select the header, then drag it to a new position | The whole row or column moves with its data. |
To act on several rows or columns at once, select them first. Click the first header, then Shift-click the last. Right-click and the menu will say, for example, "Insert 3 rows above".
Inserting and deleting with formulas in mind
Sheets adjusts formulas when you insert or delete rows and columns. If =SUM(B2:B6) exists and you insert a row between rows 3 and 4, the formula becomes =SUM(B2:B7). The range grows to include the new row.
Deleting is riskier. If a formula refers to a cell in a row you delete, that reference breaks and the formula shows a #REF! error. Check formulas after you delete anything.
Hiding is not protecting
Hidden rows and columns still exist. Their values still feed formulas. A small arrow marker appears between the neighboring headers so you can show them again. Anyone who can view the file can also unhide them, so do not use hiding to keep private data secret.
Freezing rows and columns
When a table grows beyond one screen, the header row scrolls out of sight and you lose track of what each column means. Freezing pins rows or columns in place while the rest scrolls.
To freeze the top row, open the View menu, choose Freeze, then choose 1 row. You can also freeze 2 rows, or all rows up to the current one. The same menu freezes the first column or several columns. A thick gray line marks the boundary. Choose No rows or No columns to remove the freeze.
Freeze only what you need. If you freeze too many rows on a small screen, little room is left for scrolling data.
Sheet tabs
At the bottom of the window you will see one or more sheet tabs. A new spreadsheet starts with a single tab named "Sheet1". Each tab is its own grid, with its own cells A1, B1, and so on. Use tabs to separate related material inside one file. Examples are one tab per month, one for raw data and one for a summary, or one per department.
| Task | How to do it |
|---|---|
| Add a sheet | Click the plus (+) button at the lower left |
| Switch sheets | Click a tab |
| Rename | Double-click the tab name, type a new name, press Enter |
| Duplicate | Right-click the tab, choose Duplicate |
| Delete | Right-click the tab, choose Delete, then confirm |
| Reorder | Drag the tab left or right |
| Change tab color | Right-click the tab, choose Change color |
| Hide | Right-click the tab, choose Hide sheet |
The All sheets button, next to the plus button, lists every sheet. It is useful when there are too many tabs to fit.
Referring to another sheet
Cell A1 on Sheet1 and cell A1 on Sheet2 are different cells. To use a cell from another sheet in a formula, put the sheet name, an exclamation mark, and the address:
=Sheet2!B2If the sheet name contains spaces or special characters, wrap the name in single quotes:
='January Sales'!B2A range works the same way, for example ='January Sales'!B2:B6. Renaming a sheet updates formulas that point to it. Deleting a sheet breaks them with #REF! errors.
Choosing between one sheet and several
Use a new tab when the data has a different shape or purpose. Keep data in one sheet when you want to sort, filter or total it together. Splitting one table across many tabs, such as a separate tab for each week of the same log, makes combined totals harder. A common pattern is a single data tab plus a separate summary tab.
A layout that stays easy to manage
A few habits make a grid easier to work with, and they prevent errors later.
- Put column headings in row 1 and keep them short and unique.
- Keep one kind of value in each column. Do not mix dates and notes in the same column.
- Avoid blank rows and blank columns inside a table. Many tools treat a blank row as the end of the data.
- Do not put several unrelated tables side by side on one sheet. Inserting or deleting rows in one table then affects the other.
- Give sheets meaningful names instead of leaving "Sheet1".
Common mistakes
- Typing in the wrong cell. The active cell receives your typing. Check the name box before you enter data.
- Confusing delete and clear. Pressing Delete on a selected cell clears its contents. It does not remove the cell. Deleting a row or column through the right-click menu removes the structure itself.
- Merging cells casually. Merged cells make sorting, filtering and formulas harder. Prefer widening a column or changing alignment.
- Assuming hidden means gone. Hidden rows and sheets still count in formulas and are still visible to anyone who unhides them.
- Forgetting that sheet names are part of the address. Renaming is safe. Deleting is not.
Practice
Try this in a new spreadsheet.
- Rename Sheet1 to "Orders".
- In row 1, type the headings Item, Quantity and Price in A1, B1 and C1.
- Fill rows 2 to 4 with three items.
- Select row 1 and freeze it with View, Freeze, 1 row.
- Insert a blank row between rows 2 and 3, and notice how the rows below move down.
- Add a second tab named "Summary". In A1 of that tab, type
=SUM(Orders!B2:B5)and press Enter.
Exercise
A sheet named "Q1 Report" has totals in column D. You want a cell on another tab to show the value in D10. What formula do you write, and why are the quotes needed?
Show answer
Write ='Q1 Report'!D10. The sheet name contains a space, so it must be wrapped in single quotes. Without them Sheets cannot tell where the name ends.
Exercise
The formula =SUM(B2:B6) is in cell B8. You right-click row 4 and choose Insert 1 row above. What does the formula say afterward, and where is it?
Show answer
The formula moves down to B9 and becomes =SUM(B2:B7). Sheets shifts the formula with its row and expands the range to include the new row.
Exercise
You hide column C because it holds salaries you do not want a colleague to see, then share the file with them as a viewer. Is the data protected? Explain.
Show answer
No. Hiding only removes the column from view. The viewer can unhide it with the arrow marker between the neighboring column headers. To keep the data private, move it to a separate file or do not share it.