Countifs function with find cell value in different rows

nautyraj1

New Member
Joined
Nov 4, 2017
Messages
3
Hi,

Please help me to solve this.

1ABCDEF
2Code
31111AAAAB
41112ABAAA
51113ABBAA
61114ABAAB
71115AABAA
8
91111*
101113
111112
121115
131111
141114

<colgroup><col width="64" span="7" style="width:48pt"> </colgroup><tbody>
</tbody>

I want to count how many cells contains "A" using countif function and change the number of count according to Cell value of A9 to A14. Means if cell A9 is 1111 then countif function will apply on B3 to F3 and if Cell value will change then it automatically apply countif function on the same row with same "Code".
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
A
B
C
D
E
F
1
Code​
2
1111​
AAAAB
3
1112​
ABAAA
4
1113​
ABBAA
5
1114​
ABAAB
6
1115​
AABAA
7
8
1111​
4​
9
1113​
3​
10
1112​
4​
11
1115​
4​
12
1111​
4​
13
1114​
3​

<tbody>
</tbody>


B8
=SUMPRODUCT(($A$2:$A$6=$A8)*($B$2:$F$6=$B$2)) copy down
 
Upvote 0

Forum statistics

Threads
1,216,730
Messages
6,132,387
Members
449,725
Latest member
Enero1

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