Calculating the sum with multiple conditions

G

Guest

Why is this giving me an error? It doesn't make sense!!!!

SUMPRODUCT(--('Raw - 2nd'!$C$2:$C$65536=$A37),--(MONTH('Raw -
2nd'!$b$2:$b$65536=4),'Raw - 2nd'!$J$2:$J$65536)

Column c is employee number
Column b is date range
Column j is $$ range

I need to calculate the sum of $$ dependate on 2 conditions. One
condition is emplyee number ( listed in column c - many numbers) and the
other is the month (listed by day in column b)


Anyone

Thanks in advance
 
R

RagDyer

It looks OK to me.

What error are you getting?

I would check to make sure the dates in Column B are true dates.
 
P

Peo Sjoblom

Works fine for me, having said that, do you really need +65500 rows? It
doesn't
make sense unless you have that many values and if you do that formula will
be very slow

Try to enter the formula with the help of the mouse, that way you'll get the
apostrophes etc for free (I noticed a small b and that looks like manual
entering

I use the mouse to select for instance C2:C6 and then I just add 5536 after
the 6

--
Regards,

Peo Sjoblom

(No private emails please)
 
G

Guest

I thinks so. I receive data twice a week in files that are cut and paste into
one file. This is done until the worksheet is full then I insert another
worksheet into the workbook to continue.
 
G

Guest

"The formula you typed has an error"



RagDyer said:
It looks OK to me.

What error are you getting?

I would check to make sure the dates in Column B are true dates.
 

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