Bug 129464 - Formula() don't work with references to other documents
Summary: Formula() don't work with references to other documents
Status: CLOSED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Calc-Function Calculate
  Show dependency treegraph
 
Reported: 2019-12-18 08:38 UTC by gmolleda
Modified: 2022-01-12 14:33 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gmolleda 2019-12-18 08:38:39 UTC
Open a new file Calc with =1+2 in the cell A1, save and keep it open.
Open other new file Calc and write in a cell:
='file:///Z:/One.ods'#$Hoja1.A1
Then the number 3 appears. Ok.
Below write:
=Formula('file:///Z:/One.ods'#$Hoja1.A1)
But appears #N/D instead of =1+2
Comment 1 Oliver Brinzing 2019-12-18 15:35:25 UTC
reproducible with:

Version: 6.5.0.0.alpha0+ (x64)
Build ID: 4b7b6993134a48c850608c758f7b7283bed27fec
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win; 
Locale: de-DE (de_DE); UI-Language: en-US
Calc: threaded
Comment 2 m_a_riosv 2019-12-18 22:30:51 UTC
I have the sensation it is already reported, but I can't find it. Sure I'm in a mistake.
Comment 3 b. 2019-12-28 18:36:14 UTC
repro in 6.4.0.1 and 4.1.6.2, other functions like sum(), average() ... work, formula() doesn't,
Comment 4 QA Administrators 2021-12-28 07:00:14 UTC Comment hidden (obsolete)
Comment 5 Roman Kuznetsov 2022-01-07 15:27:14 UTC
Still repro in

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 1be170d0629cf761f0ee4173007a3c021966546e
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL

I'm not sure the function should work with other files

Eike?
Comment 6 Eike Rathke 2022-01-12 14:33:20 UTC
No, it should not. Imported and cached from external references are only cell content values and formula results, not formulas themselves.
Not a bug / won't fix.