I am trying to get a count of things matching 3 criteria in excel. First, the date has to be within the first quarter of the year, then if the column has a "Yes" in it, third count the value from the last column only once.
Here is the formula I used to get the first 2 criteria but I couldn't figure our for the life of me to count the employee only once.
=COUNTIFS(A2:A9,">=" & DATE(2020,1,1),A2:A9,"<=" & DATE(2020,3,31),B2:B9,"Yes")
table, th, td {
border: 1px solid black;
text-align: center;
}
<table style="width:100%">
<tr>
<th>Date of review</th>
<th>Feedback Discussed with 'ee</th>
<th>Name of 'ee</th>
<th># of 'ees who received feedback</th>
</tr>
<tr>
<td>1/1/20</td>
<td>Yes</td>
<td>Tom</td>
<td>5</td>
</tr>
<tr>
<td>1/2/20</td>
<td>Yes</td>
<td>Tom</td>
</tr>
<tr>
<td>1/15/20</td>
<td>No</td>
<td>Bob</td>
</tr>
<tr>
<td>1/15/20</td>
<td>Yes</td>
<td>Greg</td>
</tr>
<tr>
<td>1/21/20</td>
<td>Yes</td>
<td>Sally</td>
</tr>
<tr>
<td>1/25/20</td>
<td>Yes</td>
<td>Sally</td>
</tr>
<tr>
<td>3/1/20</td>
<td>Np</td>
<td>Sally</td>
</tr>
<tr>
<td>4/1/20</td>
<td>Yes</td>
<td>Bob</td>
</tr>
</table>