+ Reply to Thread
Results 1 to 7 of 7

How to return an array of non blank cells from a range

  1. #1
    Registered User
    Join Date
    03-16-2017
    Location
    Mars
    MS-Off Ver
    2016
    Posts
    11

    Post How to return an array of non blank cells from a range

    Hello All, and thanks in advance for your help...

    I am trying to create a formula that searches for many strings in one cell, the problem is these many things are dynamic and are taken from another range:

    the formula I am using is below, "things" are taken from a different column, this column has empty cells leading to incorrect results, how can I return an array with all nonempty cells in the range I am using to use replace "things in the formula below?

    Please Login or Register  to view this content.

    I am Hoping this is clear enough and is posted in the right place...

    A bit more info, I got this working in Google sheet with this formula:
    Please Login or Register  to view this content.
    Thanks...
    Attached Files Attached Files
    Last edited by OmarQA; 02-20-2019 at 12:19 PM.

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: How to return an array of non blank cells from a range

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Click the * to say thanks.

  3. #3
    Registered User
    Join Date
    03-16-2017
    Location
    Mars
    MS-Off Ver
    2016
    Posts
    11

    Re: How to return an array of non blank cells from a range

    Attachment added...

  4. #4
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: How to return an array of non blank cells from a range

    depending on how you need to handle delimiters etc you might opt for something like:

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

  5. #5
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: How to return an array of non blank cells from a range

    By incorrect results you are refering to all the FALSE results for blanks in B column? If so, use: =IF(B3="","",SUMPRODUCT(--(NOT(ISERR(SEARCH($D$3:$D$4,B3)))))=COUNTA($D$3:$D$4))

  6. #6
    Registered User
    Join Date
    03-16-2017
    Location
    Mars
    MS-Off Ver
    2016
    Posts
    11

    Re: How to return an array of non blank cells from a range

    Thanks @PaulM100, but this will not work, what I need is $D$3:$D$4 to be a dynamic range created from all the nonblank cells in Column D.

  7. #7
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: How to return an array of non blank cells from a range

    Not sure if I understood correctly, but I assume that you want to find data from column D in B and the range in D can contain blanks that should not be included in the search, so try:
    Please Login or Register  to view this content.

+ 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] Cells in a range are all not blank, return maximum value (date), If 1 blank return 0
    By Matt1998 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-19-2016, 11:14 AM
  2. [SOLVED] Go to right thru a range and skip all blank cells, return value of first non-blank in rang
    By mysticmoron109 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-16-2015, 03:47 PM
  3. [SOLVED] Return non-blank cells from range AND ignore cells with only formula w/o results
    By grafitti in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-06-2014, 08:15 AM
  4. Replies: 5
    Last Post: 01-13-2014, 01:01 AM
  5. Replies: 1
    Last Post: 09-04-2013, 07:23 AM
  6. Blank cells in an array range
    By sjtonnes2 in forum Excel General
    Replies: 3
    Last Post: 03-05-2007, 01:34 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