我如何在消息中平均每个单词的成功指标,以超过一百条消息

发布于 2025-01-24 22:22:00 字数 4515 浏览 3 评论 0原文

我希望使用Google表来确定大约100个10-25个单词消息中每个单词的盈利能力。

现在,我从以下方面开始的事情:

消息成功单词
猫总150%3
我爱狗250%3
我爱狗,猫是毛,450%6

来查询我使用的单词我正在使用公式:

= arrayformula(QUERY(FLATTEN(split(trim(reggexreplace)(seluse1:message1:message),“ [!??,,。:; - ]”,“”,“”),“),”),“选择col1 ,COL1“ COL1”组COL1“,0))

这让我进入这里:

WordCount
Cats2
2
Gross2
II 2
2 Love2
Dogg2
1

,我正在使用此公式分配成功每个单词使用单词计数作为将单词分解和复制下来的基础:

= ifError(if(if(countif(value $ 1:value2,value2)< = vlookup(value2,value2,$ word_count $ word_count $ 100) ,6,false),value2,if(offset($成功$ 2,match,value2,$成功$ 2:$成功$ 100,0),0),0)=“”,“”,offset($成功$ 2 $成功$ 2:$成功$ 100,0),0))),“”)

这让我在这里:

wordvalue
cats150%
150%
150%
i250%
250%爱250%
250%i 450
i450 %
450%
450%
450%
450%
450%
450%,

我可以用什么公式将这些数据集结合到这里:

WordCountSuccess AVG
Cats2300%
2300%
GROSS2300 %
i2350%
2350%
2350%
1450%

I'm hoping to use google sheets to determine the profitability of each word in around 100 10-25 word messages.

Right now I'm starting with something along the lines of this:

MessageSuccessWord Count
Cats are gross150%3
I love Dogs250%3
I love Dogs and Cats are gross450%6

To query the word usage I'm using the formula:

=ArrayFormula(query(Flatten(split(trim(REGEXREPLACE(LOWER(Message1:Message), "[!?,.:;-]"," "))," ")), "SELECT Col1, COUNT(Col1) Group By Col1",0))

This gets me to here:

WordCount
cats2
are2
gross2
i2
love2
dogs2
and1

And I'm using this formula to assign the Success% to each word using the word count as its basis for splitting the words and copying down:

=IFERROR(IF(COUNTIF(Value$1:Value2,Value2)<=VLOOKUP(Value2,$Success$2:$Word_Count$100,6,FALSE),Value2,IF(OFFSET($Success$2,MATCH(Value2,$Success$2:$Success$100,0),0)="","",OFFSET($Success$2,MATCH(Value2,$Success$2:$Success$100,0),0))),"")

This gets me here:

WordValue
cats150%
are150%
gross150%
I250%
love250%
dogs250%
I450%
love450%
dogs450%
and450%
cats450%
are450%
gross450%

What formula could I use to combine these data sets to get me to here:

WordCountSuccess AVG
cats2300%
are2300%
gross2300%
I2350%
love2350%
dogs2350%
and1450%

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

邮友 2025-01-31 22:22:00

使用:

=ARRAYFORMULA(QUERY(SPLIT(FLATTEN(SPLIT(REGEXREPLACE(LOWER(A2:A), 
 "[!?,.:;-]", " "), " ")&"×"&B2:B), "×"), 
 "select Col1,count(Col1),avg(Col2)
  where Col2 is not null 
  group by Col1 
  label Col1'Word',count(Col1)'Count',avg(Col2)'Success AVG'"))

在此处输入图像描述“


”在此处输入图像说明”

use:

=ARRAYFORMULA(QUERY(SPLIT(FLATTEN(SPLIT(REGEXREPLACE(LOWER(A2:A), 
 "[!?,.:;-]", " "), " ")&"×"&B2:B), "×"), 
 "select Col1,count(Col1),avg(Col2)
  where Col2 is not null 
  group by Col1 
  label Col1'Word',count(Col1)'Count',avg(Col2)'Success AVG'"))

enter image description here


enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文