+ Reply to Thread
Results 1 to 5 of 5

Help! How to remove rows of zeros to shrink the data to an organized list?

Hybrid View

  1. #1
    Registered User
    Join Date
    09-25-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    17

    Talking Help! How to remove rows of zeros to shrink the data to an organized list?

    Dear all,

    I have a task that's been bothering my work for a long time. I have attached a fictatious list to seek for help from the experts here.
    I have a 2000+ list of names that i do not need to sort. I just need to remove the rows of zeros that is taking up space on the datasheet and making reading difficult.

    I need the rows of zeros to be removed and display the nett amount of information without sorting. I also need to have the end results on a different sheet, which i believe will complicate the formula further.

    I need a formula for this. Please do help! Thanks guys!

    Lim
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Help! How to remove rows of zeros to shrink the data to an organized list?

    Use auto filters..

    - Select columns A-C Apply autofilter
    - Filter on zero in each column.
    - Select rows..right click ..delete row
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  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,463

    Re: Help! How to remove rows of zeros to shrink the data to an organized list?

    The easiest way is to use Autofilter. In your example you could put this formula in E2:

    =IF(COUNTIF(A2:C2,"0")=3,"hide","")

    then copy down to the bottom of your data. Then apply autofilter to column E and on the filter pull-down de-select Hide then your rows will be bunched up as you want them. If you want to get back to the original list you can Select All on the filter pull-down.

    Hope this helps.

    Pete

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Help! How to remove rows of zeros to shrink the data to an organized list?

    Hi

    In G2, put this ARRAY(Confirm, using Control+Shift+Enter. Not Just Enter), formula.

    =IFERROR(INDEX(A$2:A$20,SMALL(IF(A$2:A$20<>0,ROW(A$2:A$20)-1),ROW(A1))),"")

    Copy down and across(to the right).
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Registered User
    Join Date
    09-25-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Help! How to remove rows of zeros to shrink the data to an organized list?

    thank you guys for the help! this solved my problem on the sheet!

    your quick response is amazing!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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