Issue 27656 - Array calculates for one column only
Summary: Array calculates for one column only
Status: CLOSED DUPLICATE of issue 46681
Alias: None
Product: Calc
Classification: Application
Component: ui (show other issues)
Version: OOo 1.1.2
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: ooo
QA Contact: issues@sc
URL:
Keywords: ms_interoperability
Depends on:
Blocks:
 
Reported: 2004-04-09 19:12 UTC by kkennedy070790
Modified: 2013-08-07 15:12 UTC (History)
1 user (show)

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


Attachments
Array table calc (6.00 KB, application/corel.qpro)
2004-04-09 19:13 UTC, kkennedy070790
no flags Details
Array table calc (6.16 KB, application/vnd.sun.xml.calc)
2004-04-09 19:14 UTC, kkennedy070790
no flags Details
Excel example (19.00 KB, application/vnd.ms-excel)
2004-04-09 22:02 UTC, kkennedy070790
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description kkennedy070790 2004-04-09 19:12:15 UTC
In QuattroPro you can calc a full table by using @array({range} * {range}). 
OpenOffice appears to only be able to do one column at a time. I will attach
examples of both QPro and OpenOffice.
Comment 1 kkennedy070790 2004-04-09 19:13:43 UTC
Created attachment 14439 [details]
Array table calc
Comment 2 kkennedy070790 2004-04-09 19:14:17 UTC
Created attachment 14440 [details]
Array table calc
Comment 3 Regina Henschel 2004-04-09 21:51:22 UTC
In OOo you can use the arrayfunction MMULT.
=MMULT(A2:A37;D1:E1)
Comment 4 kkennedy070790 2004-04-09 22:01:49 UTC
regina,  that is not the type of result I am trying to get (nor will I always
have the same number of columns as rows).  I am attaching an Excel spreadsheet
that shows the same problem. for what it is worth - Excel also has the MMULT()
function.  I suspect this bug causes a lot of other array-based problems!!
Comment 5 kkennedy070790 2004-04-09 22:02:23 UTC
Created attachment 14443 [details]
Excel example
Comment 6 kkennedy070790 2004-04-09 23:09:26 UTC
Forgot to mention: It does not matter what operator you use, you could be just
adding.  If you try to open the excel file in OOo you will see all the array
cells contain #N/A except for the first array cell. In Excel the results look
normal.
Comment 7 Regina Henschel 2004-04-09 23:18:37 UTC
I do not understand you.
What is wrong with MMULT(A2:A37;B1:E1)? It produces the same results as in Excel
=B1:E1*A2:A37 does.
> is not the type of result I am trying to get
What do you mean with "type of result"? What "type of result" you are trying to get?
> nor will I always have the same number of columns as rows
It doesn't have the same number, there are 37 rows and 4 colums. 

Do you want a new feature in OOo, so that it behaves like Excel?
Do you want, that Excel's =B1:E1*A2:A37 is translated to MMULT when importing an
Excel-sheet? 
Comment 8 kkennedy070790 2004-04-09 23:32:27 UTC
> I do not understand you.
> What is wrong with MMULT(A2:A37;B1:E1)?

Try putting that in OOo... It does not work.  What if I want to add ie:
A2:A37+B1:E1???

> What do you mean with "type of result"? What "type of result" you are trying
to get?

In QPro and in Excel, the array fills the table with each corresponding value. 
Look at the attached examples.  OOo will fill in the table only for a single column.

> Do you want a new feature in OOo, so that it behaves like Excel?

Dunno - I am trying to convert from QPro, not Excel, so I should say I want a
feature that behaves like QPro's @ARRAY()

> Do you want, that Excel's =B1:E1*A2:A37 is translated to MMULT when importing
> an Excel-sheet? 

Since QPro does not have MMULT(), I guess not. I think @MULT() is the closest
thing in QPro.
Comment 9 Regina Henschel 2004-04-10 00:28:28 UTC
> I want a feature that behaves like QPro's @ARRAY()
I do not know, if such a feature will be implemented, I am an user like you, but
until that, have a look at "Multiple Operations..." in menu "Data". With that
you can generate a two-dimensional table with all calculations you like without
any arrayfunction.
Comment 10 kkennedy070790 2004-04-10 00:29:48 UTC
>> Try putting that in OOo... It does not work.  What if I want to add ie:
>> A2:A37+B1:E1???

Ok I get it now, multiplying works with =MMULT(A2:A37;D1:E1) if you are smart
enough to hit ctrl-shift-enter - duh!, however some of the sheets I am trying to
convert do not multiply, they have addition and subtraction in some places.
Since OOo does not have QPro conversion, I am doing the conversions manually for
the client.  I don't want to have to tell him he now has to edit the formula in
every column!  Tried =SUM(A2:A37+B1:E1), it just adds the first column and first
row to every output cell.
Comment 11 kkennedy070790 2004-04-10 00:34:26 UTC
>I do not know, if such a feature will be implemented, I am an user like you, but
until that, have a look at "Multiple Operations..." in menu "Data". With that
you can generate a two-dimensional table with all calculations you like without
any arrayfunction.

The real bummer is that Excel seems to work just fine :(


Comment 12 kkennedy070790 2004-04-10 22:11:22 UTC
OOo version 680m_32 developer snapshot now shows #NAME? using MMULT() in an array..
Comment 13 frank 2004-04-13 12:23:45 UTC
Hi Eike,

as discussed as enhancement to you.

Frank
Comment 14 ooo 2004-04-13 15:13:56 UTC
Accepted, interoperability.
Comment 15 kkennedy070790 2004-04-14 21:40:24 UTC
> I do not know, if such a feature will be implemented, I am an user like you, but
until that, have a look at "Multiple Operations..." in menu "Data". With that
you can generate a two-dimensional table with all calculations you like without
any arrayfunction.

This definetly did the trick, in some ways it is actually better than @ARRAY,
Thank you VERY much regina!
Comment 16 ooo 2008-09-16 11:20:10 UTC
Will be fixed with issue 46681.

*** This issue has been marked as a duplicate of 46681 ***
Comment 17 ooo 2008-09-16 11:22:21 UTC
Closing dupe.