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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

NBVC

Well-known Member
Joined
Aug 31, 2005
Messages
5,828
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.
 

Forum statistics

Threads
1,141,915
Messages
5,709,320
Members
421,628
Latest member
Big Boss

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
Top