Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 excel 列,其中包含一些有趣的数据,但是很多正负值都是微不足道的。
所以我想把所有的值 -1<0<1 变成零。最好的方法是什么?
任何帮助都会让我开心。
IF您可以为此任务使用一个简单的条件。
IF
假设您有数据column A,请使用以下公式column B并将其向下拖动,
column A
column B
=IF(AND(A1<=1,A1>=-1),0,A1)
您可以稍后将此列用作参考。如果要忽略1and -1,则删除函数中的=符号AND。
1
-1
=
AND
=IF(AND(A1<1,A1>-1),0,A1)