SumProduct - based on more than one criteria

m17347047711116

New Member
Joined
Aug 28, 2002
Messages
7
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

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
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.
 

Forum statistics

Threads
1,148,147
Messages
5,745,055
Members
423,917
Latest member
Frank1931

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