+ Reply to Thread
Results 1 to 6 of 6

Make D.V. list dynamic even if source list is linked to other cells that are empty

  1. #1
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Make D.V. list dynamic even if source list is linked to other cells that are empty

    Hello,
    Below is a formula which gets placed in the name manager. The object of the formula is to display in a data validation list only the values that exist in the named range and not blanks, this works dynamically
    Please Login or Register  to view this content.
    Problem i am having is that each cell in the range, which the named range refers to, are actually linked to a different cell in another workbook, every cell in the named range has this dynamic formula:
    Please Login or Register  to view this content.
    So basically the first formula which is situated in the named range manager will read all the formulated cells even if the formula returns a "", hence the data validation list will go on and on even if there is nothing to display.
    Is there any way around this?
    Last edited by FDibbins; 12-23-2015 at 10:41 PM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Make D.V. list dynamic even if source list is linked to other cells that are empty

    =IF([DataBase.xlsx]Sheet3!A2<>"",[DataBase.xlsx]Sheet3!A2,"") could be shorter by:
    =[DataBase.xlsx]Sheet3!A2
    Sure column A of BrandList is a exact mirror of column A of Database, including blank cell inside.
    To get a solid column A from Database, use this formula in A2 sheet BrandList:

    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Drag down as far as needed.

    And the name formula shoud be:

    Please Login or Register  to view this content.
    Does it work?

    If not, try to upload a sample to see what I can do.
    Quang PT

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Make D.V. list dynamic even if source list is linked to other cells that are empty

    Is your data text or numeric? If numeric, try using COUNT() instead of COUNTA().

    If that doesnt work, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Make D.V. list dynamic even if source list is linked to other cells that are empty

    If the data is TEXT replace:

    COUNTA(BrandList!$A:$A)

    With:

    COUNTIF(BrandList!$A:$A,"?*")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Re: Make D.V. list dynamic even if source list is linked to other cells that are empty

    Thank you so much guys, both formulas work flawlessly.
    Ty ty ty

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Make D.V. list dynamic even if source list is linked to other cells that are empty

    You're welcome. We appreciate the feedback!

+ 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: 5
    Last Post: 01-07-2014, 10:45 AM
  2. Excel 2007 : List with dynamic source issue
    By kentwistle in forum Excel General
    Replies: 5
    Last Post: 02-06-2012, 06:06 PM
  3. Replies: 2
    Last Post: 02-19-2011, 01:08 AM
  4. linked drop down list boxes and external source
    By haggisns in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-26-2010, 03:07 PM
  5. Dynamic list as Chart source data.
    By leecs in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 06-10-2009, 08:33 PM
  6. Remove empty cells from named list / validation list
    By Sp00k in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-28-2006, 10:45 AM
  7. [SOLVED] How create a nonblank source for a verification list with a mix of filled & empty cells?
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-08-2005, 03:05 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