+ Reply to Thread
Results 1 to 4 of 4

Data validation fails with named range of array of constants

Hybrid View

  1. #1
    Registered User
    Join Date
    10-15-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    9

    Data validation fails with named range of array of constants

    Hi all,

    I've set up a Named Range that refers to an array of constants, e.g. MyRange ={1,2,3,4,5}. This appears to be fine since I can output the named range to a range of cells in a row (e.g. A1:E1) and see 1,2,3,4,5 (one value in each column).

    I'd like to use MyRange as the source for a Data Validation list in a cell.

    Normally data validation list sources must be vertical, so I've set MyRange =TRANSPOSE({1,2,3,4,5}). This appears to be fine since I can output the named range to a range of cells in a column (e.g. A1:A5) and see 1,2,3,4,5 (one value in each row).

    When I set MyRange as the source for data validation however, it resolves to an error.

    Anyone have an idea why this setup doesn't work?

    Workbook detailing the problem attached. Attachment 273788 NamedRangeDataValidationArrayConstansts.xlsx

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,996

    Re: Data validation fails with named range of array of constants

    Do you have a reason for not simply entering 1,2,3,4,5 in the data validation directly?
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Data validation fails with named range of array of constants

    There is no problem using horizontal named ranges in Data Validation. There is no need to transpose the range.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Data validation fails with named range of array of constants

    but a defined name using an array constant won't work, transposed or no. it's gotta be a worksheet range or a comma delimited list of values
    Josie

    if at first you don't succeed try doing it the way your wife told you to

+ 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. Excel 2007 : Drop down list with named range constants
    By weiser_john in forum Excel General
    Replies: 10
    Last Post: 11-23-2011, 10:18 AM
  2. Named Range - Data Validation List
    By Tarball in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-28-2010, 12:34 PM
  3. Using a named Range in Data Validation
    By Befuddled in forum Excel General
    Replies: 2
    Last Post: 02-11-2010, 11:07 PM
  4. Data Validation & Named Range
    By Dylan&Hayden in forum Excel General
    Replies: 5
    Last Post: 05-10-2008, 05:23 PM
  5. [SOLVED] Named Range Fails in VBA Code
    By Dean Hinson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2005, 12: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