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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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)))
 
Upvote 0
Aladan, ive entered the formula and my result returned 0, which is incorrect.
 
Upvote 0
After entering the formula, say into C1, Do I then press Cntr+Shift+Enter??
 
Upvote 0
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?
 
Upvote 0
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...
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,044
Members
449,063
Latest member
ak94

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