Countif with weeknum problem

SteveNL86

Board Regular
Joined
Nov 11, 2014
Messages
109
Office Version
  1. 2016
Platform
  1. Windows
Dear reader,

I have a sheet with data similar to this. I'm using a countif formula to count how many 'Yes' cells I have per day, but I want to count how many unique 'Yes' names I have for each weeknum. I'm having trouble doing a countif with a weeknum criteria.

A - Date (=Date())B - Weeknum (=Weeknum())C - Yes/No per Week Total =?D - BobE - MaxF - RoseG - AnnaH - NickI - BenJ - Marie
15-1-202233YesYesNoNoNoYesNo
16-1-202246NoNoNoNoNoNoNo
17-1-202246YesNoNoNoNoNoNo
18-1-202246NoNoYesNoNoNoNo
19-1-202246NoNoNoNoNoNoNo
20-1-202246NoYesNoYesYesNoNo
21-1-202246NoNoNoNoNoYesNo
22-1-202246NoNoNoNoNoNoNo
23-1-202251NoNoNoNoNoNoYes

Any help is much appreciated.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hi,

This should work:

Book3.xlsx
ABCDEFGHIJ
1A - Date (=Date())B - Weeknum (=Weeknum())C - Yes/No per Week Total =?D - BobE - MaxF - RoseG - AnnaH - NickI - BenJ - Marie
215-1-202233YesYesNoNoNoYesNo
316-1-202246NoNoNoNoNoNoNo
417-1-202246YesNoNoNoNoNoNo
518-1-202246NoNoYesNoNoNoNo
619-1-202246NoNoNoNoNoNoNo
720-1-202246NoYesNoYesYesNoNo
821-1-202246NoNoNoNoNoYesNo
922-1-202246NoNoNoNoNoNoNo
1023-1-202251NoNoNoNoNoNoYes
Sheet1073
Cell Formulas
RangeFormula
C2:C10C2=SUMPRODUCT((B$2:B$10=B2)*(D$2:J$10="Yes"))
 
Upvote 0
Solution
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,754
Messages
6,126,679
Members
449,328
Latest member
easperhe29

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