hp75150

New Member
Joined
Sep 10, 2014
Messages
31
Office Version
  1. 365
Platform
  1. Windows
I have the sample sheet below. I need to count how many y's and n's there are for each ad week per store. I tried a few different countifs with no luck. Any help is appreciated.


1ABC
2Ad WeekStore #Y/N
31910205y
41910205n
51910205y
61915205n
71915205y
81915205n
91910215n
101910215y
111910215n
121915215n
131915215y
141915215n
<colgroup><col width="22" style="width: 17pt; mso-width-source: userset; mso-width-alt: 804;"> <col width="73" style="width: 55pt; mso-width-source: userset; mso-width-alt: 2669;"> <col width="64" style="width: 48pt;" span="2"> <tbody> </tbody>
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hey,

In cell D2 type "Yes" and cell E2 type "No" then add the following 2 formulas:

Try in cell D3:
=SUMPRODUCT(($A3=$A$3:$A$14)*($B3=$B$3:$B$14)*($C$3:$C$14="y"))

And then in E3:
=SUMPRODUCT(($A3=$A$3:$A$14)*($B3=$B$3:$B$14)*($C$3:$C$14="n"))
 
Last edited:
Upvote 0
How about


Excel 2013/2016
ABCDEF
1Ad WeekStore #Y/N1910205
21910205yy2
31910205nn1
41910205y
51915205n
61915205y
71915205n
81910215n
91910215y
101910215n
111915215n
121915215y
131915215n
Scratch
Cell Formulas
RangeFormula
E2=COUNTIFS($A$2:$A$13,$E$1,$B$2:$B$13,$F$1,$C$2:$C$13,$D2)
 
Upvote 0
Pivot Table?


Counting of Y/N​
Y/N​
Ad Week​
Store #​
n​
y​
Grand Total​
1910​
205​
1​
2​
3​
1910​
215​
2​
1​
3​
1910 Total​
3​
3​
6​
1915​
205​
2​
1​
3​
1915​
215​
2​
1​
3​
1915 Total​
4​
2​
6​
Grand Total​
7​
5​
12​

<tbody>
</tbody>


M.
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,835
Members
449,051
Latest member
excelquestion515

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