#1   Report Post  
Sam via OfficeKB.com
 
Posts: n/a
Default SUMPRODUCT Help

Hi All,

I'm using SUMPRODUCT: I've had a look at the site Xldynamic.com but still
having problems.

I'm trying to sum the count of the numeric value housed in cell D4 for the
month of July (for all years).

Results is a Dynamic Range spanning 8 Columns and many Rows. The numeric
value is checked from the 3rd to the 7th Column (spans 5 columns). The date
is a single column (formatted 05/07/2005) - located in the 2nd Column of the
Dynamic Range.

The value housed in cell D4 is a numeric value. The first formula produces
the correct answer but the second version returns an error. I'm not sure
about the syntax and if my parenthesis are in the right position.

The first Formula below gives me the answer I expect:
1) =SUMPRODUCT((OFFSET(Results,0,2,,5)=$D$4)*((MONTH( OFFSET(Results,0,1,,1))
=7)))

The second Formula below produces a #Value error - a value used in the
formula is of the wrong data type?
2)=SUMPRODUCT(--((OFFSET(Results,0,2,,5)=$D$4)),--(MONTH(OFFSET(Results,0,1,,
1))=7))

Can you explain what I've done incorrectly in the second Formula, please.

Thanks
Sam


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200508/1
  #2   Report Post  
Domenic
 
Posts: n/a
Default

When using the 'comma syntax', as in your second formula, the range size
for each argument needs to be the same. The first argument gives you a
'5-Column by n-Row' array, whereas the second argument gives you a
'1-Column by n-Row' array, hence the #VALUE! error. (Note that 'n'
represents the number of rows within your dynamic range, which would be
the same for both arguments.)

Hope this helps!

In article ,
"Sam via OfficeKB.com" wrote:

Hi All,

I'm using SUMPRODUCT: I've had a look at the site Xldynamic.com but still
having problems.

I'm trying to sum the count of the numeric value housed in cell D4 for the
month of July (for all years).

Results is a Dynamic Range spanning 8 Columns and many Rows. The numeric
value is checked from the 3rd to the 7th Column (spans 5 columns). The date
is a single column (formatted 05/07/2005) - located in the 2nd Column of the
Dynamic Range.

The value housed in cell D4 is a numeric value. The first formula produces
the correct answer but the second version returns an error. I'm not sure
about the syntax and if my parenthesis are in the right position.

The first Formula below gives me the answer I expect:
1) =SUMPRODUCT((OFFSET(Results,0,2,,5)=$D$4)*((MONTH( OFFSET(Results,0,1,,1))
=7)))

The second Formula below produces a #Value error - a value used in the
formula is of the wrong data type?
2)=SUMPRODUCT(--((OFFSET(Results,0,2,,5)=$D$4)),--(MONTH(OFFSET(Results,0,1,,
1))=7))

Can you explain what I've done incorrectly in the second Formula, please.

Thanks
Sam

  #3   Report Post  
Sam via OfficeKB.com
 
Posts: n/a
Default

Hi Domenic,

Thank you very much - explanation is clear.

Cheers,
Sam

Domenic wrote:
When using the 'comma syntax', as in your second formula, the range size
for each argument needs to be the same. The first argument gives you a
'5-Column by n-Row' array, whereas the second argument gives you a
'1-Column by n-Row' array, hence the #VALUE! error. (Note that 'n'
represents the number of rows within your dynamic range, which would be
the same for both arguments.)



Domenic wrote:
When using the 'comma syntax', as in your second formula, the range size
for each argument needs to be the same. The first argument gives you a
'5-Column by n-Row' array, whereas the second argument gives you a
'1-Column by n-Row' array, hence the #VALUE! error. (Note that 'n'
represents the number of rows within your dynamic range, which would be
the same for both arguments.)

Hope this helps!

Hi All,

[quoted text clipped - 26 lines]
Thanks
Sam



--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200508/1
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
Sumproduct Peter B Excel Worksheet Functions 1 March 7th 05 01:59 PM
sumproduct causing memory errors? dave Excel Worksheet Functions 1 March 3rd 05 09:31 AM
Can I reference =, <, or > sign in SUMPRODUCT BobT Excel Discussion (Misc queries) 7 February 16th 05 01:58 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


All times are GMT +1. The time now is 12:44 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"