sumproduct with criteria and multiply problem

  • Thread starter Thread starter mohavv
  • Start date Start date
M

mohavv

Hi,

I've got the following formula which isn't working (gives #VALUE!).

=SUMPRODUCT(--(A13:A471=F476&G475),(E13:N471),(P13:Y471))

Is it possible to have one criteria and have two ranges multiply?

If so, what am I doing wrong?

Cheers,

Harold
 
You are going to have to tells in words what you hoped that formula was
going to do. The reason for the error is your arrays are not the same size
A13:A471 has less elements in it than either E13:N471 or P13:Y471... each
array must be the same size.
 
Try it like this:

=SUMPRODUCT((A13:A471=F476&G475)*E13:N471*P13:Y471)

However, if there is any text entries in the ranges E13:N471and P13:Y471 it
won't work. You'll still get a #VALUE! error.
 
Okay, so this is a 3D array calculation in which case your ranges may be
okay. However, I'd still like to see a description of what it is you are
expecting the formula to do.
 
Try it like this:

=SUMPRODUCT((A13:A471=F476&G475)*E13:N471*P13:Y471)

However, if there is any text entries in the ranges E13:N471and P13:Y471 it
won't work. You'll still get a #VALUE! error.

--
Biff
Microsoft Excel MVP








- Show quoted text -

Thanks!

Last one is working fine, can't understand why though.

I was trying to calculate an average price over multiple products
which are listed in colums, in rows I have delivery weeks per region.
Range one has volumes range two has price.

Cheers,

Harold
 
You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


Try it like this:

=SUMPRODUCT((A13:A471=F476&G475)*E13:N471*P13:Y471)

However, if there is any text entries in the ranges E13:N471and P13:Y471
it
won't work. You'll still get a #VALUE! error.

--
Biff
Microsoft Excel MVP








- Show quoted text -

Thanks!

Last one is working fine, can't understand why though.

I was trying to calculate an average price over multiple products
which are listed in colums, in rows I have delivery weeks per region.
Range one has volumes range two has price.

Cheers,

Harold
 

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

Back
Top