【问题标题】:How to create a count plot from comma separated values of a column in google sheets?如何从谷歌表格中列的逗号分隔值创建计数图?
【发布时间】:2021-04-19 13:12:49
【问题描述】:

我试图从出现在 google-sheet 的某一列中的州名称创建计数图,如下所示:

打开的可共享 google sheet 链接:

https://docs.google.com/spreadsheets/d/10NzbtJhQj4hQBnZXcmwise3bLBIAWrE0qwSus_bz7a0/edit#gid=8060956

Column5
Dublin, OH
Chicago, IL
Chicago, IL, NY, FL
Atlanta,GA, DC,NY
Columbus, OH, NY

如何仅使用州名创建计数图?

  • 第一个逗号前的第一个单词总是城市
  • 逗号后面可以有空格。

所需输出:

【问题讨论】:

    标签: google-sheets google-sheets-formula


    【解决方案1】:

    类似的东西呢:

    C1中的公式:

    =QUERY(TRANSPOSE(SPLIT(TEXTJOIN(",",TRUE,A1:A),", ")),"Select Col1, count(Col1) where Col1 matches '[A-Z][A-Z]|Remote' group by (Col1) order by Col1 ASC", -1)
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-12-09
    • 2020-09-26
    • 1970-01-01
    • 1970-01-01
    • 2011-01-26
    • 1970-01-01
    • 2016-07-23
    • 1970-01-01
    相关资源
    最近更新 更多