Przejdź do głównej zawartości

Jak policzyć liczbę wystąpień w kolumnie w arkuszu Google?

Przypuśćmy, że masz listę nazwisk w kolumnie A arkusza Google, a teraz chcesz policzyć, ile razy każda unikalna nazwa pojawiła się, jak pokazano na poniższym zrzucie ekranu. W tym samouczku opowiem o niektórych formułach rozwiązania tego zadania w arkuszu Google.

Policz liczbę wystąpień w kolumnie w arkuszu Google za pomocą formuły pomocniczej

Policz liczbę wystąpień w kolumnie w arkuszu Google z formułą


Policz liczbę wystąpień w kolumnie w arkuszu Google za pomocą formuły pomocniczej

W tej metodzie możesz najpierw wyodrębnić wszystkie unikalne nazwy z kolumny, a następnie policzyć wystąpienie na podstawie unikalnej wartości.

1. Wprowadź tę formułę: = UNIQUE (A2: A16) do pustej komórki, w której chcesz wyodrębnić unikalne nazwy, a następnie naciśnij Wchodzę klucz, wszystkie unikalne wartości zostały wymienione w poniższym zrzucie ekranu:

Note: W powyższym wzorze, A2: A16 to dane kolumny, które chcesz policzyć.

2. A następnie przejdź do tej formuły: = LICZ.JEŻELI (A2: A16; C2) obok pierwszej komórki z formułą naciśnij Wchodzę aby uzyskać pierwszy wynik, a następnie przeciągnij uchwyt wypełniania w dół do komórek, które chcesz policzyć wystąpienia unikalnych wartości, patrz zrzut ekranu:

Note: W powyższym wzorze, A2: A16 to dane kolumny, z których chcesz liczyć unikalne nazwy, i C2 to pierwsza wyodrębniona unikatowa wartość.


Policz liczbę wystąpień w kolumnie w arkuszu Google z formułą

Możesz również zastosować następującą formułę, aby uzyskać wynik. Zrób tak:

Wprowadź tę formułę: = ArrayFormula (QUERY (A1: A16 & {"", ""}, "select Col1, count (Col2) where Col1! = '' Group by Col1 label count (Col2) 'Count'", 1)) do pustej komórki, w której chcesz umieścić wynik, a następnie naciśnij Wchodzę klawisz, a obliczony wynik został wyświetlony od razu, patrz zrzut ekranu:

Note: W powyższym wzorze, A1: A16 to zakres danych obejmujący nagłówek kolumny, który chcesz policzyć.


Policz liczbę wystąpień w kolumnie w programie Microsoft Excel:

Kutools dla programu Excel'S Zaawansowane wiersze łączenia Narzędzie może pomóc w policzeniu liczby wystąpień w kolumnie, a także może pomóc w łączeniu lub sumowaniu odpowiednich wartości komórek na podstawie tych samych komórek w innej kolumnie.

Kutools dla programu Excel: z ponad 300 poręcznymi dodatkami do programu Excel, które można wypróbować bez ograniczeń w ciągu 30 dni. Pobierz i bezpłatną wersję próbną teraz!

Najlepsze narzędzia biurowe

🤖 Pomocnik AI Kutools: Zrewolucjonizuj analizę danych w oparciu o: Inteligentne wykonanie   |  Wygeneruj kod  |  Twórz niestandardowe formuły  |  Analizuj dane i generuj wykresy  |  Wywołaj funkcje Kutools...
Popularne funkcje: Znajdź, wyróżnij lub zidentyfikuj duplikaty   |  Usuń puste wiersze   |  Łącz kolumny lub komórki bez utraty danych   |   Okrągły bez wzoru ...
Super wyszukiwanie: Wiele kryteriów VLookup    Wiele wartości VLookup  |   Przeglądanie pionowe na wielu arkuszach   |   Wyszukiwanie rozmyte ....
Zaawansowana lista rozwijana: Szybko twórz listę rozwijaną   |  Zależna lista rozwijana   |  Lista rozwijana wielokrotnego wyboru ....
Menedżer kolumn: Dodaj określoną liczbę kolumn  |  Przesuń kolumny  |  Przełącz stan widoczności ukrytych kolumn  |  Porównaj zakresy i kolumny ...
Polecane funkcje: Fokus siatki   |  Widok projektu   |   Duży pasek formuły    Menedżer skoroszytów i arkuszy   |  Biblioteka zasobów (Automatyczny tekst)   |  Selektor dat   |  Połącz arkusze   |  Szyfruj/odszyfruj komórki    Wysyłaj e-maile według listy   |  Super filtr   |   Specjalny filtr (filtruj pogrubienie/kursywa/przekreślenie...) ...
15 najlepszych zestawów narzędzi12 Tekst Tools (Dodaj tekst, Usuń znaki, ...)   |   50 + Wykres rodzaje (Wykres Gantta, ...)   |   40+ Praktyczne Wzory (Oblicz wiek na podstawie urodzin, ...)   |   19 Wprowadzenie Tools (Wstaw kod QR, Wstaw obraz ze ścieżki, ...)   |   12 Konwersja Tools (Liczby na słowa, Przeliczanie walut, ...)   |   7 Połącz i podziel Tools (Zaawansowane wiersze łączenia, Podział komórki, ...)   |   ... i więcej

Zwiększ swoje umiejętności Excela dzięki Kutools for Excel i doświadcz wydajności jak nigdy dotąd. Kutools dla programu Excel oferuje ponad 300 zaawansowanych funkcji zwiększających produktywność i oszczędzających czas.  Kliknij tutaj, aby uzyskać funkcję, której najbardziej potrzebujesz...

Opis


Karta Office wprowadza interfejs z zakładkami do pakietu Office i znacznie ułatwia pracę

  • Włącz edycję i czytanie na kartach w programach Word, Excel, PowerPoint, Publisher, Access, Visio i Project.
  • Otwieraj i twórz wiele dokumentów w nowych kartach tego samego okna, a nie w nowych oknach.
  • Zwiększa produktywność o 50% i redukuje setki kliknięć myszką każdego dnia!
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