如果该行中的单元格值为 0 或空白,则删除 Google 电子表格中的一行 [英] Delete a row in Google Spreadsheets if value of cell in said row is 0 or blank

查看:17
本文介绍了如果该行中的单元格值为 0 或空白,则删除 Google 电子表格中的一行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果为该行中的C"列输入的值为 0 或空白,我希望能够删除 Google 电子表格中的整行.是否有我可以编写的简单脚本来完成此操作?谢谢!

I'd like to be able to delete an entire row in a Google Spreadsheets if the value entered for say column "C" in that row is 0 or blank. Is there a simple script I could write to accomplish this? Thanks!

推荐答案

我可以提出一个简单的解决方案,而无需使用脚本!!

I can suggest a simple solution without using a script !!

假设您要删除 C 列中带有空文本的行.在工作表 w.r.t 列 C 中对数据进行排序(数据菜单 -> 按列 C,A->Z 排序工作表),因此所有空文本行都将一起可用.

Lets say you want to delete rows with empty text in column C. Sort the data (Data Menu -> Sort sheet by column C, A->Z) in the sheet w.r.t column C, so all your empty text rows will be available together.

只需选择这些行并右键单击 -> 删除行.然后您可以根据您需要的列重新排序您的数据.完成.

Just select those rows all together and right-click -> delete rows. Then you can re-sort your data according to the column you need. Done.

这篇关于如果该行中的单元格值为 0 或空白,则删除 Google 电子表格中的一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