# help with match and count in sheet

#### maryworthington

##### New Member
Hello,

Have a sheet that I'm trying to do some calculations but failing miserably at it
 A B 1 Acme 6/16/2016 2 Bat 6/20/2016 3 Acme 6/17/2016 4 Acme 6/26/2016 5 Charlie 6/25/2016 6 Bat 6/11/2016

<tbody>
</tbody>

Created another sheet with just column A without the duplicate names
trying to count each instance of A with date =>6/17/2016
 A B 1 Acme 2 2 Bat 1 3 Charlie 1

<tbody>
</tbody>

=COUNTIF(Sheet1!B:B,">=6/17/2016") something along that but not sure how to do the search/match based on column A?

Thanks

Mary

### Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

#### Weazel

##### Well-known Member
Because you're using 2 criteria you'd need to use the countifs function if you have excel 2007 or newer.

If not than you'd want to use the sumproduct.

Excel 2012
ABCDEF
1Acme6/16/2016Acme22
2Bat6/20/2016Bat11
3Acme6/17/2016Charlie11
4Acme6/26/2016
5Charlie6/25/2016
6Bat6/11/2016

</tbody>
Sheet1

Worksheet Formulas
CellFormula
E1=COUNTIFS(Sheet1!\$A\$1:\$A\$6,D1,Sheet1!\$B\$1:\$B\$6,">=6/17/2016")
F1=SUMPRODUCT((\$A\$1:\$A\$6=D1)*(\$B\$1:\$B\$6>="6/17/2016"+0))

</tbody>

<tbody>
</tbody>

#### maryworthington

##### New Member
Thanks Weazel
The COUNTIFS works perfectly for this!

Replies
2
Views
65
Replies
5
Views
114
Replies
12
Views
138
Replies
4
Views
91
Replies
17
Views
898

1,127,356
Messages
5,624,219
Members
416,017
Latest member
moritz210

### 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.

### Which adblocker are you using?

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

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