如何计算Google电子表格中两个范围的差?

Mis*_*ilt 2 google-sheets

我想计算Google电子表格中两组数据的差:

ResulSet = Set1-Set2

最好的方法是什么?据我所知,还没有本机功能。

Sco*_*ott 5

如果您希望确定in Set 1中但在中省略的值,Set 2则可以使用以下公式来实现:

=FILTER( A1:A , ISERROR( MATCH( A1:A , B1:B , 0 ) ) )
Run Code Online (Sandbox Code Playgroud)

如果您希望确定其中的值Set 2不属于Set 1,则可以使用以下方法:

= FILTER( B1:B , ISERROR( MATCH( B1:B , A1:A , 0 ) ) )
Run Code Online (Sandbox Code Playgroud)