Přejít k hlavnímu obsahu

Jak spočítat počet výskytů ve sloupci v listu Google?

Předpokládejme, že máte seznam jmen ve sloupci A listu Google a nyní chcete spočítat, kolikrát se každé jedinečné jméno objevilo, jak ukazuje následující snímek obrazovky. V tomto tutoriálu budu hovořit o některých vzorcích pro řešení této úlohy v listu Google.

Počítat počet výskytů ve sloupci v listu Google pomocí pomocného vzorce

Počítat počet výskytů ve sloupci v listu Google pomocí vzorce


Počítat počet výskytů ve sloupci v listu Google pomocí pomocného vzorce

V této metodě můžete nejprve ze sloupce extrahovat všechny jedinečné názvy a poté spočítat výskyt na základě jedinečné hodnoty.

1. Zadejte prosím tento vzorec: = JEDINEČNÉ (A2: A16) do prázdné buňky, kde chcete extrahovat jedinečné názvy, a poté stiskněte vstoupit klíč, všechny jedinečné hodnoty byly uvedeny jako následující snímek obrazovky:

Poznámka: Ve výše uvedeném vzorci, A2: A16 jsou data sloupce, která chcete spočítat.

2. A pak pokračujte v zadávání tohoto vzorce: = COUNTIF (A2: A16, C2) vedle první buňky vzorce stiskněte vstoupit klíč k získání prvního výsledku a pak přetáhněte popisovač výplně dolů do buněk, které chcete spočítat výskyt jedinečných hodnot, viz screenshot:

Poznámka: Ve výše uvedeném vzorci, A2: A16 jsou data sloupce, ze kterých chcete počítat jedinečná jména, a C2 je první jedinečná hodnota, kterou jste získali.


Počítat počet výskytů ve sloupci v listu Google pomocí vzorce

K získání výsledku můžete také použít následující vzorec. Udělejte prosím toto:

Zadejte prosím tento vzorec: = ArrayFormula (QUERY (A1: A16 & {"", ""}, "select Col1, count (Col2) where Col1! = '' Group by Col1 label count (Col2) 'Count'", 1)) do prázdné buňky, kam chcete umístit výsledek, a stiskněte vstoupit klíč a vypočítaný výsledek byl zobrazen najednou, viz screenshot:

Poznámka: Ve výše uvedeném vzorci, A1: A16 je rozsah dat, který zahrnuje záhlaví sloupce, které chcete počítat.


Počítat počet výskytů ve sloupci v aplikaci Microsoft Excel:

Kutools pro ExcelJe Pokročilé kombinování řádků obslužný program vám pomůže spočítat počet výskytů ve sloupci a také vám pomůže zkombinovat nebo sečíst odpovídající hodnoty buněk na základě stejných buněk v jiném sloupci.

Kutools pro Excel: s více než 300 praktickými doplňky aplikace Excel, můžete vyzkoušet bez omezení do 30 dnů. Stáhněte si a vyzkoušejte zdarma hned teď!

Nejlepší nástroje pro produktivitu v kanceláři

🤖 Kutools AI asistent: Revoluční analýza dat založená na: Inteligentní provedení   |  Generovat kód  |  Vytvořte vlastní vzorce  |  Analyzujte data a generujte grafy  |  Vyvolejte funkce Kutools...
Populární funkce: Najít, zvýraznit nebo identifikovat duplikáty   |  Odstranit prázdné řádky   |  Kombinujte sloupce nebo buňky bez ztráty dat   |   Kolo bez vzorce ...
Super vyhledávání: Více kritérií VLookup    VLookup s více hodnotami  |   VLookup na více listech   |   Fuzzy vyhledávání ....
Pokročilý rozevírací seznam: Rychle vytvořte rozevírací seznam   |  Závislý rozbalovací seznam   |  Vícenásobný výběr rozevíracího seznamu ....
Správce sloupců: Přidejte konkrétní počet sloupců  |  Přesunout sloupce  |  Přepnout stav viditelnosti skrytých sloupců  |  Porovnejte rozsahy a sloupce ...
Doporučené funkce: Zaměření mřížky   |  Návrhové zobrazení   |   Velký Formula Bar    Správce sešitů a listů   |  Knihovna zdrojů (Automatický text)   |  Výběr data   |  Zkombinujte pracovní listy   |  Šifrovat/dešifrovat buňky    Odesílat e-maily podle seznamu   |  Super filtr   |   Speciální filtr (filtr tučné/kurzíva/přeškrtnuté...) ...
Top 15 sad nástrojů12 Text Tools (doplnit text, Odebrat znaky, ...)   |   50+ Graf Typ nemovitosti (Ganttův diagram, ...)   |   40+ Praktické Vzorce (Vypočítejte věk na základě narozenin, ...)   |   19 Vložení Tools (Vložte QR kód, Vložit obrázek z cesty, ...)   |   12 Konverze Tools (Čísla na slova, Přepočet měny, ...)   |   7 Sloučit a rozdělit Tools (Pokročilé kombinování řádků, Rozdělit buňky, ...)   |   ... a více

Rozšiřte své dovednosti Excel pomocí Kutools pro Excel a zažijte efektivitu jako nikdy předtím. Kutools for Excel nabízí více než 300 pokročilých funkcí pro zvýšení produktivity a úsporu času.  Kliknutím sem získáte funkci, kterou nejvíce potřebujete...

Popis


Office Tab přináší do Office rozhraní s kartami a usnadňuje vám práci

  • Povolte úpravy a čtení na kartách ve Wordu, Excelu, PowerPointu, Publisher, Access, Visio a Project.
  • Otevřete a vytvořte více dokumentů na nových kartách ve stejném okně, nikoli v nových oknech.
  • Zvyšuje vaši produktivitu o 50%a snižuje stovky kliknutí myší každý den!
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