+ Reply to Thread
Results 1 to 3 of 3

Thread: Data Validation List from Table Name Error

  1. #1
    Registered User
    Join Date
    07-27-2011
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    34

    Data Validation List from Table Name Error

    Hello,
    I have had no trouble creating drop-down tables in the past, but I am having difficulty when the list data is coming from elements of a table that has been 'Formatted as Table'.

    A simple example of my problem is this:

    1. Create a vertical list of 2 elements with some heading, e.g. 'MyTable' \ A \ B.
    2. Format as table with any of the styles. Select 'my table has headers'. The A and B cells together have been automatically named 'Table1'.
    3. Select any other cell, and apply data validation, allowing for list with source =Table1
    4. I get the 'The formula you have typed contains an error' dialogue and can't continue.

    If I add another name to cells A and B, such as Table2, it will let me validate using that name. However, the two are fundamentally different (I can't delete the Table1, and it is called a 'Table Name' rather than a 'defined name')

    Is there some reason I can't seem to use table names to identify source data for validation? I could of course name them twice, but this would be a pain and clutter the spreadsheet.

    Any ideas?

    PS Hi!
    Last edited by rosilisk; 07-29-2011 at 05:27 PM.

  2. #2
    Valued Forum Contributor Haseeb A's Avatar
    Join Date
    05-24-2011
    Location
    India | Kwt
    MS-Off Ver
    2007
    Posts
    1,453

    Re: Data Validation List from Table Name Error

    Hello Rosilisk,

    If you have more than 1 column in Table1, can't use list source as Table1. Define a name range of 1 heading & use it in the list source Or use INDIRECT in list source.

    Say, A & B are the 2 headings in Table1, so use in list source,

    =INDIRECT("Table1[A]")
    HTH; Haseeb

    If your problem is solved, please say so clearly, and mark your thread as Solved:
    Forum Rules & How to Mark a thread as SOLVED

  3. #3
    Registered User
    Join Date
    07-27-2011
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Data Validation List from Table Name Error

    Haseeb,

    Thanks for the help, the INDIRECT functionality fixed my error.
    The error was occurring even when the table only had one heading and column.

    Cheers!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0