简体   繁体   中英

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

I have an excel spreadsheet that looks similar to the table below:

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

I want to filter the table so that rows that have a value in A but Null in B do not show, similar to table below:

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

Use:

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

在此处输入图像描述

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