#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default SUMPRODUCT problems

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:Q22 0))
gives a #value! error.

Where have I gone wrong?

--
Fergus
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default SUMPRODUCT problems

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

--
Rick (MVP - Excel)


"Fergus" wrote in message
...
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:Q22 0))
gives a #value! error.

Where have I gone wrong?

--
Fergus


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default SUMPRODUCT problems

Thanks for the quick response Rick.
--
Fergus


"Rick Rothstein" wrote:

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

--
Rick (MVP - Excel)


"Fergus" wrote in message
...
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:Q22 0))
gives a #value! error.

Where have I gone wrong?

--
Fergus



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I, too, am having problems with SUMPRODUCT Leonhardtk Excel Worksheet Functions 5 July 18th 07 06:05 PM
Sumproduct problems... Johnny M[_2_] Excel Worksheet Functions 4 March 22nd 07 09:14 PM
SUMPRODUCT problems mmcap Excel Worksheet Functions 2 January 30th 07 06:50 PM
Problems with sumproduct Rob_T Excel Worksheet Functions 1 June 26th 06 11:47 AM
Problems with Sumproduct formulas Zemmm Excel Worksheet Functions 1 December 12th 05 11:09 AM


All times are GMT +1. The time now is 02:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright 2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"