[英]I have 2 columns A & B i need compare B column data with A irrespective of all rows
I have 2 columns A & B i need compare B column data with A irrespective of all rows if it is matched then output should be like below 我有2列A和B我需要将B列数据与A进行比较,无论是否匹配所有行,然后输出应如下所示
A . B . C
Deepak Deepak Deepak
Kiran Venky
Arun heloo Heloo
Varun Lekha
Manju Deepak Deepak Deepak
heloo sambha
Deepak subbu
love
sudip
jyothi
kiran
In the above example String Deepak matched with A row hence it is displayed in C column 2 nd row no matched found so blank 3rd row string "heloo" matched hence displayed 4th row blank 5th row string "Deepak deepak" should display because in column there is duplication. 在上面的示例中,字符串Deepeepak与A行匹配,因此它显示在C列中。第二行未找到匹配的内容,因此空白的第三行字符串“ heloo”匹配了,因此显示了第四行空白的第五行字符串“ Deepak deepak”应该显示,因为在该列中是重复的。
Can anyone help on this. 任何人都可以帮忙。 I tried Index and it didnt work.
我试过索引,但没有用。
Use the following formulas: 使用以下公式:
Column D: D栏:
=COUNTIF(A:A,B:B)
or =COUNTIF(A:A,B2)
=COUNTIF(A:A,B:B)
或=COUNTIF(A:A,B2)
Column E: E栏:
=COUNTIF(B:B,B:B)
or =COUNTIF(B:B,B2)
=COUNTIF(B:B,B:B)
或=COUNTIF(B:B,B2)
Column F: F栏:
=COUNTIF(B$B1:B2,B:B)
or =COUNTIF(B$B1:B2,B2)
=COUNTIF(B$B1:B2,B:B)
或=COUNTIF(B$B1:B2,B2)
Column G: G栏:
=IF(D:D>0,TRIM(REPT(B:B & " ",F:F)),"")
or =IF(D2>0,TRIM(REPT(B2 & " ",F2)),"")
=IF(D:D>0,TRIM(REPT(B:B & " ",F:F)),"")
或=IF(D2>0,TRIM(REPT(B2 & " ",F2)),"")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.