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

99封情书 提交于 2020-02-06 10:39:11

问题


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:


回答1:


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.



来源:https://stackoverflow.com/questions/59049465/how-to-remove-all-zero-columns-in-ms-excel-2016-while-keeping-columns-that-have

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!