Countif formula in excel table

austin350s10

Active Member
Joined
Jul 30, 2010
Messages
321
Does anyone know how to use a countif formula in a table. I have a table in which I would like to total up all the occurrences of the word "yes" in one column and show it in the total row of that column. I have tried the following with no luck....any ideas what I'm doing wrong here?

=COUNTIF(SUBTOTAL(myTable,[myColumn]), "yes")
=COUNTIF([myColumn],"Yes")
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
That kinda works but as soon as i apply a filter the count does not update. So if there were 6 "yes" before adding any filters and 1 "yes" after filter the total would still read 6 :-\
 
Upvote 0
have you tried adding a total row to your table under table tools....design?
 
Upvote 0
Maybe

=SUMPRODUCT(--SUBTOTAL(3,OFFSET([MyColumn],ROW([MyColumn])-MIN(ROW([MyColumn])),0,1)),--([MyColumn]="yes"))

M.
 
Upvote 0

Forum statistics

Threads
1,223,248
Messages
6,171,021
Members
452,374
Latest member
keccles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top