+ Reply to Thread
Results 1 to 7 of 7

Formula to extract non blank data so that there are no blank rows betwwen the visible data

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,712

    Formula to extract non blank data so that there are no blank rows betwwen the visible data

    I have formula n Col D to extract data. Where there is no match, then formula will insert a blank

    I would like a formula in Col F to show the visible items that are Col D one below each each


    I have attached sample data


    Your assistance is most appreciated
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Formula to extract non blank data so that there are no blank rows betwwen the visible

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

    Increase "20" as necessary to cover your data.
    This needs to be entered into F2 as an array formula via CTRL-SHIFT-ENTER
    Copy the formula down as far as necessary.

    Hope this helps!
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

  3. #3
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,712

    Re: Formula to extract non blank data so that there are no blank rows betwwen the visible

    Thanks for the help Geoff

    Please explain how this formula works from aggregate part . I am familiar with index, but with aggregate and Row

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

    Re: Formula to extract non blank data so that there are no blank rows betwwen the visible

    You could also reduce the volatility of the spreadsheet by rearranging Geoff's formula to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The above formula may be activate by pressing the Enter key.
    As to how AGGREGATE works perhaps the link below can explain.
    https://support.microsoft.com/en-us/...6-e19993fa26df
    I'd also encourage you to select cell F4 and utilize the Evaluate Formula feature (Formulas tab).
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Formula to extract non blank data so that there are no blank rows betwwen the visible

    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Formula to extract non blank data so that there are no blank rows betwwen the visible

    Quote Originally Posted by Howardc1001 View Post
    Thanks for the help Geoff
    Please explain how this formula works from aggregate part . I am familiar with index, but with aggregate and Row
    JeteMc has addressed you question on aggregate() - as well as supply a simpler and better solution than mine.

    You also asked about row(). ROW(A$2:A$20) simply returns a vertical array: {2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20}
    which, after a bit more manipulation, becomes the third parameter to aggregate()

    The final ROW(A1) serves a different purpose. On the first row this returns 1, but as you drag the formula downwards you get ROW(A2) which evaluates to 2 then 3, 4, 5 etc. This is exactly what is needed for the fourth parameter to the aggregate() function.

    Hope this helps! Oh, and thanks for the rep

  7. #7
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,712

    Re: Formula to extract non blank data so that there are no blank rows betwwen the visible

    Thanks for the reputation

+ 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] Need to add 2 extra blank rows to an existing blank row that separates data groups
    By terryhenderson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2017, 06:32 PM
  2. Replies: 4
    Last Post: 02-24-2017, 02:39 AM
  3. VBA, Delete blank rows with no visible data in Column A
    By TylerLuk1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-20-2015, 10:06 AM
  4. Replies: 11
    Last Post: 07-30-2015, 12:35 PM
  5. How to create a macro to insert blank rows and copy data into blank rows?
    By zodiack101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2013, 01:18 PM
  6. [SOLVED] VBA Find last row and column that contain data and delete all blank rows and blank columns
    By bcn1988 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-03-2012, 01:07 PM
  7. Replies: 1
    Last Post: 05-10-2012, 04:58 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