Using a Named table in Data Validation

Bagsy

Active Member
Joined
Feb 26, 2005
Messages
467
Office Version
  1. 365
Platform
  1. Windows
Hi all, hope you can help
I have created a named table called Customer_List
I select List in data validation
But when I type =Customer_List into the source box I get the error
“The formula you typed contains an error”
But the named table has dotted lines around it so it looks like its selected it.
Can anybody offer any advice please
 
I always use Tables as sources for Data Validation - the advantages of Tables far outweigh the faff required to create the Data Validation.

The solution is simple - just apply a traditional range name to the range you want to use as the source for your Data Validation. Basically, Data Validation does not know about Tables. But it does know about good old-fashioned Range Names. Select the column in the Table that contains the data you want to use in your DV list (not the heading); if you only have a single column, just select the data. Then in the Name box, type a (different) name. I usually start Table names with "tbl" so I would perhaps have a Table tblCustomers, with a column headed "Customers". I could use that name as my range name - or call it DVCustomers to make it clear that it is being used in Data Validation.

Once you have named your range, have a look in the Formulas, Name Manager. You should see that your new range name points to the table and column e.g. =tblCustomers[Customer]. Use this range name as the source for your Data Validation. So (my example)

Data Validation Source: =DVCustomers (normal range name)
Named Range DVCustomers: =tblCustomers[Customer] i.e. the Customer column of a table called tblCustomers.
 
Upvote 0

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Aladin
Apologies for not getting back to you, something came up.
I have created the lists as named ranges, then I converted them to tables. They are now shown as both in the “Name Manager”. They are working both as a dynamic named range and as a dynamic table all seems to be working OK with Vlookup and data validation drop down list.
Thanks for all your assistance much appreciated
Bagsy
 
Upvote 0
Glad you managed to sort it out, Gary, and thanks for letting us know!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top