SUMPRODUCT Help

Alex O

Active Member
Joined
Mar 16, 2009
Messages
345
Office Version
  1. 365
Platform
  1. Windows
Can anyone see why my sumproduct formula (T4) is returning 0? This seems like a simple enough formula!!

Thanks

<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Calibri,Arial; FONT-SIZE: 11pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 61px"><COL style="WIDTH: 63px"><COL style="WIDTH: 30px"><COL style="WIDTH: 75px"><COL style="WIDTH: 54px"><COL style="WIDTH: 63px"><COL style="WIDTH: 70px"><COL style="WIDTH: 26px"><COL style="WIDTH: 68px"><COL style="WIDTH: 72px"><COL style="WIDTH: 107px"><COL style="WIDTH: 73px"><COL style="WIDTH: 84px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD></TD><TD>B</TD><TD>C</TD><TD>D</TD><TD>E</TD><TD>F</TD><TD>I</TD><TD>J</TD><TD>N</TD><TD>O</TD><TD>Q</TD><TD>R</TD><TD>S</TD><TD>T</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">3</TD><TD style="TEXT-ALIGN: left">274840</TD><TD style="TEXT-ALIGN: left">0</TD><TD style="TEXT-ALIGN: left">0</TD><TD style="TEXT-ALIGN: left">12/15/2009</TD><TD style="TEXT-ALIGN: left">520</TD><TD style="TEXT-ALIGN: left">0</TD><TD style="TEXT-ALIGN: left">10002182</TD><TD></TD><TD style="TEXT-ALIGN: left">100</TD><TD style="TEXT-ALIGN: left">20,301</TD><TD style="TEXT-ALIGN: left; FONT-SIZE: 10pt">lookup references</TD><TD style="FONT-SIZE: 10pt"></TD><TD style="FONT-SIZE: 10pt"></TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">4</TD><TD style="TEXT-ALIGN: left">274884</TD><TD style="TEXT-ALIGN: left">821.9</TD><TD style="TEXT-ALIGN: left">0</TD><TD style="TEXT-ALIGN: left">12/15/2009</TD><TD style="TEXT-ALIGN: left">414</TD><TD style="TEXT-ALIGN: left">821.9</TD><TD style="TEXT-ALIGN: left">71373</TD><TD></TD><TD style="TEXT-ALIGN: left">101</TD><TD style="TEXT-ALIGN: left">168,234</TD><TD style="TEXT-ALIGN: left; FONT-SIZE: 10pt">1/1/2009</TD><TD style="TEXT-ALIGN: left; FONT-SIZE: 10pt">12/1/2009</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 10pt">0</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">5</TD><TD style="TEXT-ALIGN: left">275078</TD><TD style="TEXT-ALIGN: left">604.23</TD><TD style="TEXT-ALIGN: left">0</TD><TD style="TEXT-ALIGN: left">12/15/2009</TD><TD style="TEXT-ALIGN: left">404</TD><TD style="TEXT-ALIGN: left">604.23</TD><TD style="TEXT-ALIGN: left">77982</TD><TD></TD><TD style="TEXT-ALIGN: left">102</TD><TD style="TEXT-ALIGN: left">26,992</TD><TD style="TEXT-ALIGN: left; FONT-SIZE: 10pt">1/1/2010</TD><TD style="TEXT-ALIGN: left; FONT-SIZE: 10pt">12/31/2010</TD><TD style="TEXT-ALIGN: center; FONT-SIZE: 10pt">0</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">6</TD><TD style="TEXT-ALIGN: left">275044</TD><TD style="TEXT-ALIGN: left">624.04</TD><TD style="TEXT-ALIGN: left">0</TD><TD style="TEXT-ALIGN: left">12/15/2009</TD><TD style="TEXT-ALIGN: left">404</TD><TD style="TEXT-ALIGN: left">624.04</TD><TD style="TEXT-ALIGN: left">70795</TD><TD></TD><TD style="TEXT-ALIGN: left">103</TD><TD style="TEXT-ALIGN: left">4,544</TD><TD style="TEXT-ALIGN: left; FONT-SIZE: 10pt">1/1/2011</TD><TD style="TEXT-ALIGN: left; FONT-SIZE: 10pt">12/31/2011</TD><TD style="FONT-SIZE: 10pt"></TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">7</TD><TD style="TEXT-ALIGN: left">275324</TD><TD style="TEXT-ALIGN: left">467.36</TD><TD style="TEXT-ALIGN: left">0</TD><TD style="TEXT-ALIGN: left">12/15/2009</TD><TD style="TEXT-ALIGN: left">404</TD><TD style="TEXT-ALIGN: left">467.36</TD><TD style="TEXT-ALIGN: left">67504</TD><TD></TD><TD style="TEXT-ALIGN: left">104</TD><TD style="TEXT-ALIGN: left">76,091</TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">8</TD><TD style="TEXT-ALIGN: left">274908</TD><TD style="TEXT-ALIGN: left">780.86</TD><TD style="TEXT-ALIGN: left">0</TD><TD style="TEXT-ALIGN: left">12/15/2009</TD><TD style="TEXT-ALIGN: left">414</TD><TD style="TEXT-ALIGN: left">780.86</TD><TD style="TEXT-ALIGN: left">64381</TD><TD></TD><TD style="TEXT-ALIGN: left">105</TD><TD style="TEXT-ALIGN: left">1,047</TD><TD></TD><TD></TD><TD></TD></TR></TBODY></TABLE>
<TABLE style="BORDER-BOTTOM-STYLE: groove; BORDER-BOTTOM-COLOR: #00ff00; BACKGROUND-COLOR: #fffcf9; BORDER-TOP-COLOR: #00ff00; BORDER-LEFT-STYLE: groove; FONT-FAMILY: Arial; BORDER-TOP-STYLE: groove; COLOR: #000000; BORDER-RIGHT-COLOR: #00ff00; BORDER-RIGHT-STYLE: groove; FONT-SIZE: 10pt; BORDER-LEFT-COLOR: #00ff00"><TBODY><TR><TD>Spreadsheet Formulas</TD></TR><TR><TD><TABLE style="FONT-FAMILY: Arial; FONT-SIZE: 9pt" border=1 cellSpacing=0 cellPadding=2><TBODY><TR style="BACKGROUND-COLOR: #cacaca; FONT-SIZE: 10pt"><TD>Cell</TD><TD>Formula</TD></TR><TR><TD>Q3</TD><TD>=IF(O3="","",SUMIF($F$3:$F$8382,O3,$I$3:$I$8382))</TD></TR><TR><TD>Q4</TD><TD>=IF(O4="","",SUMIF($F$3:$F$8382,O4,$I$3:$I$8382))</TD></TR><TR><TD>T4</TD><TD>{=SUMPRODUCT(($E$3:$E$8382>=R4)*($E$3:$E$8382<=S4)*($C$3:$C$8382))}</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Nevermind....I had the date range set incorrectly!
 
