メインコンテンツへスキップ

Excelで条件付きの最も頻繁なテキストを見つける方法は?

この記事では、Excelのセルの範囲から特定の基準に基づいて、最も発生したテキストを見つける方法について説明します。 同時に、列内で最も頻繁に発生するテキストを抽出するための式も紹介します。

最も頻繁なテキストを見つける 基準に基づいて最も頻繁なテキストを見つける

配列数式を使用して、列内で最も頻繁に発生するテキストを検索します

セルのリストから最も出現したテキストを見つけて抽出したいだけの場合は、次の数式をアップルしてください。

一般的な数式の構文は次のとおりです。

=INDEX(range, MODE(MATCH(range, range, 0 )))
  • range: is the list of cells that you want to find the most frequent occurring text.

1。 この数式を入力するか、結果を出力する空白のセルにコピーします。

=INDEX(A2:A15,MODE(MATCH(A2:A15,A2:A15,0)))
  • ヒント:この式では:
  • A2:A15:は、テキストが出現する最大の回数を検索するデータリストです。

2。 そして、を押します Ctrl + Shift + Enter キーを同時に押すと、以下のスクリーンショットのように正しい結果が得られます。


配列数式の基準に基づいて、最も頻繁に発生するテキストを検索します

場合によっては、特定の条件に基づいて最も頻繁に発生するテキストを見つける必要があります。たとえば、以下のスクリーンショットに示すように、プロジェクトがプロジェクトAである最も発生した名前を見つけたい場合があります。

一般的な数式の構文は次のとおりです。

=INDEX(range1,MODE(IF(range2=criteria, MATCH(rang1,range1,0))))
  • range1: is the range of cells that you want to find the most frequent occurring text.
  • range2=criteria: is the range of cells contain the specific criteria that you want to find name based on.

1。 以下の数式を空白のセルに入力またはコピーしてください。

=INDEX($B$2:$B$15,MODE(IF($A$2:$A$15=D2,MATCH($B$2:$B$15,$B$2:$B$15,0))))
  • ヒント:この式では:
  • B2:B15:は、名前が出現する最大の回数を検索するデータリストです。
  • A2:A15 = D2:は、テキストを検索するための特定の基準を含むセルの範囲です。

2.次に、を押します Ctrl + Shift + Enter キーを同時に押すと、プロジェクトAの最も頻繁に発生する名前が抽出されました。スクリーンショットを参照してください。


配列数式を使用して、指定されたXNUMXつの日付の間に最も頻繁に発生するテキストを検索します

このセクションでは、6つの指定された日付の間にある最も一般的なテキストを見つける方法について説明します。 たとえば、28年2019月7日から5年2019月XNUMX日までの日付に基づいて最も頻繁な名前を見つけるには、次の配列数式が役立ちます。

1。 次の数式を空白のセルに適用してください。

=INDEX($B$2:$B$15, MATCH(MODE.SNGL(IF(($A$2:$A$15<=$E$2)*($A$2:$A$15>=$D$2), COUNTIF($B$2:$B$15, "<"&$B$2:$B$15), "")), COUNTIF($B$2:$B$15, "<"&$B$2:$B$15),0))
  • ヒント:この式では:
  • B2:B15:は、名前が出現する最大の回数を検索するデータリストです。
  • A2:A15 <= E2:は、名前を検索する特定の日付以下の日付の範囲です。
  • A2:A15> = D2:は、名前を検索する特定の日付以上の日付の範囲です。

2。 そして、を押します Ctrl + Shift + Enter キーを一緒に使用すると、特定のXNUMXつの日付の間に最も頻繁に発生する名前が抽出されました。スクリーンショットを参照してください。


