简体   繁体   中英

How to remove all zero columns in MS Excel 2016 while keeping columns that have a some zero values?

I have a 10 rows X 50000+ columns. The problem is that there are some columns having ALL Zero values. I need to remove only those columns while keeping the ones that have a few zero cells. an example is shown below

在此处输入图片说明

So it would become like this:

在此处输入图片说明

Select all > copy > (new excel sheet/file) r-click in A1 > (paste special) transpose

In the K1 cell put :

=if(sum(A1:J1)=0,1,"")

and drag the formula downwards.

Then highlight cell A1:K1 > Data > filter Filter column K > select "1"

Then select all row (by selecting rows at left side) > r-click (at left side) > delete rows.

Remove filter, delete column K , select all > copy (another new excel sheet/file) r-click in A1 > (paste special) transpose.

done.

Hope it helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM