+ Reply to Thread
Results 1 to 8 of 8

Data validation list sorting - removing blanks

  1. #1
    Registered User
    Join Date
    07-18-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    88

    Exclamation Data validation list sorting - removing blanks

    Hi,

    I have a named range that is dynamic and want to remove the blanks from a dropdown DV list.

    I've tried using an OFFSET formula but it doesn't sort alphabetically even if the data is sorted as such.
    Please Login or Register  to view this content.
    How can I either remove the blanks in the list or sort alphabetically when using OFFSET?

    Thanks,
    M

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Data validation list sorting - removing blanks

    I usually create a pivot table, which aggregates AND sorts AND removes blanks then reference the pivot table with your offset formula.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

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

    Re: Data validation list sorting - removing blanks

    Where are the blanks? Are they scattered within the range or at the bottom of the range?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  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: Data validation list sorting - removing blanks

    Where are the blanks? Are they scattered within the range or at the bottom of the range?

  5. #5
    Registered User
    Join Date
    07-18-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: Data validation list sorting - removing blanks

    Quote Originally Posted by Tony Valko View Post
    Where are the blanks? Are they scattered within the range or at the bottom of the range?
    At the bottom of the range. I wrote a macro to extract unique instances from a column and sort into a range. But I want to be able to expand this range if needed if, for example, new instances are added to that column.

  6. #6
    Registered User
    Join Date
    07-18-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: Data validation list sorting - removing blanks

    Bumping post

  7. #7
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Data validation list sorting - removing blanks

    Can you not use the VBA to wrap a named range around the list?
    Also if it was blank wouldn't it already not be counted with the COUNTA?

    This would have been solved already if you posted an example file...

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window (or use the paperclip icon).

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

    Re: Data validation list sorting - removing blanks

    Maybe this...

    =OFFSET(Sheet3!E3,1,,COUNTIF(Sheet3!E3:E2001,"?*"))

+ 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. Removing blanks from data validation - using INDEX(MATCH) though...
    By graeme27uk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-22-2015, 08:42 AM
  2. [SOLVED] List unused items from data validation list without blanks
    By L plates in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-27-2015, 09:02 AM
  3. Removing blanks in data validation
    By geliedee in forum Excel General
    Replies: 4
    Last Post: 10-17-2013, 05:03 AM
  4. Removing blanks in data validation
    By geliedee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-17-2013, 03:29 AM
  5. [ Data Validation > List ] with Blanks
    By macky1730 in forum Excel General
    Replies: 2
    Last Post: 10-27-2010, 03:14 PM
  6. Creating a list box, removing blanks from source data
    By erica686 in forum Excel General
    Replies: 3
    Last Post: 12-03-2009, 02:37 AM
  7. Data Validation and Blanks in List
    By GoneRural in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-26-2005, 01:05 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