简体   繁体   中英

Excel formula to remove intermediate rows

I've an excel sheet that looks like this:

在此处输入图片说明

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. How can I write formula for this?

Thanks.

The MOD function returns the remainder of a division. 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.

In at third column, I'd enter the formula: =ROUND(A1,1)=A1 so it looks like this:

在此处输入图片说明

Then sort on Column C, and delete the FALSE rows.

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