https://bugs.documentfoundation.org/show_bug.cgi?id=155405

            Bug ID: 155405
           Summary: FILEOPEN XLSX CELL() function gives Err:504 with the
                    prefix, protect and width infotype parameters
           Product: LibreOffice
           Version: Inherited From OOo
          Hardware: All
               URL: https://help.libreoffice.org/7.5/en-US/text/scalc/01/0
                    4060104.html?DbPAR=CALC#bm_id3155509
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]

Continuing bug 155402

1 Open attachment 187392
2 Observe the values in the A8, A9, A12 cells is Err:504 as seen on attachment
187393 
Here the CELL() function is used with the prefix, protect and width values of
the infotype parameter.
These are supported with mostly the same meaning as in Excel, just the XLSX
import (and probably the export) is incorrect.

See:
https://support.microsoft.com/en-us/office/cell-function-51bd39a5-f338-4dbe-a33f-955d67c2b2cf
 

prefix: from LO help:
Returns the alignment of the referenced cell.
' = align left or left-justified
" = align right
^ = centered
\ = repeating (currently inactive)
This is the same as in Excel for the first three, but \ has different meaning
there:
"backslash (\) if the cell contains fill-aligned text, and empty text ("") if
the cell contains anything else."

protect: from LO help:
Returns the status of the cell protection for the cell.
1 = cell is protected
0 = cell is not protected
- this is the same as in Excel

width: from LO help:
Returns the width of the referenced column. The unit is the number of zeros (0)
that fit into the column in the default text and the default size.

this is only "somewhat" similar in Excel: 

Returns an array with 2 items.

The 1st item in the array is the column width of the cell, rounded off to an
integer. Each unit of column width is equal to the width of one character in
the default font size.

The 2nd item in the array is a Boolean value, the value is TRUE if the column
width is the default or FALSE if the width has been explicitly set by the user. 

Version: 7.6.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: b3c88dc039d447322b8c8c564ab6e2f0ce9c5b90
CPU threads: 14; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to