sumproduct Formula PLEASE HELP
=SUMPRODUCT(--(B2:B200="Kelly"),--(YEAR(D2:D200)=2007),--(MONTH(D2:D200)<=3),A2:A200)
For months Apr - Jun
=SUMPRODUCT(--(B2:B200="Kelly"),--(YEAR(D2:D200)=2007),--(MONTH(D2:D200)=4),--(MONTH(D2:D200)<=6),A2:A200)
Also you might want to put the sales people criteria in a cell
=SUMPRODUCT(--(B2:B200=E1),--(YEAR(D2:D200)=2007),--(MONTH(D2:D200)=4),--(MONTH(D2:D200)<=6),A2:A200)
Where you would put Kelly in E1
You could also use
=SUMPRODUCT(--(B2:B200=E1),--(YEAR(D2:D200)=2007),--(ISNUMBER(MATCH(MONTH(D2:D200),{1,2,3},0))),A2:A20 0)
where {1,2,3}
is Jan-Mar
--
Regards,
Peo Sjoblom
"cdw" wrote in message
...
ColumnA Column B ColumnC ColumnD
$2,958.73 Kelly RSP 5-Feb-07
$91,000.00 Sherri Non-Reg 12-Feb-07
$15,648.47 Kelly RRIF 21-Mar-07
These are my columns. I want to make a running total for each
salesperson
PER QUARTER. So if their name appears in Column B AND Jan, Feb or Mar
appears in Column D, I want it to add their sales numbers from Column A
to
this quarterly total:
Ex) Kelly appeared in Col B AND Feb appeared in Column D so it added
$2958.73 to her total quarterly sales:
Kelly 1st Quarter Sales $18607.2 (total sales for
Jan,Feb,Mar)
This is the formula I used and it keeps telling me that there is a problem
with a67 and then send error message #value!
I am inputting this formula into cell b67.
a67 is where Kelly's name appears
b67 is where I want the running total of sales for Kelly for Q1
b2:b100 = list of who made sales
j9 = start date of quarter
j10 = end date of quarter
a2:a100 = sales made per salesperson
=sumproduct((b2:b100=a67)*(d2:d100=J9)*(d2:d100<= j10)*a2:a100)
|