简体   繁体   English

Google 表格 - 如果找到,则在另一列中搜索列值复制第二列的值

[英]Google Sheets - Search column value in another column if found copy second column's value

I have a situation like below: Column A has some values.我有如下情况:A 列有一些值。 Column B has more values. B 列有更多值。 Now I want to check if Column B contains values from Column A. If it contains then print values from Column B to Column C. Please note that all values are unique so no confusion of finding value more than once.现在我想检查 B 列是否包含 A 列中的值。如果它包含,则将 B 列中的值打印到 C 列。请注意,所有值都是唯一的,因此不会混淆多次查找值。

Column A
john.doe
alice.white

Column B
violinhi@yahoo.com.
augusto@yahoo.ca
bwcarty@att.net
dprice@msn.com
alice.white@hotmail.com
staikos@optonline.net
psharpe@mac.com
john.doe@gmail.com
andale@yahoo.com
magusnet@icloud.com

Column C(This is expected output)
john.doe@gmail.com
alice.white@hotmail.com

Here's one way ..这是一种方法..

=filter(B2:B, match(regexextract(B2:B, "(.*)@"), A2:A, 0))

在此处输入图片说明

Or maybe或者可能

=ArrayFormula(if(len(A2:A), vlookup(A2:A, {split(B2:B, "@"), B2:B}, 3, 0),))

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Google 表格上将值从一列复制到另一列? - How to copy value from one column to another on Google Sheets? 谷歌表格搜索列使用 python - google sheets search column for value using python 如何通过 Sheets API 按列的值查询 Google Sheets? - How to query Google Sheets by a column's value through Sheets API? 谷歌表格 - 将数据从行复制到列值条件的列 - Google sheets - copy data from rows to columns with column value condition 如何根据同一工作表中列的特定值在 Google 表格的另一列中设置值 - How to set value in another column of Google Sheets based on certain value of column in the same sheets 将一列中的每个值添加到Google表格中第二列中的每个值 - Add each value in one column to each value in second column in Google Sheets GOOGLE 表格:在两列中搜索一对值以匹配并获取值 - GOOGLE sheets: search pair of values in two column to match and get value Google 表格:如果 A 列包含 B 列中的值,则 output 文本字符串到 C 列(与 A 列中的值在同一行) - Google Sheets: If column A contains a value also found in column B, output text string to column C (on the same line as value in column A) Google 表格脚本:如果 substring 在另一列中,则返回值 - Google Sheets script: return value if substring is within another column 基于另一列中重复值的序号 - Google 表格 - Sequential number based on repeating value in another column - Google Sheets
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM