+ Reply to Thread
Results 1 to 6 of 6

Dynamic range from every nth value in a column in a data validation list

  1. #1
    Registered User
    Join Date
    10-19-2012
    Location
    Estonia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Dynamic range from every nth value in a column in a data validation list

    I'm trying to create an array formula that makes a dynamic range from every nth value in a column and use that formula to create a data validation list in a cell. I've managed to conjure a formula that creates a dynamic array from every nth value in a column, but I can't seem to use it in data validation. Excel doesn't seem to like array formulas as a data validation source and using the formula to create a named range also gives an error. I tried to make an array range in a sheet and use that to create a data validation list, but I can't get rid of the #N/A-s even with IFERROR. Also my current formula doesn't work with strings. I'd appreciate if someone would help me make it work with data validation and with strings.
    The formula is:
    Please Login or Register  to view this content.
    See the attached workbook on how it works as an array range
    Attached Files Attached Files

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

    Re: Dynamic range from every nth value in a column in a data validation list

    that is impossible I'm afraid. a dv list has to be one contiguous row or column so you would have to use the formula in another range to extract the values you want and refer to that range in the dv list
    Josie

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

  3. #3
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Dynamic range from every nth value in a column in a data validation list

    See the attached
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-19-2012
    Location
    Estonia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Dynamic range from every nth value in a column in a data validation list

    While that allows for DV it doesn't skip the in-between cells, it just rearranges all the cells and excludes the blank ones. In addition it doesn't work with text.

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Dynamic range from every nth value in a column in a data validation list

    Try this workbook

    Put your data in column A. This list can be any length, and must be continuous.

    Enter the desired increment "n" in D2, the data validation list in E2 will change to suit.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  6. #6
    Registered User
    Join Date
    10-19-2012
    Location
    Estonia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Dynamic range from every nth value in a column in a data validation list

    Thanks. That solution seems to work fine. I didn't think of using INDEX for logic operations.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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