+ Reply to Thread
Results 1 to 5 of 5

Listing Noncontiguous Data Without Blanks

  1. #1
    Registered User
    Join Date
    12-25-2017
    Location
    Switzerland
    MS-Off Ver
    2016
    Posts
    25

    Listing Noncontiguous Data Without Blanks

    Hello everybody,

    I have a list with As, Bs and "blanks".

    "Blank" means that the cell is not empty, but contains a formula leading to a "" and looks empty.

    I'd like to obtain a list without blanks using a (matrix?) formula.

    I attached a sample file.

    Can somebody help me?

    Florian
    Attached Files Attached Files

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Listing Noncontiguous Data Without Blanks

    Enter this formula somewhere and copy it down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

    Re: Listing Noncontiguous Data Without Blanks

    It is usually referred to as an "array" formula, entered using the key combination of Ctrl-Shift-Enter, but here's an approach which just uses two normally-entered formulae. Put this formula in B4:

    =IF(OR(C4="A",C4="B"),MAX(B$3:B3)+1,"")

    then copy down to the bottom of your list. It will result in a unique sequential number being allocated to those records which match the criteria. Then you can use this formula in C22:

    =IFERROR(INDEX($C$4:$C$12,MATCH(ROWS($1:1),$B$4:$B$12,0)),"")

    and copy this down as far as you need to. It just returns the records in order of those sequential numbers, and omits any blank records (or, indeed, any records which do not contain A or B).

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    12-25-2017
    Location
    Switzerland
    MS-Off Ver
    2016
    Posts
    25

    Re: Listing Noncontiguous Data Without Blanks

    Dear Tsjallie, dear Pete,

    thanks a lot for your formulas / solutions.

    Every of these works fine; I am glad to have two solutions now.

    Regards

    Florian

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

    Re: Listing Noncontiguous Data Without Blanks

    It's good that you have two solutions, and I see that you have marked the thread as Solved.

    You might like to know, though, that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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] Access Query shows (Blanks) but no blanks in data!
    By MissDB in forum Access Tables & Databases
    Replies: 0
    Last Post: 09-08-2016, 07:16 AM
  2. Listing # of Cells w/Blanks in Large Range for Each Column
    By Quinn.Farley in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-08-2016, 07:11 PM
  3. [SOLVED] Listing data ignoring blanks
    By jsridhar in forum Excel Formulas & Functions
    Replies: 36
    Last Post: 12-08-2015, 09:53 AM
  4. Copying, verifying and transferring data .....noncontiguous.....better way?
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-21-2011, 01:29 PM
  5. Listing values while ignoring blanks
    By DamienC in forum Excel General
    Replies: 4
    Last Post: 07-10-2008, 09:18 AM
  6. Series with noncontiguous unequal length data?
    By Bob@1800-mail.com in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 06-15-2006, 01:25 PM
  7. [SOLVED] Finding equation between two sets of noncontiguous data
    By vijaya in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-03-2005, 05:40 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