countif in filter mod

mohammad1990

New Member
Joined
Mar 2, 2023
Messages
19
Office Version
  1. 2016
Platform
  1. Windows
hi

I have a table and want to use count-if in filter mod i searched and find this formula

=SUMPRODUCT(SUBTOTAL(3,OFFSET(B3:B10,ROW(B3:B10)-ROW(B3),0,1)),--(B3:B10=D2))

it works well but only in one column
when using a range( B3:C10) instead of B3:B10 it doesn't work And gives #Value! error
pleas look the attached file
 

Attachments

  • 2.jpg
    2.jpg
    232.4 KB · Views: 7

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
I think @Eric W may have solved this type of problem in This thread?
Book1
ABCD
1dataCriteria
2DateProduct 1Product 2B
6March 2, 2023AB
7March 2, 2023BB
8March 2, 2023AA
9March 2, 2023AA
10March 2, 2023BB
115
Sheet1
Cell Formulas
RangeFormula
D11D11=SUM((B3:C10=D2)*(SUBTOTAL(103,OFFSET(B3,ROW(B3:C10)-ROW(B3),COLUMN(B3:C10)-COLUMN(B3)))))
 
Upvote 0
Solution
I think @Eric W may have solved this type of problem in This thread?
Book1
ABCD
1dataCriteria
2DateProduct 1Product 2B
6March 2, 2023AB
7March 2, 2023BB
8March 2, 2023AA
9March 2, 2023AA
10March 2, 2023BB
115
Sheet1
Cell Formulas
RangeFormula
D11D11=SUM((B3:C10=D2)*(SUBTOTAL(103,OFFSET(B3,ROW(B3:C10)-ROW(B3),COLUMN(B3:C10)-COLUMN(B3)))))
Thanks a lot
But do you know why I get #Value! Error when use your solution?
 

Attachments

  • 3.jpg
    3.jpg
    242 KB · Views: 4
Upvote 0
Glad you got it working, and thanks for the feedback 👍
 
Upvote 0

Forum statistics

Threads
1,215,125
Messages
6,123,193
Members
449,090
Latest member
bes000

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