Vai al contenuto principale

Come contare / sommare le celle in base al filtro con criteri in Excel?

In realtà, in Excel, possiamo contare e sommare rapidamente le celle con la funzione COUNTA e SUM in un intervallo di dati normale, ma queste funzioni non funzioneranno correttamente in situazioni filtrate. Per contare o sommare le celle in base al filtro o al filtro con criteri, questo articolo potrebbe farti un favore.

Conta / Somma celle in base al filtro con formule

Conta / Somma le celle in base al filtro con Kutools per Excel

Contare / sommare le celle in base al filtro con determinati criteri utilizzando le formule


Conta / Somma celle in base al filtro con formule

Le seguenti formule possono aiutarti a contare o sommare i valori delle celle filtrate in modo rapido e semplice, per favore fai come segue:

Per contare le celle dai dati filtrati, applica questa formula: = SUBTOTALE (3, C6: C19) (C6: C19 è l'intervallo di dati da cui si desidera contare), quindi premere entrare chiave. Vedi screenshot:

conteggio documenti basato sul filtro 1

Per sommare i valori delle celle in base ai dati filtrati, applica questa formula: = SUBTOTALE (9, C6: C19) (C6: C19 è l'intervallo di dati filtrato che si desidera sommare), quindi premere entrare chiave. Vedi screenshot:

conteggio documenti basato sul filtro 2


Conta / Somma le celle in base al filtro con Kutools per Excel

Se si dispone di Kutools for Excel, le Contavisibile ed sommabile le funzioni possono anche aiutarti a contare e sommare le celle filtrate contemporaneamente.

Kutools for Excel : con oltre 300 utili componenti aggiuntivi di Excel, da provare gratuitamente senza limitazioni in 30 giorni. 

Dopo l'installazione Kutools for Excel, inserisci le seguenti formule per contare o sommare le celle filtrate:

Contare le celle filtrate: = COUNTVISIBLE (C6: C19)

Somma le celle filtrate: = SUMVISIBLE (C6: C19)

conteggio documenti basato sul filtro 3

Suggerimenti:: È inoltre possibile applicare queste funzioni facendo clic su Kutools > Funzioni di Kutools > Statistica e matematica > MEDIA VISIBILE / COUNTVISIBILE / SOMMVISIBILE di cui hai bisogno. Vedi screenshot:

Scarica e prova gratuitamente Kutools per Excel ora!


Contare / sommare le celle in base al filtro con determinati criteri utilizzando le formule

A volte, nei dati filtrati, desideri contare o sommare in base a criteri. Ad esempio, ho i seguenti dati filtrati, ora devo contare e sommare gli ordini il cui nome è "Nelly". Qui, introdurrò alcune formule per risolverlo.

conteggio documenti basato sul filtro 5

Contare le celle in base ai dati del filtro con determinati criteri:

Inserisci questa formula: =SUMPRODUCT(SUBTOTAL(3,OFFSET(B6:B19,ROW(B6:B19)-MIN(ROW(B6:B19)),,1)), --( B6:B19="Nelly")), (B6: B19 sono i dati filtrati che si desidera utilizzare e il testo Nelly è il criterio in base al quale si desidera contare), quindi premere entrare tasto per ottenere il risultato:

conteggio documenti basato sul filtro 6

Somma le celle in base ai dati del filtro con determinati criteri:

Per sommare i valori filtrati nella colonna C in base ai criteri, inserisci questa formula: =SUMPRODUCT(SUBTOTAL(3,OFFSET(B6:B19,ROW(B6:B19)-MIN(ROW(B6:B19)),,1)),( B6:B19="Nelly")*(C6:C19)) (B6: B19 contiene i criteri che si desidera utilizzare, il testo Nelly è il criterio, e C6: C19 è i valori della cella che si desidera sommare), quindi premere entrare tasto per restituire il risultato come mostrato nella seguente schermata:

conteggio documenti basato sul filtro 7

I migliori strumenti per la produttività in ufficio

🤖 Assistente AI di Kutools: Rivoluziona l'analisi dei dati basandosi su: Esecuzione intelligente   |  Genera codice  |  Crea formule personalizzate  |  Analizzare i dati e generare grafici  |  Richiama le funzioni di Kutools...
Funzioni popolari: Trova, evidenzia o identifica i duplicati   |  Elimina righe vuote   |  Combina colonne o celle senza perdere dati   |   Round senza formula ...
Super ricerca: VLookup a criteri multipli    VLookup a valori multipli  |   VLookup su più fogli   |   Ricerca fuzzy ....
Elenco a discesa avanzato: Crea rapidamente un elenco a discesa   |  Elenco a discesa dipendente   |  Elenco a discesa a selezione multipla ....
Gestore di colonna: Aggiungi un numero specifico di colonne  |  Sposta colonne  |  Attiva/disattiva lo stato di visibilità delle colonne nascoste  |  Confronta intervalli e colonne ...
Funzionalità in primo piano: Messa a fuoco della griglia   |  Vista di progettazione   |   Grande barra delle formule    Gestore di cartelle di lavoro e fogli   |  Resource Library (Testo automatico)   |  Date picker   |  Combina fogli di lavoro   |  Crittografa/decrittografa le celle    Invia e-mail per elenco   |  Super filtro   |   Filtro speciale (filtro grassetto/corsivo/barrato...) ...
I 15 migliori set di strumenti12 Testo Strumenti (aggiungi testo, Rimuovi personaggi, ...)   |   50+ Grafico Tipi (Diagramma di Gantt, ...)   |   40+ Pratico Formule (Calcola l'età in base al compleanno, ...)   |   19 Inserimento Strumenti (Inserisci il codice QR, Inserisci immagine dal percorso, ...)   |   12 Conversione Strumenti (Numeri in parole, Conversione di valuta, ...)   |   7 Unisci e dividi Strumenti (Combina righe avanzate, Celle divise, ...)   |   ... e altro ancora

Potenzia le tue competenze di Excel con Kutools per Excel e sperimenta l'efficienza come mai prima d'ora. Kutools per Excel offre oltre 300 funzionalità avanzate per aumentare la produttività e risparmiare tempo.  Fai clic qui per ottenere la funzionalità di cui hai più bisogno...

Descrizione


Office Tab porta l'interfaccia a schede in Office e semplifica notevolmente il tuo lavoro

  • Abilita la modifica e la lettura a schede in Word, Excel, PowerPoint, Publisher, Access, Visio e Project.
  • Apri e crea più documenti in nuove schede della stessa finestra, piuttosto che in nuove finestre.
  • Aumenta la produttività del 50% e riduce ogni giorno centinaia di clic del mouse!
Comments (10)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
First of all, sorry for my bad English haha.

I used Skyyang's formula, but I'm still missing a small part in my formula. I entered the following formula, but it doesn’t recognize my 2nd criteria in the answer. Can you help me further? I can share the sheet if you want.

=SOMPRODUCT(((D4:D45="Auto")+(E4:E45="Zonder vervanging")*(SUBTOTAAL(3;VERSCHUIVING(E4;RIJ(E4:E45)-RIJ(E4:E45)-3;)))))
This comment was minimized by the moderator on the site
Does anybody knows how to do this but with more than one criteria? I mean, if I wanted to COUNT only the rows which qualify for two or more criterias?
Thanks a bunch!
This comment was minimized by the moderator on the site
Hello, WN,
May be the following formula can help you:
=SUMPRODUCT( ( (B2:B23="Large")+(B2:B23="Small"))*(SUBTOTAL(103,OFFSET(B2,ROW(B2:B23)-MIN(ROW(B2:B23)),0))))

If you have more criteria, just join the criteria with + character.
Please try, hope it can help you!
This comment was minimized by the moderator on the site
If i have data in sheet 1 in trying to pull into sheet 2 that comes from a range in a column i want but I'm only looking for data that had a certain value of "system issue" and i want the second sheet to be able to see how many in that column had system issue but *** up the paid amounts in a separate column of sheet one that filter to the "system issue" so we can see how much has been paid out for system issues, thoughts on the formula? The one you keep sharing is only for 1 sheet and you keep using a number after the first parenthesis that i do not know how you came up with it.
This comment was minimized by the moderator on the site
Can this be done with more than one criteria? I mean, I know it can be as per the below answered questions. I have to have sum based on two criteria's One criteria in Row B as "RN" and another one in row DX as "D" and the sum is going to be in row EA. Any help would be great!
This comment was minimized by the moderator on the site
Does anybody knows how to do this but with more than one criteria? I mean, if I wanted to SUM only positive values?
This comment was minimized by the moderator on the site
Hi, Bernardo,
To solve your problem, you should apply below formula:
=SUMPRODUCT(SUBTOTAL(9,OFFSET(B2,ROW(B2:B14)-ROW(B2),0)),--(A2:A14="Lucy"),--(B2:B14>0))

Please try, hope it can help you!
This comment was minimized by the moderator on the site
It's absolutely ridiculous that EXCEL requires the formula to be so complicated! All that should be needed is a SUBTOTAL(9,Range) WHERE/HAVING criteria (X,Y,Z).
This comment was minimized by the moderator on the site
Yes I agree, I am looking for the Excel formula so that the sum of the range (with criteria) is NOT affected by the Filtered columns.
This comment was minimized by the moderator on the site
I agree. It is ridiculous
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations