Bug 143395 - Max function only works in arrays of less that 150 cells in length
Summary: Max function only works in arrays of less that 150 cells in length
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.0.6.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-15 21:11 UTC by Mark Lytle
Modified: 2021-07-16 01:47 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
This is the file I'm having trouble with, Change the max command to anything larger than 149, it fails (14.69 KB, application/vnd.oasis.opendocument.spreadsheet)
2021-07-16 00:03 UTC, Mark Lytle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Lytle 2021-07-15 21:11:35 UTC
Description:
A simple vertical array of floating point numbers is copied onto the spreadsheet.

The Max function works correctly if the number of cell < 150.

Arrays larger than that gives N/A

Steps to Reproduce:
1.A simple vertical array of floating point numbers is copied onto the spreadsheet.
2.Implement the Max function.  It works correctly if the number of cell < 150.
3.Arrays larger than that gives 'N/A'

Actual Results:

It works correctly if the number of cell < 150.

Arrays larger than that gives N/A

Expected Results:
That it would work regardless of array size.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
4 threads, Linux 5.4
UI render: default; VCL; GTK3
Misc 7.0.6 -3
Comment 1 Regina Henschel 2021-07-15 23:53:57 UTC
I cannot confirm the problem. Are you sure, that all cells contain numbers?

Please attach the failing document.
Comment 2 Mark Lytle 2021-07-16 00:03:45 UTC
Created attachment 173615 [details]
This is the file I'm having trouble with,  Change the max command to anything larger than 149, it fails
Comment 3 Regina Henschel 2021-07-16 00:41:53 UTC
The cells in lines 150, 155, 395, 415, 420, 493, 680, 685 and 752 contain the error value #N/A.
The function MAX cannot skip cells with error values, but propagate the error.

In case you will not remove the error values (find & replace), you can use the formula =MAX(IFNA(L1:L825;"")). You need to enter it as matrix formula (Ctrl + Shift + Enter).
Comment 4 Mark Lytle 2021-07-16 01:47:19 UTC
Thank you, I didn't know that.

Regards,
Mark Lytle