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

Googleスプレッドシートの列の出現回数を数える方法は?

Googleスプレッドシートの列Aに名前のリストがあり、次に示すスクリーンショットのように、それぞれの一意の名前が表示された回数を数えたいとします。 このチュートリアルでは、Googleスプレッドシートでこの仕事を解決するためのいくつかの公式について説明します。

ヘルパー式を使用して、Googleスプレッドシートの列の出現回数をカウントします

数式を使用してGoogleスプレッドシートの列の出現回数をカウントします


ヘルパー式を使用して、Googleスプレッドシートの列の出現回数をカウントします

この方法では、最初に列からすべての一意の名前を抽出してから、一意の値に基づいて出現回数をカウントできます。

1。 次の式を入力してください: = UNIQUE(A2:A16) 一意の名前を抽出する空白のセルに移動し、を押します 入力します キー、すべての一意の値は、次のスクリーンショットのようにリストされています。

Note:上記の式では、 A2:A16 カウントする列データです。

2。 次に、次の式を入力します。 = COUNTIF(A2:A16、C2) 最初の数式セルの横にあるを押します 入力します キーを押して最初の結果を取得し、塗りつぶしハンドルを一意の値の出現をカウントするセルまでドラッグします。スクリーンショットを参照してください。

Note:上記の式では、 A2:A16 一意の名前をカウントする列データであり、 C2 抽出した最初の一意の値です。


数式を使用してGoogleスプレッドシートの列の出現回数をカウントします

次の式を適用して結果を取得することもできます。 このようにしてください:

次の式を入力してください: = ArrayFormula(QUERY(A1:A16&{""、 ""}、 "select Col1、count(Col2)where Col1!= '' group by Col1 label count(Col2) 'Count'"、1)) 結果を入力する空白のセルに入力し、を押します 入力します キーを押すと、計算結果がすぐに表示されます。スクリーンショットを参照してください。

Note:上記の式では、 A1:A16 カウントする列ヘッダーを含むデータ範囲です。


MicrosoftExcelの列の出現回数をカウントします。

Kutools for Excelさん 高度な結合行 ユーティリティは、列内の出現回数をカウントするのに役立ちます。また、別の列の同じセルに基づいて対応するセル値を結合または合計するのにも役立ちます。

Kutools for Excel:300以上の便利なExcelアドインがあり、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 (14)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
可以限制规定内容出现的频次吗
This comment was minimized by the moderator on the site
Thanks!!! how do I count multiple columns?Ie column A, B,C,D all have names that needs to be counted
This comment was minimized by the moderator on the site
Thank you for this! Been trying to figure it out for hours!
This comment was minimized by the moderator on the site
Hi, I am trying to filter out some data from a sheet that is regularly updated. To simplify keeping track of the data I have a reporting section on the google sheet.The problem is that the data isn't organized in the most ideal way.

There are 2 columns that I want to use specific data from to create a filter, then with the leftover names I want to know how many unique names there are


Column 1 - Filter with A for one report field, B for the other report field (I will manually change this in the formula)

Column 2 - There are 9 Text entries possible. I want to only include 3 of them as a Filter

Column 3 - There are a couple of thousand entries(names), many are the same in multiple rows. With the data filtered using Column 1, and Column 2, I want to get a number for how many unique names are left after the data has been filtered.


I am not used to having this many things I am trying to filter the data from so any help would be hugely appreciated.


Have an excellent day
This comment was minimized by the moderator on the site
I have a google sheet with a lot of information but I am looking to filter it down into a report.

Column1 - Options are A, B (The is the first data to sort)
Column 2 - has 3 of the text string that I want my sum to include, but I want to leave out the others 5.
Column 3 - Names that I want to know how many unique names there are

What I am looking to figure out is the following

Option A, the sum to only include 3 text string that appears multiple times in a 2nd column, The total being how many unique names there are in Column 3

Hoping someone can help as this is a bit over my experience level
This comment was minimized by the moderator on the site
My count isn't grouping the names together.
i.e.
Column B says
Independence
Walnut St.
Parkway
Walnut St.
and instead of my " count " column saying Walnut St. 2 it says
Walnut St. 1
Walnut St. 1

How can I fix this ?
This comment was minimized by the moderator on the site
This is partly what I'm looking for.
Now my next issue is, how can I sort these so that I get them in desending order?
So it should be looking like this:
James 4
Nicol 3
Ruby 3
Lucy 2
Tom 2
John 1

Hope you can help with that as well
This comment was minimized by the moderator on the site
Hi,
If you want to sort the results in descending order, you just need to sort the data by the formula result column after getting the result.
Hope it can help you!
This comment was minimized by the moderator on the site
Whenever I try to sort, I get an error, is there a way I can fix that? I have the $A$1:$A$7, B1 as my formula - is there something in my formula I should edit?
This comment was minimized by the moderator on the site
VERY useful - thank you so much!
This comment was minimized by the moderator on the site
Thanks! Super useful!
This comment was minimized by the moderator on the site
When you drag the handle down to apply it to the rest of the values, it increments the search radius by 1. So if youre searching =COUNTIF(A1:A10,C1), when you drag the handle down, the second value will be =COUNTIF(A2:A11,C2).
This comment was minimized by the moderator on the site
This is SOOO helpful! This skips an entire step
This comment was minimized by the moderator on the site
You fix it this way
=COUNTIF($A$2:$A$11,C2)
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations