Issue 4265 - Err:504 on array formula (aka matrix formula) using IF()
Summary: Err:504 on array formula (aka matrix formula) using IF()
Status: CLOSED DUPLICATE of issue 4070
Alias: None
Product: Calc
Classification: Application
Component: code (show other issues)
Version: 641
Hardware: PC Windows 2000
: P1 (highest) Trivial (vote)
Target Milestone: ---
Assignee: oc
QA Contact: issues@sc
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-26 10:42 UTC by Unknown
Modified: 2003-09-08 16:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Example showing the bug (13.50 KB, application/x-excel)
2002-04-26 10:48 UTC, Unknown
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2002-04-26 10:42:01 UTC
Suppose I have in A1:A3 the values 1;2;10 and in B1:B3 the values "a";"a";"b" 
and in B5:B7 the values "a";"b";"c".
Then put in A5:A7 the array formula 
A5 {=SUM(IF($B$1:$B$3=B5;$A$1:$A$3;0))}
A6 {=SUM(IF($B$1:$B$3=B6;$A$1:$A$3;0))}
A7 {=SUM(IF($B$1:$B$3=B7;$A$1:$A$3;0))}
With MS-XL I get in A5:A7 the values 3;10;0, that is the sum of 1+2 for "a", 10 
for "b" and 0 for "c". With the OpenOffice Spreadsheet, instead, I get Err:504.
I know I could use the SUMIF() function, but:
1. First, I have many sheets using {SUM(IF(...))}
2. Secondly, the {FUNCTION(IF(...))} form is of much more general use and much 
more versatile than using the SUMIF(): e.g. I can do thinks like {MAX(IF(...))} 
or {AVG(IF(...))} and so forth...

Many thanx in advance & remember you all have my respect for your effort in 
this project :-)

Rob
Comment 1 Unknown 2002-04-26 10:48:02 UTC
Created attachment 1490 [details]
Example showing the bug
Comment 2 frank 2002-04-26 11:08:25 UTC
It's a double to Issue 4070

Frank

*** This issue has been marked as a duplicate of 4070 ***
Comment 3 oc 2002-12-04 16:07:35 UTC
Closed because duplicate