より相対的な最も頻繁なテキスト記事:

  • 頻度に基づく条件付き書式(最も一般的な数値/テキスト)
  • たとえば、範囲内で最も頻度の高いセルを条件付きでフォーマットしたい場合、Excelでそれをすばやく解決するにはどうすればよいでしょうか。 また、指定された列の値の頻度に基づいて行全体を条件付きでフォーマットするとどうなりますか? この記事では、XNUMXつの回避策を提供します。
  • ExcelでXNUMX番目に一般的/頻繁な番号またはテキストを見つける
  • MODE関数を適用すると、Excelで簡単に範囲から最も頻度の高い数値を見つけることができます。 ただし、列からXNUMX番目に頻度の高い数値を見つけるのはどうでしょうか。 そして、列からXNUMX番目に一般的なテキスト値を見つけたらどうなるでしょうか。 ここでは、いくつかの回避策を紹介します。
  • Excelのリストから最も一般的な値(数値またはテキスト文字列)を検索する
  • いくつかの重複を含む名前のリストがあり、ここで、最も頻繁に表示される値を抽出するとします。 直接的な方法は、リストからデータをXNUMXつずつカウントして結果を取得することですが、列に数千の名前がある場合、この方法は面倒で時間がかかります。 次のチュートリアルでは、このタスクをすばやく便利に解決するためのいくつかの秘訣を紹介します。
  • Excelで最も頻度の高い値でデータを並べ替える
  • ワークシートにデータの長いリストがあり、各単語が出現する頻度でこのリストを並べ替えたいとします。 つまり、次のスクリーンショットに示すように、最も一般的な値(たとえば、列にXNUMX回出現する)が最初にリストされ、次にXNUMX回、XNUMX回、XNUMX回出現する単語が続きます。 このタスクをExcelでどのように解決できますか?

  • スーパーフォーミュラバー (複数行のテキストと数式を簡単に編集できます); 読書レイアウト (多数のセルを簡単に読み取って編集する); フィルター範囲に貼り付け...
  • セル/行/列をマージする およびデータの保持。 分割セルコンテンツ; 重複する行と合計/平均を組み合わせる...重複セルを防止します。 範囲を比較する...
  • [複製]または[一意]を選択します 行; 空白行を選択 (すべてのセルは空です); スーパーファインドとファジーファインド 多くのワークブックで; ランダム選択...
  • 正確なコピー 数式参照を変更せずに複数のセル。 参照の自動作成 複数のシートに; 箇条書きを挿入、チェックボックスなど...
  • お気に入りの数式をすばやく挿入する、範囲、チャート、写真; セルを暗号化する パスワード付き。 メーリングリストを作成する そしてメールを送る...
  • テキストを抽出、テキストの追加、位置による削除、 スペースを削除する; ページング小計の作成と印刷。 セルの内容とコメントを変換する...
  • スーパーフィルター (フィルタースキームを保存して他のシートに適用します); 高度な並べ替え 月/週/日、頻度など。 特殊フィルター 太字、斜体...
  • ワークブックとワークシートを組み合わせる; キー列に基づいてテーブルをマージします。 データを複数のシートに分割; xls、xlsx、PDFをバッチ変換...
  • ピボットテーブルのグループ化 週番号、曜日など... ロック解除された、ロックされたセルを表示する さまざまな色で; 式/名前を持つセルを強調表示する...
kteタブ201905
  • Word、Excel、PowerPointでタブ付きの編集と読み取りを有効にする、パブリッシャー、アクセス、Visioおよびプロジェクト。
  • 新しいウィンドウではなく、同じウィンドウの新しいタブで複数のドキュメントを開いて作成します。
  • 生産性を 50% 向上させ、毎日何百回もマウス クリックを減らすことができます!
officetab下部
Comments (17)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hello, thank you for your help.
I've used the "Find the most frequent occurring text based on criteria with array formulas" which works well for the 14 rows of data in your example however, when I increase the rows (and the formula values to match with CTRL+SHIFT+ENTER) it is still only searching the first 14 rows and returning "N/A" searching for anything past row 14.

I appreciate your help
Thank you
This comment was minimized by the moderator on the site
Hallo, eine wunderbare Lösung, funktioniert auch super - nur in meinem speziellen Fall noch nicht ganz: wenn im Suchbereich auch Leerzellen sind, also z.B. hier bei "Name" im Bereich "Finden Sie den am häufigsten vorkommenden Text anhand von Kriterien mit Array-Formeln", da sind bei mir auch leere Zellen dabei. Schon kommt überall nur noch "#NV". Gibt es da eine Lösung, um trotzdem noch den häufigsten (Text)-Inhalt zu finden? Vielen Dank!
This comment was minimized by the moderator on the site
...bzw. mit der Formel aus #41657 kommt kein #NV mehr, dafür aber auch nur manchmal ein Ergebnis, was nicht Null ist. Manchmal kommt der richtige Wert, häufig halt nur "0". ..:Danke :-)
This comment was minimized by the moderator on the site
Bagaimana jika range yang kita cari terdapat kolom kosongnya? misal kita buat rumus paten raport, kita ingin mencari akhlak umumnya siswa, kita ambil jangkauan terjauh, misal dalam 1 kelas, jumlah maksimal anak 60. pada suatu kelas lain jumlah siswa cuma 50, sehingga kolom 51 sd 60 kosong. apakah rumus demikian masih valid? saya coba kok #N/A atau mohon pencerahannya!
This comment was minimized by the moderator on the site
Hi, This is great, what I found is that when there is tie or only one record the formula results in N/A. How do I get it to show the single result? this is when I want to find the most common value based on criteria.
This comment was minimized by the moderator on the site
Hello, Yeslam,
To solve your problem, please apply the follwoing formula:

