SumProduct not right

S

Steve

This formula is summing ALL the incidences in the N column of what's in E2. I
want it to sum ONLY those that are in E2 but also also matching what's in A3.

=SUMPRODUCT(--(Data!$E$3:$E$5000=$A$3)--(Data!$R$3:$R$5000=E2),Data!$N$3:$N$5000)

I can't figure out why it's not working, because a similiar formula works
for other situations.

Thanks,

Steve
 
L

Lars-Åke Aspelin

This formula is summing ALL the incidences in the N column of what's in E2. I
want it to sum ONLY those that are in E2 but also also matching what's in A3.

=SUMPRODUCT(--(Data!$E$3:$E$5000=$A$3)--(Data!$R$3:$R$5000=E2),Data!$N$3:$N$5000)

I can't figure out why it's not working, because a similiar formula works
for other situations.

Thanks,

Steve

It seems you have forgotten a comma. Try this:

=SUMPRODUCT(--(Data!$E$3:$E$5000=$A$3),--(Data!$R$3:$R$5000=E2),Data!$N$3:$N$5000)

Hope this helps / Lars-Åke
 
S

Steve

Nice eyes. That was it.

thanks,

Steve

Lars-Ã…ke Aspelin said:
It seems you have forgotten a comma. Try this:

=SUMPRODUCT(--(Data!$E$3:$E$5000=$A$3),--(Data!$R$3:$R$5000=E2),Data!$N$3:$N$5000)

Hope this helps / Lars-Ã…ke

.
 
S

Steve

Thank you. This works. The asterisks are also easier for me follow than than
the dashes. I think I'll use this instead.
Are those dashes always interchangable with the asterisks in those slightky
different positions ?

Thanks again,

Steve
 
S

Steve

Good eyes. That was it.

Thanks,

Steve

Lars-Ã…ke Aspelin said:
It seems you have forgotten a comma. Try this:

=SUMPRODUCT(--(Data!$E$3:$E$5000=$A$3),--(Data!$R$3:$R$5000=E2),Data!$N$3:$N$5000)

Hope this helps / Lars-Ã…ke

.
 
S

Steve

This works too. Much thanks.
In fact, I can understand the *'s better than the dashes, so I'll probably
use this one. Question: The dashes and the asterisks , are they always
interchangable, with the slightly different positions ?

Thanks again,

Steve
 

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

Similar Threads


Top