I have a spreadsheet that makes considerable use of Named Expressions (as in Ctrl+F3). It would be very nice if these could flag themselves by color-filling the cells they are used in with …&T(STYLE(…)). In fact, this works perfectly when the Named Expressions are used as single-cell entries, and it seems to be performant. However, when STYLE() is used within an array formula, only the top left cell reflects the style. This is sad, because it would be nice to see the array formula region that is populated with a Named Expression even if the cells have blank results.
Notice, that I am just giving the “compelling reason” to use STYLE() as stipulated from the STYLE() docs. The behavior is in no way dependent on Named Expressions vs. direct use of STYLE() in an array formula.
Of course, as a one-off, I can always hand fill the same region. Of course, I can guess at a larger region and come up with some sort of conditiional formatting to flag with. But this would easily lead to desynchronizing filled regions and “clipping” data that should be there or having “dead” data appended from previous uses without an automatic one-to-one flagging of the cells, since, let’s face it, LO’s array formula auto-sizing isn’t exactly as nimble as, say, Excel’s auto-spill.
Edit: Uploading example. The behavior seems to be direct and consistent. Here is an example:
ArrayFormulaWithSTYLE.ods (7.4 KB)
Steps to reproduce:
- Select (highlight) multiple cells.
- In the formula bar enter something like =“Hello”&T(STYLE(“Accent”)) pressing Ctrl+Shift+Enter to complete.
Observed behavior:
Calc will only format the top left cell as Accent, but enter Hello into each selected cell.
Expected behavior:
Calc would format all the selected cells as Accent, and enter Hello into each selected cell.
Version: 7.5.3.2 (X86_64) / LibreOffice Community
Build ID: 9f56dff12ba03b9acd7730a5a481eea045e468f3
CPU threads: 20; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded