+ Reply to Thread
Results 1 to 11 of 11

Can’t remove blank rows

Hybrid View

  1. #1
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Can’t remove blank rows

    On your Expected Results sheet enter formula in A1 and drag formula across and down

    ***Array formula
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.
    You will know the array is active when you see curly braces { } appear around your formula.
    If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Formula: copy to clipboard
    =IFERROR(INDEX(PROBLEM!A:A,SMALL(IF(PROBLEM!A$1:A$200<>"",ROW(A$1:A$200)),ROWS(A$1:A1))),"")

    For Excel (2010, 2013, 2016) use this regular formula
    Formula: copy to clipboard
    =IFERROR(INDEX(PROBLEM!A:A,AGGREGATE(15,6,ROW(A$1:A$200)/(PROBLEM!A$1:A$200<>""),ROWS(A$1:A1))),"")
    Last edited by AlKey; 12-20-2017 at 02:40 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  2. #2
    Forum Contributor
    Join Date
    02-06-2014
    Location
    The Show Me State
    MS-Off Ver
    Excel 2013
    Posts
    345

    Re: Can’t remove blank rows

    Quote Originally Posted by AlKey View Post
    On your Expected Results sheet enter formula in A1 and drag formula across and down

    ***Array formula
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.
    You will know the array is active when you see curly braces { } appear around your formula.
    If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Formula: copy to clipboard
    =IFERROR(INDEX(PROBLEM!A:A,SMALL(IF(PROBLEM!A$1:A$200<>"",ROW(A$1:A$200)),ROWS(A$1:A1))),"")

    For Excel (2010, 2013, 2016) use this regular formula
    Formula: copy to clipboard
    =IFERROR(INDEX(PROBLEM!A:A,AGGREGATE(15,6,ROW(A$1:A$200)/(PROBLEM!A$1:A$200<>""),ROWS(A$1:A1))),"")
    Is there a way for it to not return 0 for blank cells?

+ 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. [SOLVED] VBA to remove blank rows
    By kenadams378 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-19-2013, 10:11 AM
  3. Remove blank rows
    By chiragvaya in forum Excel General
    Replies: 6
    Last Post: 12-29-2012, 05:11 AM
  4. Formula to Remove Blank Rows
    By jimmerdean in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-23-2012, 04:25 AM
  5. Remove blank rows
    By JohnsonBeGood in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 03-10-2011, 01:10 PM
  6. How to remove blank rows, then insert blank row conditionally, PLUS error proof
    By GTS115 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-05-2009, 11:39 AM
  7. [SOLVED] remove blank rows
    By vernalGreens@gmail.com in forum Excel General
    Replies: 3
    Last Post: 02-20-2006, 11:45 AM

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