Sumproduct formula problems - help!

dkballs

New Member
Joined
May 3, 2011
Messages
20
Please help.

I have a workbook that i am having trouble with. In the first sheet (called "control sheet") i have input some radio buttons that when pressed change the value of a cell to reflect changes in dates. for example Period 1 button date range of B17 would equal 17/04/2011 and C17 would equal 14/05/2011 (end of the period). There are 13 buttons each changing the value of B17 and C17 to reflect the start end of each period.

I then have a second sheet called "bakery". In the bakery sheet there are employee names in column A and an associated date in column B.

Essentially i need a cell in "bakery" to tell me how many dates there are inbetween the start date and end date of each period (displayed on "control sheet").

I have tried the following formual but it doesn't work...

=SUMPRODUCT((B6:B44>'Control Sheet'!B17)*(B6:B44<'Control Sheet'!C17))

Any ideas greatly appreciated...
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Please clarify specifically your comment
"I have tried the following formual but it doesn't work..."

The formula looks like it should yield the count.

You could try Countif
=COUNTIF(B6:B44,">"&'Control Sheet'!B17)-COUNTIF(B6:B44,">"&'Control Sheet'!C17)

or
=SUMPRODUCT(--(B6:B44>'Control Sheet'!B17),--(B6:B44<'Control Sheet'!C17))

Excel's Evaluate Formula may help you isolate the problem.
 
Upvote 0

Forum statistics

Threads
1,224,607
Messages
6,179,871
Members
452,948
Latest member
UsmanAli786

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