W
woodyjr
I am trying to run the conditional sum wizard and have 2 sets of criteria but
keep coming back with a zero sum.
The data has 3 columns. A rep code, dates and total dollars sold.
The dates are between 1/1/2008 to 10/1/2008
The 2 sets of criteria are:
- The rep code (4 digit number), shown in the formula below as S2, found in
$B$2:$B$1423.
- The date range which I narrow to a 1 month spread. e.g.>=1/1/2008 and
<2/1/2008 (shown as T2 and U2)
It then should ttl the sales dollar (found in column H2 thru H1423 as shown
in the formula below) for each date range and by the rep code.
It always returns a zero dollar amount.
If I remove one of the date ranges e.g. just put >1/1/2008 it will return a
valid dollar amount for all sales greater than 1/1/2008. As soon as I add the
other date criteria I get a zero dollar amount.
Here is the formula:
{=SUM(IF($B$2:$B$1423=S2,IF($A$2:$A$1423>=T2,IF($A$2:$A$1423<U2,$H$2:$H$1423,0),0),0))}
Any suggestions?
keep coming back with a zero sum.
The data has 3 columns. A rep code, dates and total dollars sold.
The dates are between 1/1/2008 to 10/1/2008
The 2 sets of criteria are:
- The rep code (4 digit number), shown in the formula below as S2, found in
$B$2:$B$1423.
- The date range which I narrow to a 1 month spread. e.g.>=1/1/2008 and
<2/1/2008 (shown as T2 and U2)
It then should ttl the sales dollar (found in column H2 thru H1423 as shown
in the formula below) for each date range and by the rep code.
It always returns a zero dollar amount.
If I remove one of the date ranges e.g. just put >1/1/2008 it will return a
valid dollar amount for all sales greater than 1/1/2008. As soon as I add the
other date criteria I get a zero dollar amount.
Here is the formula:
{=SUM(IF($B$2:$B$1423=S2,IF($A$2:$A$1423>=T2,IF($A$2:$A$1423<U2,$H$2:$H$1423,0),0),0))}
Any suggestions?