我试着在网上找到这个解决方案,但对于这个特定的问题没有成功。在Excel 2010中,我在A列中有一些数据,其中每个值可能部分包含B列中的数据。
例如:
A列可能包含"http://google.com/webmasters“
列B可能包含"google.com“
这个应该能给我一个匹配。
我希望在C列中打印A列中不包含B列中任何值的所有值。
例如:
A列
http://dir.mydomain.tdl
http://myotherdomain.tdl
http://blog.otherdomain.tdl
http://www.lastdomain.tdlB栏
mydomain.tdl
lastdomain.tdl列C(需要结果)
http://myotherdomain.tdl
http://blog.otherdomain.tdl任何帮助都将不胜感激。
发布于 2013-01-24 00:27:06
也许不是必须的有效率,但您可以简单地使用两个数组-一个用于A列,另一个用于B列。遍历ColumnA数组,查看它是否存在于ColumnB数组中(使用Array.IndexOf或.contains)。如果是这样,您可以将其从ColumnA数组中删除,并将C列中的剩余值输出为余数。
https://stackoverflow.com/questions/14484287
复制相似问题