我希望实现一个公式,该公式计算范围内的值,以查看它们是否包含另一个表中的文本。例如
Table 1:
name: 3
Hello: 1
is: 3
Table 2:
Hello? My name is
What is your name...
Whose name is that
如果这是一种令人困惑的格式,请道歉。
因此,对于表1中出现的表1中的每个文本实例,该列将增加1.是否有可以为我做这项工作的公式?
由于
编辑:
为了更具体地解决我的问题,我希望计算表1中字符串的出现次数:
com/iluwatar/object/pool/OliphauntPoolTest.java
com/iluwatar/tls/DateFormatCallableTestMultiThread.java
com/iluwatar/tls/App.java
com/iluwatar/servicelayer/common/DaoBaseImpl.java
如表2所示:
87ee97a1,Tue Nov 7 07:37:12 2017 +0100,#114 Fixed checkstyle issue
.../main/java/com/iluwatar/eip/aggregator/routes/AggregatorRoute.java
1 file changed, 1 deletion(-)
c45e9a1f,Tue Nov 7 07:24:31 2017 +0100,#114 Fixed checkstyle issue
.../main/java/com/iluwatar/object/pool/OliphauntPoolTest.java
1 file changed, 3 insertions(+), 1 deletion(-)
89bfaf87,Tue Oct 31 17:32:11 2017 +0700,Fix typo
converter/src/main/java/com/iluwatar/converter/Converter.java
1 file changed, 2 insertions(+), 2 deletions(-)
在此示例中,com / iluwatar / object / pool / OliphauntPoolTest.java的计数为1,因为它在记录的表2中找到一次,而其他的则为0.