sumproduct Formula PLEASE HELP

G

Guest

ColumnA Column B ColumnC ColumnD

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)
 
S

Stephen

cdw said:
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)

First you say that "a67 is where Kelly's name appears"
Then you say "a2:a100 = sales made per salesperson"
As a67 is within the range a2:a100, both of your statements cannot be
correct. I suspect this is where your problem lies.
 
G

Guest

Maybe you mean something like this instead in say, F67:
=SUMPRODUCT((B2:B100=E67)*(D2:D100>=J9)*(D2:D100<=J10)*A2:A100)
where E67 contains the name: Kelly

A2:A100 contains the sales numbers,
and the name: Kelly should not be there in A67

B2:B100 contains the names list,
and the formula should not be placed in B67
which would cause circular ref errors.

---
 
P

Peo Sjoblom

=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:A200)

where {1,2,3}

is Jan-Mar



--


Regards,


Peo Sjoblom
 
B

Bob Phillips

AFAICS the other Kelly item is also in the firstw quarter, so the amount
should be $18,607.20, and that is what your formula gives.

Make sure column A is proper amounts, not text.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
G

Guest

I edited my spreadsheet and reposted question as this did not work. Please
check for new post and try to help. Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top