在Google表格中,您如何找到非数字数据的模式? [英] In Google Sheets, how can you find the mode of non-numerical data?

查看:122
本文介绍了在Google表格中,您如何找到非数字数据的模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  Foo $ b $如果我想找到A2:A10的模式,但是我的值是这样的: b Foo 
Bar
Foo
Baz
Bar
Foo
Bar
Foo

,我能做什么?
$ b $ = MODE()

code>函数只接受数字数据,那么有没有办法找到这些值的最频繁的地方?谢谢!

解决方案

在MAX上使用MATCH(COUNTIF(...))到COUNTIF并传递行位置(A2:A10,match(max(countif(A2:A10,A2:A10))。(b) ),countif(A2:A10,A2:A10),0))

在频率上相匹配,列表中第一个匹配最高频率的将返回。


If I want to find the mode of A2:A10, but my values are something like:

Foo
Foo
Bar
Foo
Baz
Bar
Foo
Bar
Foo

, what can I do?

The =MODE() function only takes numerical data, so is there a way to find the most frequent of these values? Thank you!

解决方案

Use a MATCH on a MAX(COUNTIF(...)) to a COUNTIF and pass the row position back to an INDEX.

=index(A2:A10, match(max(countif(A2:A10, A2:A10)), countif(A2:A10, A2:A10), 0))

In the case of a tie in frequency, the first in the list that matches the maximum frequency rate will be returned.

        

这篇关于在Google表格中,您如何找到非数字数据的模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