给定 2 列 (A,B),如何根据 A 列中的值过滤 B 列?

Given 2 columns (A,B), how to filter column B based on values in column A?

我有一个 excel 电子表格,看起来类似于下面的 table:

A B
Null Null
Null Null
To John Doe
CC Jane Doe
To Null
CC Null

我想过滤 table 以便不显示在 A 中有值但在 B 中为 Null 的行,类似于下面的 table:

A B
Null Null
Null Null
To John Doe
CC Jane Doe

使用:

=FILTER(A1:B6,NOT((A1:A6<>"Null")*(B1:B6="Null")))