ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   SUMPRODUCT error - help diagnosing (https://www.excelbanter.com/excel-programming/355723-sumproduct-error-help-diagnosing.html)

[email protected]

SUMPRODUCT error - help diagnosing
 
Hi there,

This works for me:

=SUMPRODUCT(('found-data'!$A$2:$A$10219'found-summary'!$A6)*('found-data'!$A$2:$A$10219<'found-summary'!$A6+1)*('found-data'!$B$2:$B$10219='found-summary'!C$4)*('found-data'!F2:F10219='new
interface'))

But when I added in the final clause below, it breaks:

=SUMPRODUCT(('found-data'!$A$2:$A$10219'found-summary'!$A6)*('found-data'!$A$2:$A$10219<'found-summary'!$A6+1)*('found-data'!$B$2:$B$10219='found-summary'!C$4)*('found-data'!F2:F10219='new
interface')*('found-data'!F2:F10219='new interface'))

I've been playing around, and reviewed Excel's 'common formula
mistakes' tips, but for the life of me can't figure out what the
problem is. Any ideas? I don't imagine I'd need to provide any sample
data to debug this, but if it would be helpful just let me know.

Thanks!
Jeff


JeffMelton

SUMPRODUCT error - help diagnosing
 
Why do you have this twice?
*('found-data'!F2:F10219='new interface')*('found-data'!F2:F10219='new
interface'))


[email protected]

SUMPRODUCT error - help diagnosing
 
whoops, sorry - typo in my initial post. Thanks JeffMelton for the
catch!

THIS WORKS:
=SUMPRODUCT(('found-data'!$A$2:$A$10219'found-summary'!$A6)*('found-data'!$A$2:$A$10219<'found-summary'!$A6+1)*('found-data'!$B$2:$B$10219='found-summary'!C$4))


AND THIS DOESN'T:
=SUMPRODUCT(('found-data'!$A$2:$A$10219'found-summary'!$A6)*('found-data'!$A$2:$A$10219<'found-summary'!$A6+1)*('found-data'!$B$2:$B$10219='found-summary'!C$4)*('found-data'!F2:F10219='new
interface'))

Any ideas?


JeffMelton

SUMPRODUCT error - help diagnosing
 
found-data'!F2:F10219='new interface'

shouldn't 'new interface' be in quotes ie-- "new interface"


[email protected]

SUMPRODUCT error - help diagnosing
 
Ahhh, thanks! That was it!



All times are GMT +1. The time now is 07:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com