SUMPRODUCT problems

F

Fergus

I am trying to use SUMPRODUCT for summing instances where cells contain part
of the word “Ultra†for the period 1/06/2009 to 30/06/2009 (dd,mm,yyyy
format).

=SUMPRODUCT(--(I63:I222>=--"1-06-2009"),--(I63:I222<=--"30-06-2009")) works
ok
=SUMPRODUCT(ISNUMBER(SEARCH("Ultra",F63:F220))*Q63:Q220)
Works ok

But when combined
=SUMPRODUCT(--(I63:I222>=--"1-06-2009"),--(I63:I222<=--"30-06-2009"),(ISNUMBER(SEARCH("Ultra",F63:F220))*Q63:Q220))
gives a #value! error.

Where have I gone wrong?
 
R

Rick Rothstein

You have two different size ranges (x63:x222 and x63:x220 where x is just a
column letter stand-in) in the combined formula... in a SUMPRODUCT (as with
all array formulas) all ranges being iterated over must span the same number
of cells (so either change the 222 to 220 or the 220 to 222 whichever is
appropriate).
 
F

Fergus

Thanks for the quick response Rick.
--
Fergus


Rick Rothstein said:
You have two different size ranges (x63:x222 and x63:x220 where x is just a
column letter stand-in) in the combined formula... in a SUMPRODUCT (as with
all array formulas) all ranges being iterated over must span the same number
of cells (so either change the 222 to 220 or the 220 to 222 whichever is
appropriate).
 

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