count cells in matrix

AnnieD

New Member
Joined
Sep 5, 2013
Messages
8
Dear all
I'm looking for a formula to count the number of cells which contain a certain criteria, and only when it match the criteria for a certain row.
I have the table below, and would like to count the following:
How many cells contain fe.:
DR an have T5 in a row = answer = 1
RW and have T15 in a row = answer = 10

Thanks in advance for your help!!


[TABLE="width: 512"]
<colgroup><col width="64" style="width:48pt"> <col width="64" style="width:48pt"> <col width="64" span="6" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"][/TD]
[TD="class: xl72, width: 64"]A[/TD]
[TD="class: xl72, width: 64"]B[/TD]
[TD="class: xl72, width: 64"]C[/TD]
[TD="class: xl72, width: 64"]D[/TD]
[TD="class: xl72, width: 64"]E[/TD]
[TD="class: xl72, width: 64"]F[/TD]
[TD="class: xl72, width: 64"]G[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="class: xl66, align: center"]Tasks[/TD]
[TD="class: xl71"]AM[/TD]
[TD="class: xl71"]PM[/TD]
[TD="class: xl71"]AM[/TD]
[TD="class: xl71"]PM[/TD]
[TD="class: xl71"]AM[/TD]
[TD="class: xl71"]PM[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="class: xl67"]T15[/TD]
[TD="class: xl68"] [/TD]
[TD="class: xl69"] [/TD]
[TD="class: xl68"]RW[/TD]
[TD="class: xl69"]RW[/TD]
[TD="class: xl68"]RW[/TD]
[TD="class: xl69"]RW[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="class: xl67"]T15[/TD]
[TD="class: xl68"] [/TD]
[TD="class: xl69"] [/TD]
[TD="class: xl68"]RW[/TD]
[TD="class: xl69"]RW[/TD]
[TD="class: xl68"]RZ[/TD]
[TD="class: xl69"]RZ[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD="class: xl67"]T15[/TD]
[TD="class: xl69"] [/TD]
[TD="class: xl69"] [/TD]
[TD="class: xl68"]RW[/TD]
[TD="class: xl69"]RW[/TD]
[TD="class: xl68"]RW[/TD]
[TD="class: xl69"]RW[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="class: xl67"]T11[/TD]
[TD="class: xl69"]DR[/TD]
[TD="class: xl69"]DR[/TD]
[TD="class: xl69"] [/TD]
[TD="class: xl69"] [/TD]
[TD="class: xl70"] [/TD]
[TD="class: xl70"] [/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="class: xl67"]T18[/TD]
[TD="class: xl69"] [/TD]
[TD="class: xl69"] [/TD]
[TD="class: xl69"]DR[/TD]
[TD="class: xl69"] [/TD]
[TD="class: xl70"] [/TD]
[TD="class: xl70"] [/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="class: xl67"]T5[/TD]
[TD="class: xl69"] [/TD]
[TD="class: xl69"] [/TD]
[TD="class: xl69"] [/TD]
[TD="class: xl69"]DR[/TD]
[TD="class: xl70"] [/TD]
[TD="class: xl70"] [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Maybe

Excel 2013/2016
ABCDEFGHIJK
1TasksAMPMAMPMAMPMT15
2T15RWRWRWRWRW10
3T15RWRWRZRZ
4T15RWRWRWRW
5T11DRDR
6T18DR
7T5DR
Ex
Cell Formulas
RangeFormula
K2=SUMPRODUCT((A2:A7=J1)*(B2:G7=J2))
 
Upvote 0

Forum statistics

Threads
1,224,829
Messages
6,181,222
Members
453,024
Latest member
Wingit77

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