Count if 2 things

Ducttape19

New Member
Joined
Aug 28, 2002
Messages
46
Hi all, here is the problem that I am having

I have a Raw Data page when column A is a team leaders name, column B is a date and column C,D,E,F... are text values.

On a "summary page" I have the team leaders name in cell B1 and the date I want in cell D1. From A4 to A10 are the criteria that I want from the text fields. Basically what I am looking for is a COUNTIF DATE,TEAM LEAD and TEXT value are a MATCH and give me the number of times it is a match.

If anyone can help me out I would apreciate it. Thanks
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Try:


=SUMPRODUCT((Sheet1!$A$2:$A$10=$B$1)*(Sheet1!$B$2:$B$10=$D$1)*(Sheet1!$C$2:$F$10=$A4))

where A2:F10 houses the table on your Raw data sheet and Sheet1 is the name of your Raw Data sheet.

Adjust ranges and Sheet name to suit.

Copy down




Edit...corrected references on current sheet.
 
Upvote 0

Forum statistics

Threads
1,213,534
Messages
6,114,186
Members
448,554
Latest member
Gleisner2

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