Upvote 0
Can anyone see why my sumproduct formula (T4) is returning 0? This seems like a simple enough formula!!

Thanks

<TABLE style="PADDING-RIGHT: 2pt; PADDING-LEFT: 2pt; FONT-SIZE: 11pt; FONT-FAMILY: Calibri,Arial; BACKGROUND-COLOR: #ffffff" cellSpacing=0 cellPadding=0 border=1><COLGROUP><COL style="FONT-WEIGHT: bold; WIDTH: 30px"><COL style="WIDTH: 61px"><COL style="WIDTH: 63px"><COL style="WIDTH: 30px"><COL style="WIDTH: 75px"><COL style="WIDTH: 54px"><COL style="WIDTH: 63px"><COL style="WIDTH: 70px"><COL style="WIDTH: 26px"><COL style="WIDTH: 68px"><COL style="WIDTH: 72px"><COL style="WIDTH: 107px"><COL style="WIDTH: 73px"><COL style="WIDTH: 84px"></COLGROUP><TBODY><TR style="FONT-WEIGHT: bold; FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center"><TD></TD><TD>B</TD><TD>C</TD><TD>D</TD><TD>E</TD><TD>F</TD><TD>I</TD><TD>J</TD><TD>N</TD><TD>O</TD><TD>Q</TD><TD>R</TD><TD>S</TD><TD>T</TD></TR><TR style="HEIGHT: 18px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">3</TD><TD style="TEXT-ALIGN: left">274840</TD><TD style="TEXT-ALIGN: left">0</TD><TD style="TEXT-ALIGN: left">0</TD><TD style="TEXT-ALIGN: left">12/15/2009</TD><TD style="TEXT-ALIGN: left">520</TD><TD style="TEXT-ALIGN: left">0</TD><TD style="TEXT-ALIGN: left">10002182</TD><TD></TD><TD style="TEXT-ALIGN: left">100</TD><TD style="TEXT-ALIGN: left">20,301</TD><TD style="FONT-SIZE: 10pt; TEXT-ALIGN: left">lookup references</TD><TD style="FONT-SIZE: 10pt"></TD><TD style="FONT-SIZE: 10pt"></TD></TR><TR style="HEIGHT: 18px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">4</TD><TD style="TEXT-ALIGN: left">274884</TD><TD style="TEXT-ALIGN: left">821.9</TD><TD style="TEXT-ALIGN: left">0</TD><TD style="TEXT-ALIGN: left">12/15/2009</TD><TD style="TEXT-ALIGN: left">414</TD><TD style="TEXT-ALIGN: left">821.9</TD><TD style="TEXT-ALIGN: left">71373</TD><TD></TD><TD style="TEXT-ALIGN: left">101</TD><TD style="TEXT-ALIGN: left">168,234</TD><TD style="FONT-SIZE: 10pt; TEXT-ALIGN: left">1/1/2009</TD><TD style="FONT-SIZE: 10pt; TEXT-ALIGN: left">12/1/2009</TD><TD style="FONT-SIZE: 10pt; TEXT-ALIGN: center">0</TD></TR><TR style="HEIGHT: 18px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">5</TD><TD style="TEXT-ALIGN: left">275078</TD><TD style="TEXT-ALIGN: left">604.23</TD><TD style="TEXT-ALIGN: left">0</TD><TD style="TEXT-ALIGN: left">12/15/2009</TD><TD style="TEXT-ALIGN: left">404</TD><TD style="TEXT-ALIGN: left">604.23</TD><TD style="TEXT-ALIGN: left">77982</TD><TD></TD><TD style="TEXT-ALIGN: left">102</TD><TD style="TEXT-ALIGN: left">26,992</TD><TD style="FONT-SIZE: 10pt; TEXT-ALIGN: left">1/1/2010</TD><TD style="FONT-SIZE: 10pt; TEXT-ALIGN: left">12/31/2010</TD><TD style="FONT-SIZE: 10pt; TEXT-ALIGN: center">0</TD></TR><TR style="HEIGHT: 18px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">6</TD><TD style="TEXT-ALIGN: left">275044</TD><TD style="TEXT-ALIGN: left">624.04</TD><TD style="TEXT-ALIGN: left">0</TD><TD style="TEXT-ALIGN: left">12/15/2009</TD><TD style="TEXT-ALIGN: left">404</TD><TD style="TEXT-ALIGN: left">624.04</TD><TD style="TEXT-ALIGN: left">70795</TD><TD></TD><TD style="TEXT-ALIGN: left">103</TD><TD style="TEXT-ALIGN: left">4,544</TD><TD style="FONT-SIZE: 10pt; TEXT-ALIGN: left">1/1/2011</TD><TD style="FONT-SIZE: 10pt; TEXT-ALIGN: left">12/31/2011</TD><TD style="FONT-SIZE: 10pt"></TD></TR><TR style="HEIGHT: 18px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">7</TD><TD style="TEXT-ALIGN: left">275324</TD><TD style="TEXT-ALIGN: left">467.36</TD><TD style="TEXT-ALIGN: left">0</TD><TD style="TEXT-ALIGN: left">12/15/2009</TD><TD style="TEXT-ALIGN: left">404</TD><TD style="TEXT-ALIGN: left">467.36</TD><TD style="TEXT-ALIGN: left">67504</TD><TD></TD><TD style="TEXT-ALIGN: left">104</TD><TD style="TEXT-ALIGN: left">76,091</TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 18px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">8</TD><TD style="TEXT-ALIGN: left">274908</TD><TD style="TEXT-ALIGN: left">780.86</TD><TD style="TEXT-ALIGN: left">0</TD><TD style="TEXT-ALIGN: left">12/15/2009</TD><TD style="TEXT-ALIGN: left">414</TD><TD style="TEXT-ALIGN: left">780.86</TD><TD style="TEXT-ALIGN: left">64381</TD><TD></TD><TD style="TEXT-ALIGN: left">105</TD><TD style="TEXT-ALIGN: left">1,047</TD><TD></TD><TD></TD><TD></TD></TR></TBODY></TABLE>
<TABLE style="FONT-SIZE: 10pt; BORDER-LEFT-COLOR: #00ff00; BORDER-BOTTOM-COLOR: #00ff00; COLOR: #000000; BORDER-TOP-STYLE: groove; BORDER-TOP-COLOR: #00ff00; FONT-FAMILY: Arial; BORDER-RIGHT-STYLE: groove; BORDER-LEFT-STYLE: groove; BACKGROUND-COLOR: #fffcf9; BORDER-RIGHT-COLOR: #00ff00; BORDER-BOTTOM-STYLE: groove"><TBODY><TR><TD>Spreadsheet Formulas</TD></TR><TR><TD><TABLE style="FONT-SIZE: 9pt; FONT-FAMILY: Arial" cellSpacing=0 cellPadding=2 border=1><TBODY><TR style="FONT-SIZE: 10pt; BACKGROUND-COLOR: #cacaca"><TD>Cell</TD><TD>Formula</TD></TR><TR><TD>Q3</TD><TD>=IF(O3="","",SUMIF($F$3:$F$8382,O3,$I$3:$I$8382))</TD></TR><TR><TD>Q4</TD><TD>=IF(O4="","",SUMIF($F$3:$F$8382,O4,$I$3:$I$8382))</TD></TR><TR><TD>T4</TD><TD>{=SUMPRODUCT(($E$3:$E$8382>=R4)*($E$3:$E$8382<=S4)*($C$3:$C$8382))}</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>

Nevermind....I had the date range set incorrectly!
As an afterthought, if you're using Excel 2007 or later the SUMIFS function is more efficient.

=SUMIFS($C$3:$C$8382,$E$3:$E$8382,">="&R4,$E$3:$E$8382,"<="&S4)
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,738
Members
452,940
Latest member
Lawrenceiow

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