Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google sheets 在同一列中查找重复的单元格值并在另一个单元格中返回文本_Google Sheets_Google Sheets Formula - Fatal编程技术网

Google sheets 在同一列中查找重复的单元格值并在另一个单元格中返回文本

Google sheets 在同一列中查找重复的单元格值并在另一个单元格中返回文本,google-sheets,google-sheets-formula,Google Sheets,Google Sheets Formula,我相信我得到的问题有一个简单的解释,但我似乎在任何地方都找不到任何东西 我有一个数据表,目前有70多行(但将来可能会扩展),我试图在一列中识别任何重复的值,并将文本输出到另一列中,如下所示 日期 工作编号。 复制品 13/05/2021 10542 Y 13/05/2021 10674 Y 13/05/2021 10676 13/05/2021 10434 Y 14/05/2021 10436 14/05/2021 10727 14/05/2021 10542 Y 14/05/2021 1072

我相信我得到的问题有一个简单的解释,但我似乎在任何地方都找不到任何东西

我有一个数据表,目前有70多行(但将来可能会扩展),我试图在一列中识别任何重复的值,并将文本输出到另一列中,如下所示

日期 工作编号。 复制品 13/05/2021 10542 Y 13/05/2021 10674 Y 13/05/2021 10676 13/05/2021 10434 Y 14/05/2021 10436 14/05/2021 10727 14/05/2021 10542 Y 14/05/2021 10729 14/05/2021 10332 15/05/2021 10334 15/05/2021 10335 15/05/2021 10434 Y 15/05/2021 10674 Y
假设显示的示例数据在A1中有标题“日期”,在B1中有标题“工作编号”,则删除C列中的所有内容(包括标题),并将其放在C1中:

=ArrayFormula({“重复”;IF(A2:A=”“,)IF(COUNTIF(B2:B,B2:B)>1,“Y”,)})


这将生成标题(您可以在公式中随意更改标题)以及所有结果。

使用
COUNTIF