+ Reply to Thread
Results 1 to 4 of 4

Remove Nulls and Blank Formulas from List

  1. #1
    Registered User
    Join Date
    07-20-2019
    Location
    Miami
    MS-Off Ver
    365
    Posts
    69

    Question Remove Nulls and Blank Formulas from List

    Hello,

    I'm trying to return a list of values from a column but exclude those that are Blank and those which have a formula where the results are an empty string (""). I've tried several variations of example from the web but none of them seem to work properly on the formula rows. Unfortunately the new Excel array functions haven't been deployed to the semi-annual release cycle so I can't use those just yet.

    My latest formula is below, but I've tried a few variations of IFERROR(INDEX,SMALL, etc. Thoughts?

    Please Login or Register  to view this content.
    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Remove Nulls and Blank Formulas from List

    Into D4:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    as is array formula, it have to be accept with Ctrl+Shift+Enter.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Registered User
    Join Date
    07-20-2019
    Location
    Miami
    MS-Off Ver
    365
    Posts
    69

    Re: Remove Nulls and Blank Formulas from List

    Yes, that works - though seems like I've written a bad question. I assumed once I removed the blanks from the source list I could just reference the result in a drop-down list. Turns out, the drop-down list has all of the blanks from the new formula.

    This kind of stuff should just be built into Excel; shouldn't need multiple arrays to accomplish a common and simple task.

    Anyway, apologies for the incomplete question, let me try to figure out how to fix this and remove the blanks from the drop down list.

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

    Re: Remove Nulls and Blank Formulas from List

    Perhaps the following will help:
    1. Put the following into cell D2 and down: =IFERROR(INDEX(B$2:B$20,AGGREGATE(15,6,(ROW(B$2:B$20)-ROW(B$1))/(B$2:B$20<>""),ROWS(A$1:A1))),"")
    2. Use the following as the "Source" for the data validation list (modeled in cell I2): =OFFSET(D$2,0,0,SUMPRODUCT(--(D$2:D$20<>"")),1)
    Let us know if you have any questions.
    Attached Files Attached Files
    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] Remove blank rows that aren't really blank (contain unused formulas)
    By painterartist in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-02-2014, 02:01 PM
  2. Create List and remove blank Lines
    By jamjam200 in forum Excel General
    Replies: 0
    Last Post: 01-22-2013, 12:30 PM
  3. Remove blank rows from list box
    By delolding in forum Excel General
    Replies: 6
    Last Post: 08-30-2012, 12:19 PM
  4. [SOLVED] Remove blank cells from the list
    By ABSTRAKTUS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-30-2012, 01:51 PM
  5. Remove blank from drop down list
    By skexcel in forum Excel General
    Replies: 2
    Last Post: 11-14-2011, 02:47 AM
  6. How to remove blank values from drop down list
    By funnysachin in forum Excel General
    Replies: 3
    Last Post: 07-14-2011, 02:28 PM
  7. List box Selections Debugging as Nulls
    By Mordred in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-06-2011, 05:41 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