如何根据Libreoffice中的特定值过滤行?

问题描述 投票:0回答:1

我有一个包含几列的表。

enter image description here

我只需要target值不同于alg值的行。在这种情况下,target1alg0。因此,应保留第2、4和5行,并删除第3行。怎么做?

libreoffice libreoffice-calc
1个回答
1
投票

添加确定是否应删除该行的列。 D2的公式为=B2=C2,并向下填充至D5。

id      target  alg     remove row  string
11011   1       0       FALSE       hello
111     1       1       TRUE        this is
111     1       0       FALSE       car
112     1       0       FALSE       ship

要隐藏行,请转到数据->更多过滤器->标准过滤器。将标准设置为remove row = FALSE。如果需要,可以通过右键单击D并选择“隐藏列”来隐藏D列。

或者,要完全删除行,请按D列排序,然后选择并删除D列为TRUE的所有行。最后,删除列D。

相关:LibreOffice / OpenOffice Calc: Remove rows where value is *not* in column on other sheet

© www.soinside.com 2019 - 2024. All rights reserved.