COUNTIFS Range question

tabbytomo

New Member
Joined
Jun 23, 2016
Messages
18
Hi, I'm wanting to count the number of 'Yes' values in columns B and C, but only count the 'Yes' values after the last entry in column D for the associated location.

In the attached example, for Kettering the count should result in 1, as there is only 1 'Yes' in columns B and C if we count after the last entry in column D.

I've wracking my brains trying to understand how to express this.

Thank you.
 

Attachments

  • Example.jpg
    Example.jpg
    28.7 KB · Views: 19

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Check if the following formula is what you need.
In column F I manually put the names, in column G I put the formula.

Dante Amor
ABCDEFG
1Red Bag2ndStock
2KetYesKet3
3TowYesYesTow1
4NorNor2
5Ket10
6TowYes
7KetYesYes
8KetYes
9Tow5
10Nor3
11NorYes
12TowYes
13NorYes
14
15
Hoja5
Cell Formulas
RangeFormula
G2:G4G2=IFERROR(SUM(($A$2:$A$15=F2)*(($B$2:$B$15="Yes")+($C$2:$C$15="Yes"))*(ROW($A$2:$A$15)>IF(MAX(($A$2:$A$15=F2)*($D$2:$D$15<>"")*ROW($D$2:$D$15))>0,MAX(($A$2:$A$15=F2)*($D$2:$D$15<>"")*ROW($D$2:$D$15)),NA()))),0)
Press CTRL+SHIFT+ENTER to enter array formulas.


--------------
Let me know the result and I'll get back to you as soon as I can.
Cordially
Dante Amor
--------------​
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,138
Members
453,021
Latest member
Justyna P

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