简体   繁体   English

Excel公式删除中间行

[英]Excel formula to remove intermediate rows

I've an excel sheet that looks like this: 我有一个看起来像这样的Excel工作表:

在此处输入图片说明

I want to remove all the values that isn't a multiple of 0.1., ie, in the above example, I want to keep only the rows 1.2, 1.3, 1.4 and delete all the intermediate rows. 我想删除所有不是0.1的倍数的值,即,在上面的示例中,我只想保留行1.2、1.3、1.4,并删除所有中间行。 How can I write formula for this? 我该如何写公式?

Thanks. 谢谢。

The MOD function returns the remainder of a division. MOD函数返回除法的余数 If that's zero, your value is divisible by the parameter value you gave it: 如果该值为零,那么您的值可以被您赋予它的参数值整除:

=MOD(A1,0.1)=0

Put that in a 3rd column, fill the formula down, and filter out or delete the FALSE rows. 将其放在第3列中,向下填写公式,然后过滤或删除FALSE行。

In at third column, I'd enter the formula: =ROUND(A1,1)=A1 so it looks like this: 在第三列中,我输入公式:= ROUND(A1,1)= A1,因此它看起来像这样:

在此处输入图片说明

Then sort on Column C, and delete the FALSE rows. 然后对C列进行排序,并删除FALSE行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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