[英]Diff 2 sets of rows in Google Sheets
Is there a simple way of diff'ing 2 sets of rows of data in Google Sheets?有没有一种简单的方法可以在 Google 表格中区分两组数据行? eg Sheet 1 - contains 10 rows
例如工作表 1 - 包含 10 行
One
Two
Three
Four
Five
Six
Seven
Eight
Nine
Ten
Sheet 2 contains 13 rows工作表 2 包含 13 行
One
Three
Five
Six
Seven
Eight
Nine
Ten
Eleven
Twelve
Thirteen
Fourteen
Fifteen
Ideally i'd like to be able to run some formula to diff the two data sets to identify the additions and deletions in the second data set.理想情况下,我希望能够运行一些公式来区分两个数据集,以确定第二个数据集中的添加和删除。
One option is to match values in both sets and then check if all have been found or not.一种选择是匹配两组中的值,然后检查是否已找到所有值。
=AND(ARRAYFORMULA(IF(Sheet5!A1:A="",,IF(ISERROR(VLOOKUP(Sheet5!A1:A,Sheet6!A:A,1,false)),FALSE,TRUE))))
This formula will check if every value in Sheet5 is present in Sheet6.此公式将检查 Sheet5 中的每个值是否存在于 Sheet6 中。
If all of them have been found, then the result will be TRUE.如果所有这些都已找到,则结果将为 TRUE。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.