Bug 74893 - Other: array ctrl+shift+enter only seems to work on new functions not existing
Summary: Other: array ctrl+shift+enter only seems to work on new functions not existing
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Spreadsheet (show other bugs)
Version: Inherited From OOo
Hardware: Other Linux (All)
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-12 15:54 UTC by afonit
Modified: 2014-02-16 09:21 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
the example workbook referred to in the long description of this bug (13.01 KB, application/vnd.oasis.opendocument.spreadsheet)
2014-02-12 15:54 UTC, afonit
Details
ods file with 2 arrays : 1 you can modify and 1 other you can't (40.78 KB, application/vnd.oasis.opendocument.spreadsheet)
2014-02-16 09:21 UTC, Thierry Munoz
Details

Description afonit 2014-02-12 15:54:55 UTC
Created attachment 93940 [details]
the example workbook referred to in the long description of this bug

Problem description: 
if I have an existing function and I hit f2 to edit then ctrl+shift+enter to turn it into an array function, it does not work.  However, If I enter in the function for the first time in a new cell (and while I am still in that cell from typing the function) then ctrl+shift+enter turns the function into an array.

Steps to reproduce:
1. open the attached spreadsheet
2. hit f2 on C7 then hit ctrl+shift+enter
3. notice the function does not turn into an array
4. now in cell C8 hit f2 and paste in =SUM(A1:A4*B1:B4) then hit ctrl+shift+enter
5. you will now see C8 is an array function



Current behavior:
ctrl+shift+enter only works on just entered formulas

Expected behavior:
ctrl+shift_enter should work on a formula that is already entered and you are now turning it into an array.


Note:
I know the example in the attached workbook could be resolved using sumproduct(), however the real example I have is a bit more complex, so I chose a simpler example that could still illustrate the point/issue.

docs:
https://help.libreoffice.org/Calc/Array_Functions

              
Operating System: Linux (Other)
Version: 4.2.0.4 release
Comment 1 sophie 2014-02-12 16:50:04 UTC
Hi, I can confirm that an existing formula can not be change into an array if you edit it with F2 and then press ctrl+shift+enter. I've also tried 4.1.5.3 and this is the same. I'll put the issue on New.

As a workaround I've found that if you select the formula once you've press F2, you are able the change it in an array once ctrl+shif+enter is pressed. However not being able to do it straightly if the formula is edited seems wrong to me. 

Change version to 4.1.5 as this is the first version where I've been able to reproduce. Set to New - Sophie
Comment 2 GerardF 2014-02-12 18:12:55 UTC
LibreOffice and previously OpenOffice have always works like this. (unlike Excel)
Change version to Inherited from OOo.
Comment 3 Thierry Munoz 2014-02-16 09:21:40 UTC
Created attachment 94154 [details]
ods file with 2 arrays : 1 you can modify and 1 other you can't

Hi,
I confirm this behavior on LibO 4.2.0.4 under Ubuntu 12.04.
But not with all the functions :
- Impossible to edit an array with IF function
- No problem to editing an array with FREQUENCY function.

See the attachment and in the sheet "Feuille2" :
- array editable in C2:C5 with FREQUENCY function
- array not editable in A11:A40 with IF function.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.