# SumProduct - based on more than one criteria

#### m17347047711116

##### New Member
O.k

Heres what i need to do
Sheet 1 Master Schedule
[Name][Department][D"Start Time"]

Sheet 2
[AA "StartBin"] [#of started at this time]

Works great using SumProduct Function but it counts all the people who started at a specified time.

"=SUMPRODUCT((\$D\$6:\$D\$12>=AA5)*(\$D\$6:\$D\$12<AA6))"

D = my Start Time array
AA= my Start Time Bin

The problem is that i do not want to sumproduct for all start times only for start times that meet the Department criteria

### Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
On 2002-08-30 11:59, m17347047711116 wrote:
O.k

Heres what i need to do
Sheet 1 Master Schedule
[Name][Department][D"Start Time"]

Sheet 2
[AA "StartBin"] [#of started at this time]

Works great using SumProduct Function but it counts all the people who started at a specified time.

"=SUMPRODUCT((\$D\$6:\$D\$12>=AA5)*(\$D\$6:\$D\$12<AA6))"

D = my Start Time array
AA= my Start Time Bin

The problem is that i do not want to sumproduct for all start times only for start times that meet the Department criteria

Add the department condition to the formula:

=SUMPRODUCT((\$D\$6:\$D\$12>=AA5)*(\$D\$6:\$D\$12<AA6)*(DepartmentRange=DepartmentCell))

where DepartmentCell houses a department of interest.

Replies
1
Views
404
Replies
7
Views
604
Replies
17
Views
611
Replies
12
Views
767
Replies
6
Views
482

1,218,651
Messages
6,143,716
Members
450,502
Latest member
sakaria_123

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

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