Sub topic 2
Reading a Table: Header Row, Columns, and the Table Menu
This chapter assumes you can select ranges in A1 notation, enter data, write simple formulas such as SUM, and convert a range to a table.
The header row and columns
The header row is the top row of a table. It names each column. Keep header names short and unique, because you will use them to refer to columns in formulas. Each column should hold one kind of data.
The table menu
Click any cell in the table to open its table menu. The menu lets you rename the table and apply sorting, filtering, and grouping to the whole table. Use the dropdown arrow in a header cell to reach options for that column alone.
Setting column types
A column type tells Sheets what kind of values belong in the column. Common types include plain text, number, date, dropdown, and checkbox. Open the column's header menu, choose the column type option, and pick the type that matches the data.
Styling and banded rows
Table styling applies a color theme to the header and body. Banded rows alternate the shading of each row so that rows are easier to read. Styling changes only how the table looks. It does not change the values, so formulas keep working.
Naming a table and using it in formulas
Give the table a name, such as Orders, from the table menu. Then refer to a column by its name in a formula:
=SUM(Orders[Amount])
=COUNTIF(Orders[Paid], TRUE)A structured reference like Orders[Amount] follows the column as rows are added. A fixed range such as C2:C4 does not.
Exercise
You have a table named Orders with a column called Amount. Which formula adds all the amounts, and why is it better than =SUM(C2:C4) when you add rows?
Show answer
=SUM(Orders[Amount]). It refers to the column by name, so new rows added to the table are included automatically. The range C2:C4 stays fixed at three rows.