简体   繁体   English

Google 表格中最常见的文本值问题,出现次数不超过一次

[英]Most frequent text value in Google Sheets problem with not occurring more than once

I'm having some problems getting the most frequent value I'm using a formula that works is the next one:我在获取最频繁的值时遇到了一些问题我使用的公式是下一个:

=INDEX(A1:A9,MODE(IF((A1:A9<>"")*ISNA(MATCH(A1:A9,$B$1:$B1,0)),MATCH(A1:A9,A1:A9,0))))

But in some column the data appears like this:但在某些列中,数据显示如下:

在此处输入图像描述

An error when the value is not occurring more than once I would like to add some condition but I've been trying with different formulas and I did't get better results some advices or formulas that I could use please?当该值未多次出现时出现错误我想添加一些条件,但我一直在尝试使用不同的公式但我没有得到更好的结果请给我一些建议或公式?

per column:每列:

=INDEX(QUERY(A1:A9, 
 "select A,count(A) where A is not null group by A order by count(A) desc"), 2, 1)

per range:每个范围:

=INDEX(QUERY(FLATTEN(A1:G9), 
"select Col1,count(Col1) where Col1 is not null group by Col1 order by count(Col1) desc"), 2, 1)

You can also the formula below:您还可以使用以下公式:

=ARRAYFORMULA(INDEX(A1:A10,MATCH(MAX(COUNTIF(A1:A10,A1:A10)),COUNTIF(A1:A10,A1:A10),0)))

And later drag it across the row:然后将它拖过一行:

应用公式后

The notable functions used for this are the following:用于此的显着函数如下:

  • COUNTIF which will return the prevalent number of occurrences; COUNTIF将返回出现的普遍次数;

  • MATCH in order to match the predominant choice; MATCH以匹配主要选择;

  • ARRAYFORMULA which enables the display of values returned from an array formula into multiple rows and/or columns and the use of non-array functions with arrays. ARRAYFORMULA允许将从数组公式返回的值显示到多行和/或多列中,并使用 arrays 的非数组函数。

Reference参考

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Google 表格的整个电子表格中找到最常见的文本值? - How to find the most frequent text value in a whole spreadsheet on Google sheets? Google 表格最频繁且只有一个值 - Google Sheets most frequent and just one value 如何在 Google 表格中包含多个条目的单元格的列中检索最常用的文本值? - How do I retrieve the most frequent text value in a column that has cells with multiple entries in Google sheets? 在Google表格上查找有条件的最常见事件 - Find most frequent occurrence with condition on Google Sheets 如何根据Google表格中的条件在两列中找到最常见的值? - How to find most frequent value in two columns based on a condition in Google Sheets? 如何根据 Google 表格中的一列中的多个文本值查找并返回一个值 - How to find and return a value based on more than one text value in a column in Google Sheets MODE函数,用于返回最频繁出现的单词(字符串)-Google表格 - MODE Function for returning most frequently occurring word (string)-Google Sheets 如何在 Google 表格上列出最常见的 3 字字符串 - How to list the most frequent 3-word strings on Google Sheets 如何返回Google文档电子表格中文本值范围内最频繁出现的文本值? - How do I return the most frequently occurring text value in range of text values in a Google Docs spreadsheet? 如何计算在 Google Sheets 的一列中只出现一次(和多次)的值的数量? - How to count the number of values that appear only once (and more than once) in a column in Google Sheets?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM