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

Excelで最も頻繁な値でデータを並べ替える方法は?

ワークシートにデータの長いリストがあり、各単語が出現する頻度でこのリストを並べ替えたいとします。 つまり、次のスクリーンショットに示すように、最も一般的な値(たとえば、列にXNUMX回出現する)が最初にリストされ、次にXNUMX回、XNUMX回、XNUMX回出現する単語が続きます。 このタスクをExcelでどのように解決できますか?


ヘルパー列を使用して、最も頻度の高い値でデータを並べ替えます

Excelでは、一度に発生頻度でデータを並べ替える直接的な機能はありません。最初に値の発生をカウントしてから、Excelで並べ替え機能を適用する必要があります。

1。 元の列の横にある空白のセルを選択し、この数式を入力します = COUNTIF($ A $ 2:$ A $ 16、A2) その中に、このセルのオートフィルハンドルを必要に応じて範囲までドラッグします。 スクリーンショットを参照してください:

Note:上記の式では、 A2:A16 は頻度でソートする指定リストであり、A2はこのリストの最初のデータです。

2。 これらの数式セルを選択し続け、クリックします 且つ > ZをZにソートする or ZをAにソートする 必要に応じて。 以下のスクリーンショットを参照してください。

3。 [並べ替えの警告]ダイアログボックスを開いて、[ 選択範囲を拡大 オプションをクリックし、 並び替え ボタン。 上記のスクリーンショットを参照してください。

4。 これで、元の列は既に頻度で並べ替えられています(下のスクリーンショットを参照)。 必要に応じて、追加したヘルパー列を削除してください。


Kutools for Excelを使用して、最も頻度の高い値でデータを並べ替えます

実際、Kutools for Excelは、リスト/列を頻度で簡単に並べ替える直接的な回避策を提供します。 高度な並べ替え ユーティリティ。 次のようにしてください。

Kutools for Excel - Excel に必要な 300 以上のツールが詰め込まれています。 クレジット カードは必要なく、全機能を備えた 30 日間の無料トライアルをお楽しみください。 ダウンロード中!

1.頻度で並べ替える必要のあるリストを選択し、をクリックします クツールズプラス > 並べ替え>高度な並べ替え。 スクリーンショットを参照してください:

2.ポップアップで 高度な並べ替え ダイアログで、頻度で並べ替える列を選択してください。 周波数 並べ替え ドロップダウンリストで、 注文 必要に応じて、[OK]ボタンをクリックします。 スクリーンショットを参照してください:

Excel用のKutools 高度な並べ替え ユーティリティは、はるかに柔軟な並べ替え方法を提供します。テキストの長さで並べ替える、姓で並べ替える、絶対値で並べ替えるなどです。 詳細はクリックしてください...

Kutools for Excel - 300 以上の必須ツールで Excel を強化します。 クレジット カードは必要なく、全機能を備えた 30 日間の無料トライアルをお楽しみください。 今すぐ入手

Excelで最も頻繁なテキスト値または数値をすばやく見つける

通常、MODE関数を適用して、Excelで最も頻度の高い数値を見つけることができます。 しかし、指定された範囲から最も頻繁なテキスト値を取得するにはどうすればよいですか? Excel用のKutools 最も一般的な値を見つける 数式はあなたに簡単な方法を提供します!



Kutools for Excel - 300 以上の必須ツールで Excel を強化します。 クレジット カードは必要なく、全機能を備えた 30 日間の無料トライアルをお楽しみください。 今すぐ入手


デモ


Kutools for Excel: 300 を超える便利なツールをすぐに利用できます。 機能制限なしの 30 日間の無料トライアルを今すぐ始めてください。 今すぐダウンロード!

関連記事:

最高のオフィス生産性向上ツール

🤖 Kutools AI アシスタント: 以下に基づいてデータ分析に革命をもたらします。 インテリジェントな実行   |  コードを生成  |  カスタム数式の作成  |  データを分析してグラフを生成する  |  Kutools関数を呼び出す...
人気の機能: 重複を検索、強調表示、または識別する   |  空白行を削除する   |  データを失わずに列またはセルを結合する   |   数式なしのラウンド ...
スーパールックアップ: 複数の基準の VLookup    複数の値の VLookup  |   複数のシートにわたる VLookup   |   ファジールックアップ ....
詳細ドロップダウン リスト: ドロップダウンリストを素早く作成する   |  依存関係のドロップダウン リスト   |  複数選択のドロップダウンリスト ....
列マネージャー: 特定の数の列を追加する  |  列の移動  |  Toggle 非表示列の表示ステータス  |  範囲と列の比較 ...
注目の機能: グリッドフォーカス   |  デザインビュー   |   ビッグフォーミュラバー    ワークブックとシートマネージャー   |  リソースライブラリ (自動テキスト)   |  日付ピッカー   |  ワークシートを組み合わせる   |  セルの暗号化/復号化    リストごとにメールを送信する   |  スーパーフィルター   |   特殊フィルター (太字/斜体/取り消し線をフィルター...) ...
上位 15 のツールセット12 テキスト ツール (テキストを追加, 文字を削除する、...)   |   50+ チャート 種類 (ガントチャート、...)   |   40+ 実用的 (誕生日に基づいて年齢を計算する、...)   |   19 挿入 ツール (QRコードを挿入, パスから画像を挿入、...)   |   12 変換 ツール (数字から言葉へ, 通貨の換算、...)   |   7 マージ&スプリット ツール (高度な結合行, 分割セル、...)   |   ... もっと

Kutools for Excel で Excel スキルを強化し、これまでにない効率を体験してください。 Kutools for Excelは、生産性を向上させ、時間を節約するための300以上の高度な機能を提供します。  最も必要な機能を入手するにはここをクリックしてください...

説明


Officeタブは、タブ付きのインターフェイスをOfficeにもたらし、作​​業をはるかに簡単にします

  • Word、Excel、PowerPointでタブ付きの編集と読み取りを有効にする、パブリッシャー、アクセス、Visioおよびプロジェクト。
  • 新しいウィンドウではなく、同じウィンドウの新しいタブで複数のドキュメントを開いて作成します。
  • 生産性を 50% 向上させ、毎日何百回もマウス クリックを減らすことができます!
Comments (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi there,

I am trying to sort the contents of an excel table in terms of the maximum number of "Yes" values that each row has in columns F to M of the table.

For example if row 36 has "Yes" in B, C, D, E and F (let us simplify and say this is the maximum number of "Yes" values), then row 36 should be at the top. If row 2 has "Yes" values in only B, D and E, then it should come after row 36: row 36 has 5 "Yes" values, row 2 has 3.

How do I do this? I am using excel on a mac, if that makes a difference. Thanks very much!!
This comment was minimized by the moderator on the site
Hi All

In this solution after getting occurrence ,rest of the sorting i want to do with excel 2016 formula

can anyone help me ...how we can sort with using 2016 version formula only
This comment was minimized by the moderator on the site
Hello, singh,
If you want to use a formula to sort the data, you can use the Sort function, but, this function is only available for Excel 365 and later versions.
=SORT(array, [sort_index], [sort_order], [by_col])

To get more detaied information of this function, the below article can help you!
https://www.extendoffice.com/excel/functions/excel-sort-function.html

Please have a try, thank you!
This comment was minimized by the moderator on the site
Not sure if my comment ever went through but I just figured out my goof! Thank you so much for posting this, it's exactly what I was looking for!!
This comment was minimized by the moderator on the site
Just what I was looking for! I'm just having a little trouble with it still because my list is first and last names and it's only looking at the first word. So for example, if the first 10 names were "Taylor Swift", it's including "Taylor Morrisen" in the count. I'm still working on figuring it out but definitely worth including in this article! Thanks for posting (:
This comment was minimized by the moderator on the site
DOES NOT WORK FOR ME!!!!!!!!!!!!!!!!!!!! If I give the =COUNTIF($A$2:$A$15,"="&$A2) - it does not count the values for me, but instead, it only writes the count of the data which is in the field A2!
This comment was minimized by the moderator on the site
Remove a dollar sign on A2
This comment was minimized by the moderator on the site
Hi Vipera, That may happen if you've got the "$" symbol in the wrong place. To make sure you have it correct, type in the cell number (eg E2) and then press "F4" until the $ symbol is in the correct place. Alternatively, as you are only copying the formula down one column, you can leave the second cell number without the $ symbol and it should still work fine.
This comment was minimized by the moderator on the site
Thanks for the excellent trick. Is helping me out in sorting the data of a major shipping port that I have which helps in bringing out super cool trivia stuff regarding that port! :D
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations