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
ColumnBColumnC
SilverSouth-23
SilverSouth-23
SilverSouth-23
SilverSouth-20
SilverSouth-23
SilverSouth-13
SilverSouth-23
SilverSouth-20
SilverSouth-24
PlatinumSouth-13
SilverSouth-23
SilverSouth-20
SilverSouth-23
PlatinumSouth-13
SilverSouth-20

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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
Im glad to help you, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,475
Messages
6,125,028
Members
449,205
Latest member
Eggy66

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