+ Reply to Thread
Results 1 to 5 of 5

Using using a multi-column table for a data validation rule

  1. #1
    Registered User
    Join Date
    07-05-2018
    Location
    Canada
    MS-Off Ver
    2019
    Posts
    8

    Using using a multi-column table for a data validation rule

    Sorry this is a simple question and thanks in advance to anyone who can help. I'm setting up a validation rule for some cells and I only want the user to be able to pull values from the column Widget in the table Products. What is the actual Source I should be using in my validation rule?

    "=Products" obviously doesn't work because Products is a multi-column table.
    "=Products[Widget]" doesn't work
    "=Products[atWidget]" doesn't work

    Sorry for the dumb question but I do really appreciate anyone's assistance. Cheers!

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Using using a multi-column table for a data validation rule

    Hi Coupland,

    Excel just added some new Dynamic Array Functions and this is a perfect problem to show them off. See the attached and read the link:

    https://www.excelcampus.com/function...-spill-ranges/

    Dynamic Array Unique Sort Validation.xlsx

    I hope you have the 365 subscription and can update your version. I'm using 365 Home and have updated mine...
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Using using a multi-column table for a data validation rule

    I think you’ll find they are not in Excel 2016, though, only Office 365.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    07-05-2018
    Location
    Canada
    MS-Off Ver
    2019
    Posts
    8

    Re: Using using a multi-column table for a data validation rule

    Thanks, but this doesn't really accomplish what I'm looking for.

    Let me try explaining it in another way. Let's imagine I have a large table named Orders. One of the columns in that table is named "ProductOrdered". I have another table named Products that contains a bunch of columns, including ProductName.

    When someone enters a new row in Orders and they fill out the column ProductOrdered, I want a validation rule to makes sure this is a valid ProductName in the table Products.

    All I can get to work as a validation rule is "=Data!$B$3:$B$26". But I don't want to use that because that range doesn't adjust dynamically as the Products table grows. I'm looking for a validation rule that references the column ProductName in table Products.

    I thought my validation rule would be something simple like:

    =Products[ProductName]

    Or something like that, but it generates an error. Can I specify a validation rule that references the column ProductName in table Products, not just a "Worksheet!$firstcol$firstrow:lastcol:lastrow" format?
    Last edited by coupland; 02-16-2019 at 06:52 PM. Reason: typo

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Using using a multi-column table for a data validation rule

    Hi Coupland,

    Have you seen Dynamic Named Ranges that adjust with the number of rows you have? This might be what you are needing..

    https://www.excel-easy.com/examples/...med-range.html
    https://www.ablebits.com/office-addi...c-named-range/

    Your question sounds like this is what you seek.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 12-26-2017, 11:48 PM
  2. Multi-select from data validation isn't working with auto-assigning data validation
    By iPenguin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2017, 12:37 PM
  3. Replies: 19
    Last Post: 10-05-2012, 01:03 PM
  4. [SOLVED] Data validation Rule Help
    By pammy66 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-23-2012, 08:24 PM
  5. Tranposing data in a multi-column table
    By meowzers in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-26-2010, 07:57 PM
  6. data validation-setup a validation rule
    By de049 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2008, 08:17 AM
  7. Data Validation Multi-column Dropdown
    By Bill Sturdevant in forum Excel General
    Replies: 2
    Last Post: 02-04-2005, 02:06 PM

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.6.0 RC 1