Sub topic 2
Giving an Excel Table a Meaningful Name
Assume you can select cells, enter formulas, use the Ribbon, and read A1-style references. The table name and its structured references make formulas easier to read and maintain.
Giving the table a meaningful name
Select any cell in the table. Open the Table Design tab and replace the value in Table Name. Use a descriptive name such as SalesTable or InventoryTable.
A table name:
- Must start with a letter, underscore, or backslash.
- Cannot contain spaces. Use underscores or capital letters instead.
- Cannot look like a cell reference, such as
A1. - Must be unique within the workbook.
A meaningful name helps you identify the correct data source in formulas and VBA.
Choosing a style and style options
The Table Styles gallery controls colors, borders, and alternating row bands. Select a style that keeps text and numbers easy to read. Use Table Style Options to show or hide:
- Header Row
- Total Row
- Banded Rows
- First Column
- Last Column
- Banded Columns
Style options change the table’s appearance. They do not change the underlying values or formulas.
How tables grow with your data
When you type directly below a table or beside its last column, Excel usually expands the table automatically. New rows inherit the table style and calculated-column formulas. Formulas that refer to the table also include the new rows.
Check the expanded boundary when importing or pasting data. A blank row, inconsistent header, or pasted content outside the table can prevent the result you expect.
Reading and writing structured references
A structured reference names a table or column instead of using cell coordinates. For a table named SalesTable, this formula sums its Amount column:
=SUM(SalesTable[Amount])Inside the table, a calculated column can multiply values from the current row:
=[@Quantity]*[@[Unit Price]][@Quantity] means the Quantity value on the current row. The double brackets are needed because Unit Price contains a space.
Exercise
What formula totals the Amount column in a table named SalesTable?
Show answer
=SUM(SalesTable[Amount])