+ Reply to Thread
Results 1 to 6 of 6

Using COUNTA to Eliminate Blanks in a Drop Down List?

  1. #1
    Registered User
    Join Date
    01-05-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    20

    Using COUNTA to Eliminate Blanks in a Drop Down List?

    First, here is the formula I'm using:

    =OFFSET(Table60s1, 1, MATCH(CALLS!B3, dd_Formations, 0)-1, COUNTA(OFFSET(Table60s1, 1, MATCH(CALLS!B3, dd_Formations, 0)-1, 10000, 1)), 1)

    The name of this formula is Plays60s1. I currently have it in a dependent drop down list. I have many items in many different tables. Right now this randomly goes down 303 rows, when in fact Table60s1 is only 33 rows deep. I do have other sections within the different tables that are shorter and some that are much deeper, hence the 10000, another reason I want to eliminate the blanks at the end of the list.. How do I fix this to eliminate the blanks correctly within the scope of Table60s1 instead of encroaching on 3 other tables?

    I use this formula as well to bring up the drop down list, named dd_Plays. Here is a shortened version

    =IF(CALLS!D3="",SeriesName,IF(CALLS!D3="60's 1 High",Plays60s1,""))

    The formula continues to use all of the different table and formula name to create a menu of sorts inside one cell for my drop down lists.
    Last edited by qanjorin; 01-17-2016 at 07:13 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,422

    Re: Using COUNTA to Eliminate Blanks in a Drop Down List?

    Suggest you post a sample workbook so we can see how the data is laid out.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    01-05-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    20

    Re: Using COUNTA to Eliminate Blanks in a Drop Down List?

    Here is the sheet I'm working with.
    Attached Files Attached Files

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,422

    Re: Using COUNTA to Eliminate Blanks in a Drop Down List?

    Generally speaking, it is more practical to put the tables side by side, rather than underneath one another. You can then create Dynamic Named Ranges based on one of the columns; ideally, a fully populated column. In order to create the Dynamic Named Range(s), the rows under the tables must be blank.

    Alternatively ... again, with tables side by side, and separated by at least one blank column, you could convert the tables to Structured Tables. Excel will manage the size of the tables (in terms of rows) and you can define Named Ranges (equivalent to existing Named Ranges, I guess) to refer to the Structured Tables and/or columns within the Structured Tables.


    Regards, TMS

  5. #5
    Registered User
    Join Date
    01-05-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    20

    Re: Using COUNTA to Eliminate Blanks in a Drop Down List?

    I think I can make that work. Thanks for your input. It was easier to see all of my tables underneath each other, but I see how much easier it will be to eliminate the blanks with the tables side by side.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,422

    Re: Using COUNTA to Eliminate Blanks in a Drop Down List?

    You're welcome.

+ 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. How do you get rid of blanks in a drop down list?
    By nerd999 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 05-20-2014, 10:25 PM
  2. Replies: 2
    Last Post: 03-01-2013, 07:01 AM
  3. [SOLVED] Drop down list showing blanks
    By blueice2627 in forum Excel General
    Replies: 6
    Last Post: 08-12-2012, 09:51 PM
  4. How to remove blanks in the drop down list?
    By password636 in forum Excel General
    Replies: 10
    Last Post: 10-14-2010, 03:18 PM
  5. How do you get rid of blanks in a drop down list?
    By gshock in forum Excel General
    Replies: 1
    Last Post: 03-27-2008, 05:15 PM
  6. clearing blanks in drop-down list
    By Richard Walker in forum Excel General
    Replies: 1
    Last Post: 05-22-2006, 07:00 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