How to sumproduct with 2 drivers

GoKu

Board Regular
Joined
Dec 18, 2007
Messages
244
Excel Workbook
ABCDEFGHIJ
9License No:Date Tested:Days left:Surname:Initials:Pf Number:Shaft:Section:Battery Loco:Diesel Loco:
1049-May-07-49TheletsaneTSA3867344North3T66
11511-Jun-08350LekhelebanaM JM3090971WestEng66
12613-Jun-08352DavidMZ7588333WestJongingozi*6
13713-Jun-08352MabusetsaLZ0563550WestJongingozi*6
Data


Hi All, I need to count the number of sixes in 2 collums (I & J) over certain periods of time.

Ive tried the following formula but with no luck:
Code:
=SUMPRODUCT(--(Data!B$10:B$60000>=Periods!A5),--(Data!B$10:B$60000<=Periods!B5),--(Data!I$10:J$60000=6))

Any advice please.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
Control+shift+enter, not just enter...
Code:
=SUM(
    IF(Data!B$10:B$60000>=Periods!A5,
    IF(Data!B$10:B$60000<=Periods!B5,
      (Data!I$10:J$60000=6)+0)))
 

GoKu

Board Regular
Joined
Dec 18, 2007
Messages
244
Aladan, ive entered the formula and my result returned 0, which is incorrect.
 

GoKu

Board Regular
Joined
Dec 18, 2007
Messages
244

ADVERTISEMENT

After entering the formula, say into C1, Do I then press Cntr+Shift+Enter??
 

GoKu

Board Regular
Joined
Dec 18, 2007
Messages
244
AHA, yes its working, thank you very much.
This data will change every day through the month, do I need to manually trigger the formula everyday with CTRL+SHIFT+Enter or is it only on the 1st time?
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
AHA, yes its working, thank you very much.
This data will change every day through the month, do I need to manually trigger the formula everyday with CTRL+SHIFT+Enter or is it only on the 1st time?

Only when you need to adjust the ranges...
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,852
Messages
5,833,979
Members
430,249
Latest member
Muka

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