Lookup or SUMIF Date criteria to get value

pannells

New Member
Joined
Jun 14, 2009
Messages
37
I am wanting to create a formula but am not sure if I should use lookup, sumproduct or sumif.
Scenario is this.

Column A has a range of PAID dates
Column B has a range of INVOICE dates
Column C has a range of values.
My thinking is this.
INV DATE LESS THAN OR EQUAL TO AUG 2007 & THE PAID DATE GREATER THAN OR EQUAL TO SEPT 2007 THEN ADD UP VALUE COLUMN IF THE VALUE IS GREATER THAN 0.00.

I have tried to do a if formula with a end criteria of sumproduct but this gives me an error. Example below.
=IF$C$4:$C$1489<01/09/2008,$B$4:$B$1489>=01/09/2008,(SUMPRODUCT(category=A6)*(Gross>0.00))

I use the sumproduct regulary so all my column names etc are correct.
 

Some videos you may like

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Sal Paradise

Well-known Member
Joined
Oct 23, 2006
Messages
2,457
<b>Excel 2003</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style=";">Paid</td><td style=";">Invoice</td><td style=";">Amount</td><td style="text-align: right;;"></td><td style=";">Invoice Before:</td><td style="text-align: right;;">2007/8/1</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: right;;">2009/5/27</td><td style="text-align: right;;">2009/1/11</td><td style="text-align: right;;">947</td><td style="text-align: right;;"></td><td style=";">Paid After:</td><td style="text-align: right;;">2007/9/1</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: right;;">2008/12/22</td><td style="text-align: right;;">2008/9/11</td><td style="text-align: right;;">635</td><td style="text-align: right;;"></td><td style=";">Minimum Amount:</td><td style="text-align: right;;">0</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: right;;">2008/8/16</td><td style="text-align: right;;">2007/11/22</td><td style="text-align: right;;">334</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;">2006/12/21</td><td style="text-align: right;;">2006/5/18</td><td style="text-align: right;;">882</td><td style="text-align: right;;"></td><td style=";">Sum:</td><td style="text-align: right;;">975</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: right;;">2007/3/27</td><td style="text-align: right;;">2006/11/2</td><td style="text-align: right;;">376</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;">2008/11/21</td><td style="text-align: right;;">2008/3/4</td><td style="text-align: right;;">714</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style="text-align: right;;">2009/1/27</td><td style="text-align: right;;">2008/4/12</td><td style="text-align: right;;">210</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">9</td><td style="text-align: right;;">2010/3/24</td><td style="text-align: right;;">2009/11/7</td><td style="text-align: right;;">407</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">10</td><td style="text-align: right;;">2009/10/22</td><td style="text-align: right;;">2009/5/2</td><td style="text-align: right;;">503</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">11</td><td style="text-align: right;;">2007/1/4</td><td style="text-align: right;;">2006/1/23</td><td style="text-align: right;;">891</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">12</td><td style="text-align: right;;">2008/10/19</td><td style="text-align: right;;">2007/11/15</td><td style="text-align: right;;">571</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">13</td><td style="text-align: right;;">2007/6/16</td><td style="text-align: right;;">2007/4/30</td><td style="text-align: right;;">990</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">14</td><td style="text-align: right;;">2007/6/11</td><td style="text-align: right;;">2007/4/9</td><td style="text-align: right;;">767</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">15</td><td style="text-align: right;;">2008/5/8</td><td style="text-align: right;;">2007/12/30</td><td style="text-align: right;;">904</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">16</td><td style="text-align: right;;">2009/11/12</td><td style="text-align: right;;">2009/8/30</td><td style="text-align: right;;">727</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">17</td><td style="text-align: right;;">2011/1/12</td><td style="text-align: right;;">2010/8/23</td><td style="text-align: right;;">243</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">18</td><td style="text-align: right;;">2008/5/6</td><td style="text-align: right;;">2008/1/25</td><td style="text-align: right;;">59</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">19</td><td style="text-align: right;;">2011/2/2</td><td style="text-align: right;;">2010/6/20</td><td style="text-align: right;;">142</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">20</td><td style="text-align: right;;">2008/2/7</td><td style="text-align: right;;">2007/7/8</td><td style="text-align: right;;">975</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">F5</th><td style="text-align:left">=SUMPRODUCT(<font color="Blue">(<font color="Red">Paid>=F2</font>)*(<font color="Red">Invoice<F1</font>)*(<font color="Red">Amount>F3</font>)*Amount</font>)</td></tr></tbody></table></td></tr></table><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Workbook Defined Names</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Name</th><th style="text-align:left">Refers To</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">Amount</th><td style="text-align:left">=OFFSET(<font color="Blue">Sheet1!$C$1,1,0,COUNTA(<font color="Red">Sheet1!$C:$C</font>)-1,1</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">Invoice</th><td style="text-align:left">=OFFSET(<font color="Blue">Sheet1!$B$1,1,0,COUNTA(<font color="Red">Sheet1!$B:$B</font>)-1,1</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">Paid</th><td style="text-align:left">=OFFSET(<font color="Blue">Sheet1!$A$1,1,0,COUNTA(<font color="Red">Sheet1!$A:$A</font>)-1,1</font>)</td></tr></tbody></table></td></tr></table><br />
 

Watch MrExcel Video

Forum statistics

Threads
1,122,521
Messages
5,596,650
Members
414,083
Latest member
Mrsash

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