fx Data Layer Architecture

Named ranges, tables, and naming conventions

⏱ 15 min

What you'll learn

  • Tables for every data block
  • Named cells and ranges
  • Dynamic named ranges for spills

Concept

1. Tables for every data block

Ctrl + T on every raw dataset, then rename it (Table Design → Table Name):

=SUMIFS(tblSales[Revenue], tblSales[Region], inp_Region)

is clearer than =SUMIFS(RAW_Sales!$L$2:$L$50001, RAW_Sales!$E$2:$E$50001, CALC!$C$3) — and it includes new rows automatically.

2. Named cells and ranges

Select a cell → type a name in the Name Box (left of the formula bar) → Enter. Or Formulas → Define Name / Create from Selection (uses labels next to the cells).

Good uses:

  • inputs: inp_FY, inp_Region, inp_Month
  • constants: k_GSTRate, k_TargetGrowth
  • KPI outputs: kpi_Revenue, kpi_YoY (DASH cards reference these)

Manage all names: Formulas → Name Manager (Ctrl + F3) — filter "Names with errors" to find broken ones.

3. Dynamic named ranges for spills

A spilled list in CALC!F5 can be named for charts and validation:

Name: lst_Regions   Refers to: =CALC!$F$5#

Charts can't use # directly in the series box, but they accept a name: series values ='Dashboard.xlsx'!lst_Regions. (The older way, OFFSET(...,COUNTA(...)), works too but is volatile — Module 8.)

4. A naming convention

Object Prefix Example
Table tbl tblSales, tblTargets
Input cell inp_ inp_Region
Constant k_ k_RedThreshold
List (for dropdowns) lst_ lst_Regions
KPI output kpi_ kpi_Revenue
Chart range ch_ ch_TrendCur, ch_TrendLY
Power Query stg_, dim_, fact_, chk_ fact_Sales
Sheet layer prefix DASH, CALC, RAW_Sales
Pivot pvt_ pvt_RegionMonth (PivotTable Analyze → PivotTable Name)

Rules: no spaces, start with a letter, don't use names that look like cells (FY26, Q4), keep them short but meaningful.

5. Scope

Names are Workbook scope by default — usable anywhere. Use Sheet scope only when two sheets need the same name for different cells (rare in dashboards).

6. Labels and units next to inputs

Every input cell gets a label on its left and a note on allowed values (data validation list). Colour input cells consistently (e.g. light yellow) so builders know "this can be changed".

Common mistakes

Unnamed Tables (Table1, Table2…). Hard-coded ranges that miss new rows. Names with errors left in Name Manager after deleting sheets. Mixing naming styles.

Exercises

mediumIn your restructured workbook: rename every Table, create inp_ names for the selector cells, a lst_Regions name pointing to a UNIQUE spill, and kpi_ names for each KPI result. Rewrite two long formulas using these names.
Name input tables tblSales/tblTargets, selectors inp_FY/inp_Region, list spill lst_Regions, and KPI outputs kpi_Rev/kpi_Ach. Use workbook scope unless a local name is deliberate. Keep spill formulas outside Tables; names should refer to the actual spill cells, and labels must show rupees/lakh/crore explicitly.

Quiz

Fastest way to name a cell?
Type in the Name Box and press Enter
How does a chart use a spilled range?
Through a defined name that refers to the spill, e.g. =CALC!$F$5#
Where do you find and fix broken names?
Name Manager, filter Names with errors
Named ranges, tables, and naming conventions · Dashboards | ExcelWalaa