Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
andy
 
Posts: n/a
Default sumproduct problem

hello,

i've been reading up on all the sumproduct related posts, but can't figure
out what's wrong with mine...

this is my formula:
=SUMPRODUCT(Détail!B2:B151=1;Détail!AB2:AB151=1; Détail!T2:T151)

when i look at the insert function arguments box to help define the arrays,
excel returns the right values, i.e.:
for array 1 : false, true, false, false,.. (this is the first condition)
for array 2 : true, true, true, true,... (this is the second condition)
for array 3 : 1, 2, 4, 12, 4, 5,... (these are the values to add up)

so i thought excel would return '2', i.e. for the second record in each array:
true * true * 2 = 2
however, the value returned = 0

i also tried using the following
=SUMPRODUCT(Détail!B2:B151=1*Détail!AB2:AB151=1; Détail!T2:T151)
but the result is the same.

thanks for your help.
andy
  #2   Report Post  
Posted to microsoft.public.excel.newusers
JE McGimpsey
 
Posts: n/a
Default sumproduct problem

SUMPRODUCT requires numeric arguments, while your first two are boolean
(TRUE/FALSE). Try:

=SUMPRODUCT(--(Détail!B2:B151=1);--(Détail!AB2:AB151=1);Détail!T2:T151)

See

http://www.mcgimpsey.com/excel/doubleneg.html

for a more extensive explanation.


In article ,
andy wrote:

hello,

i've been reading up on all the sumproduct related posts, but can't figure
out what's wrong with mine...

this is my formula:
=SUMPRODUCT(Détail!B2:B151=1;Détail!AB2:AB151=1; Détail!T2:T151)

when i look at the insert function arguments box to help define the arrays,
excel returns the right values, i.e.:
for array 1 : false, true, false, false,.. (this is the first condition)
for array 2 : true, true, true, true,... (this is the second condition)
for array 3 : 1, 2, 4, 12, 4, 5,... (these are the values to add up)

so i thought excel would return '2', i.e. for the second record in each array:
true * true * 2 = 2
however, the value returned = 0

i also tried using the following
=SUMPRODUCT(Détail!B2:B151=1*Détail!AB2:AB151=1; Détail!T2:T151)
but the result is the same.

thanks for your help.
andy

  #3   Report Post  
Posted to microsoft.public.excel.newusers
andy
 
Posts: n/a
Default sumproduct problem

many thanks!
problem solved...

"JE McGimpsey" wrote:

SUMPRODUCT requires numeric arguments, while your first two are boolean
(TRUE/FALSE). Try:

=SUMPRODUCT(--(Détail!B2:B151=1);--(Détail!AB2:AB151=1);Détail!T2:T151)

See

http://www.mcgimpsey.com/excel/doubleneg.html

for a more extensive explanation.


In article ,
andy wrote:

hello,

i've been reading up on all the sumproduct related posts, but can't figure
out what's wrong with mine...

this is my formula:
=SUMPRODUCT(Détail!B2:B151=1;Détail!AB2:AB15 1=1;Détail!T2:T151)

when i look at the insert function arguments box to help define the arrays,
excel returns the right values, i.e.:
for array 1 : false, true, false, false,.. (this is the first condition)
for array 2 : true, true, true, true,... (this is the second condition)
for array 3 : 1, 2, 4, 12, 4, 5,... (these are the values to add up)

so i thought excel would return '2', i.e. for the second record in each array:
true * true * 2 = 2
however, the value returned = 0

i also tried using the following
=SUMPRODUCT(Détail!B2:B151=1*Détail!AB2:AB15 1=1;Détail!T2:T151)
but the result is the same.

thanks for your help.
andy


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
Problem using ADDRESS() in SUMPRODUCT() rmellison Excel Discussion (Misc queries) 2 January 9th 06 11:14 AM
Frustrating SUMPRODUCT problem. rmellison Excel Discussion (Misc queries) 1 January 6th 06 01:58 PM
Excel Display Problem Bill Martin -- (Remove NOSPAM from address) Excel Discussion (Misc queries) 0 April 19th 05 05:25 PM
SUMPRODUCT Problem Mestrella31 Excel Discussion (Misc queries) 2 December 21st 04 07:01 PM
SUMPRODUCT problem Jane Excel Worksheet Functions 3 November 8th 04 11:58 PM


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