Quick, clean, and to the point

How to use named ranges with tables

In this video, we'll look at how to use named ranges with Excel tables.

One problem with tables is that you can't use structured references directly to create data validation or conditional formatting rules.

However, as a workaround, you can define named a named range that points to a table, and then use the named range for data validation or conditional formatting.

To illustrate, here I have a list of projects representing a sales pipeline. The last column in the table uses data validation to provide a dropdown list of allowed values.

Although these values come directly from a table named "stages", Excel shows only a regular cell reference in the data validation window. 

If I try to use a structured reference to define the data validation range, Excel complains.

One solution is to define a named range using a structured reference, then use the named range for data validation.

To keep things straight, I'll first rename the table to start with a "t" for table.

This will let me see at a glance which range is the table.

Next, I'll create a named range called "Stages" using the name manager. In the name manager, I'm free to use a structured reference. When I select the values in the table, Excel automatically fills in the structured reference.

On the worksheet, I'll now see the stages table, and the named range I created with a structured reference

Back in the data validation input area, notice that if I re-select the same range, Excel still doesn't use a name.

However, if I enter the named range manually, Excel will happily accept it when I click OK.

And if I check the data validation rule again, the name will still be there.

The benefit of this two-step approach is that the data validation rule is easier to understand, since it's clear that values come from specially named range.

And, if we check that name in the name manage, it's clear the values are provided by the column called "stages" in the table. 

Dave Bruns