Count cells with a specific value based on multiple conditions

dax2000

New Member
Joined
Sep 13, 2016
Messages
3
Hi,


I'm trying to count cells with a specific value based on multiple conditions on an excel sheet using SUM / COUNTIFS functions. I want to avoid writing scripts.

ColorJan-16Feb-16Mar-16Apr-16May-16Jun-16Jul-16Aug-16Sep-16Oct-16Nov-16Dec-16
RedItem 1Item 2Item 2Item 2Item 1Item 3Item 3Item 1Item 1Item 3Item 2Item 2
GreenItem 3Item 3Item 3Item 3Item 1Item 2Item 2Item 1Item 2Item 1Item 1Item 1
BlueItem 2Item 1Item 3Item 1Item 2Item 3Item 3Item 2Item 3Item 2Item 3Item 2
BlackItem 3Item 2Item 3Item 2Item 3Item 1Item 3Item 1Item 3Item 1Item 2Item 3
RedItem 1Item 3Item 2Item 3Item 1Item 2Item 2Item 2Item 1Item 2Item 3Item 1
BlueItem 1Item 1Item 2Item 1Item 2Item 1Item 3Item 2Item 2Item 3Item 1Item 3
BlackItem 2Item 3Item 3Item 2Item 3Item 2Item 1Item 2Item 1Item 2Item 1Item 1

<tbody>
</tbody>




What I'm trying to do is to get how many ITEM 1 with red color are on Jan-16 / Feb-16 etc. Expect results should be 2.




Thanks,
John
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
maybe...

Excel 2010
ABCDEFGHIJKLM
1Color16-Jan16-Feb16-Mar16-Apr16-May16-Jun16-Jul16-Aug16-Sep16-Oct16-Nov16-Dec
2RedItem 1Item 2Item 2Item 2Item 1Item 3Item 3Item 1Item 1Item 3Item 2Item 2
3GreenItem 3Item 3Item 3Item 3Item 1Item 2Item 2Item 1Item 2Item 1Item 1Item 1
4BlueItem 2Item 1Item 3Item 1Item 2Item 3Item 3Item 2Item 3Item 2Item 3Item 2
5BlackItem 3Item 2Item 3Item 2Item 3Item 1Item 3Item 1Item 3Item 1Item 2Item 3
6RedItem 1Item 3Item 2Item 3Item 1Item 2Item 2Item 2Item 1Item 2Item 3Item 1
7BlueItem 1Item 1Item 2Item 1Item 2Item 1Item 3Item 2Item 2Item 3Item 1Item 3
8BlackItem 2Item 3Item 3Item 2Item 3Item 2Item 1Item 2Item 1Item 2Item 1Item 1
9
10ColorItemStartEnd
11RedItem 116-Jan16-Feb2

<tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
F11=SUMPRODUCT((A2:A8=A11)*(B2:M8=B11)*(B1:M1>=C11)*(B1:M1<=D11))

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,394
Messages
6,119,262
Members
448,880
Latest member
aveternik

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