+ Reply to Thread
Results 1 to 2 of 2

Excel 2016 - DataValidation List with INDIRECT error with Named Formula

  1. #1
    Registered User
    Join Date
    04-19-2021
    Location
    Seattle, Washington
    MS-Off Ver
    2016
    Posts
    1

    Excel 2016 - DataValidation List with INDIRECT error with Named Formula

    Thank you for reading through and helping!

    I am using a Data Validation dropdown list with the INDIRECT function that pulls inputs from two cells and returns the list from one of eight named ranges (AllYellow, AllOrange, AllPurple, AllBlue, DefaultYellow, etc.). It works fine. The named ranges have a lot of blank cells in them and I found a way to filter the named range to not include blank cells that look like this:

    =Sheet1!$C$2:INDEX(Sheet1!$C$2:$C$1000,SUMPRODUCT(--(Sheet1!$C$2:$C$1000<>"")))

    When I enter this into my named range instead of =Sheet1!$C$2:$C$1000, the Value Column shows {,,,} instead of the data, BUT it does show up in a dropdown list when I set the source box equal to =AllYellow.

    At this point, I have AllYellow mapped to the above formula and all other named ranges mapped to a fixed range. If my INDIRECT function shows AllYellow, I can't select anything from the dropdown list. If it shows any other range, there is no issue (aside from the blanks)

    I also tried this with a mess of nested IF statements in the Data Validation Source box and it told me that "A named range you specified cannot be found", so no luck there.

    Is there a solution to this or another path I should be going down to get the desired results?
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Excel 2016 - DataValidation List with INDIRECT error with Named Formula

    Hello natron8 and Welcome to Excel Forum.
    Perhaps the following will help.
    1. Select cells C1:C4
    2. Press the Ctrl key and select cells D1:D3
    3. Press the Ctrl key are select cells E1:E3
    4. Continue like this selecting only those cells containing a value through cells J1:J3
    5. Press the Ctrl + Shift + F3 keys
    6. From the Create Names from Selection dialog box make sure that Top row is checked.
    7. Press OK.(You may be asked if you are sure you want to replace the current definition > select Yes)
    8. If you need to add to or subtract from one of the lists simply select the cells in that column and repeat steps 5:7.
    I feel that in this instance the above method is easier than writing complex formulas.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. [SOLVED] How to use Formula in DataValidation List Source
    By GregM56 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-12-2019, 03:06 PM
  2. Dynamic Combobox searchfucntions 'Indirect' dropdownlist (VBA) (MS Office Excel Pro 2016)
    By arnoudholtzer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-18-2018, 12:56 PM
  3. VBA Run time error 13 type mismatch in Excel 2010 with Datavalidation & VBA
    By Maatgie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-13-2017, 12:45 AM
  4. Excel 2016 Error in Formula or its a bug?
    By pattyyy in forum Excel General
    Replies: 16
    Last Post: 07-18-2016, 12:01 PM
  5. Indirect Vlookup List and Dynamic Named Ranges - Is there a workaround
    By Jennasis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-13-2013, 06:57 AM
  6. Replies: 2
    Last Post: 06-03-2013, 08:26 AM
  7. Replies: 4
    Last Post: 07-11-2012, 03:29 PM

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