=IFERROR(INDEX($B$2:$B$15,MODE(IF($A$2:$A$15=D2,MATCH($B$2:$B$15,$B$2:$B$15,0)))),INDEX(B2:B15,MATCH(D2,A2:A15,0)))

Please have a try, hope it can help you!
This comment was minimized by the moderator on the site
HEY! This is really helpful. I'm wondering if you could help me, with, if there is a tie, to pick one of the top values/strings. thanks!
This comment was minimized by the moderator on the site
This is really helpful. I'm just thinking how to do this with a third criteria for "Find the most frequent text based on criteria"? let say Inventory, Project, Name then get the most occured name.

Thank you so much!
This comment was minimized by the moderator on the site
Hello,
To apply the fromula for three criteria, please apply the below formula:
=INDEX($A$2:$A$12,MODE(IF($A$2:$B$12=F2,IF($C$2:$C$12=G2,IF($D$2:$D$12=H2,MATCH($A$2:$A$12,$A$2:$A$12,0))))))


Tips:If you have more criteria, you just need to add the IF criteria as below:
=INDEX(range,MODE(IF(range1=criteria1,IF(range2=criteria2,IF(range3=criteria3,... MATCH(rang,range,0))))))


Please have a try, hope it can help you!
This comment was minimized by the moderator on the site
Halo gan,
bagaimana cara menemukan teks yang paling sering keluar KEDUA, KETIGA dan seterusnya?
Terima kasih :)
This comment was minimized by the moderator on the site
Hello, Dodik,
To solve your problem, please use the following formulas: (Please remember to press Ctrl + Shift + Enter keys together to get the result)

Find the second most common value:
=INDEX(A1:A20,MODE(IF((A1:A20<>"")*(A1:A20<>INDEX(A1:A20,MODE(IF(A1:A20<>"",MATCH(A1:A20,A1:A20,0))))),MATCH(A1:A20,A1:A20,0))))

Find the third most common value:
=INDEX(A1:A20,MODE(IF(((A1:A20<>"")*(A1:A20<>INDEX(A1:A20,MODE(IF(A1:A20<>"",MATCH(A1:A20,A1:A20,0)))))*(A1:A20<>INDEX(A1:A20,MODE(IF((A1:A20<>"")*(A1:A20<>INDEX(A1:A20,MODE(IF(A1:A20<>"",MATCH(A1:A20,A1:A20,0))))),MATCH(A1:A20,A1:A20,0)))))),MATCH(A1:A20,A1:A20,0))))
This comment was minimized by the moderator on the site
Thank you for this information, but what happens if there is a tie? For the generic example, =INDEX(A2:A15,MODE(MATCH(A2:A15,A2:A15,0))), how would the formula be modified to output text indicating that a majority could not be determined?
This comment was minimized by the moderator on the site
Hello, Lauren

If there are more than one result, you can use the below formulas:
First, you can use this array formula: (Note: after inserting the formula, please press Ctrl + Shift + Enter keys together to get the first result.)
=INDEX($A$2:$A$10,MATCH(MIN(MODE(IF(NOT(COUNTIF(C$1:C1,$A$2:$A$10)),(COUNTIF($A$2:$A$10,"<"& $A$2:$A$10)+1)*{1,1}))),COUNTIF($A$2:$A$10,"<"& $A$2:$A$10)+{1},0))

With this formula, you can extract all data from the most occurred value to least common value.
And then, you should use the below formula to count the number of the occurred text:
=COUNTIF($A$2:$A$10, C2)


https://www.extendoffice.com/images/stories/comments/comment-skyyang/doc-most-common-value.png


Please try, hope it can help you!
This comment was minimized by the moderator on the site
Very helpful advice in this particular post! It’s the little changes that make the largest changes. Thanks for sharing!  
This comment was minimized by the moderator on the site
Thank you for your post, I look for such article along time, today i find it finally. this post give me lots of advise it is very useful for me. website
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations