subtotal with countif

faraz502

Board Regular
Joined
Mar 26, 2014
Messages
127
Office Version
  1. 2016
Platform
  1. Windows
I NEED SUbtotal with countif in Column D2 When i filtered in columnA give me 0 count in cell d2.


ColumnA[TABLE="width: 257"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]ColumnB[/TD]
[TD]ColumnC[/TD]
[/TR]
[TR]
[TD]Silver[/TD]
[TD]South-2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Silver[/TD]
[TD]South-2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Silver[/TD]
[TD]South-2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Silver[/TD]
[TD]South-2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Silver[/TD]
[TD]South-2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Silver[/TD]
[TD]South-1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Silver[/TD]
[TD]South-2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Silver[/TD]
[TD]South-2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Silver[/TD]
[TD]South-2[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Platinum[/TD]
[TD]South-1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Silver[/TD]
[TD]South-2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Silver[/TD]
[TD]South-2[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Silver[/TD]
[TD]South-2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Platinum[/TD]
[TD]South-1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Silver[/TD]
[TD]South-2[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
You can comment on what you want to count, what the condition is and what you expect from the result.
 
Upvote 0
You can comment on what you want to count, what the condition is and what you expect from the result.


I need count how many zero in column C when i chose Silver in column A.

I use Below mention formula but this formula count all zero from column C. <example: formula Taken all this Zero's (10, 20, 30,0.89, 0.79)>


=SUMPRODUCT(SUBTOTAL(3,OFFSET(C2:C1677,ROW(C2:C1677)-MIN(ROW(C2:C1677)),,1)),ISNUMBER(SEARCH("0",C2:C1677))+0)
 
Upvote 0
Try this

[FONT=&quot]=SUMPRODUCT([/FONT][FONT=&quot]SUBTOTAL(3,OFFSET($C$2,ROW(C2:C1677)-ROW($C$2),,1))*(C2:C1677=0)[/FONT][FONT=&quot])[/FONT]
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

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