<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Calc: How to do this special lookup in external file?"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=118561">118561</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Calc: How to do this special lookup in external file?
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>5.3.7.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Calc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>marcus@sternenschwarm.de
</td>
</tr></table>
<p>
<div>
<pre>Description:
It's about doing a lookup in an external .ods file from a main .ods file.
A testcase with 2 simple files is included that demonstrates the problem.
A series of 4 screenshot images gives a quick overview of the problem.
Posted it in other forum first. Person there says it might be a bug. See:
<a href="https://ask.libreoffice.org/en/question/159779/how-to-do-this-special-lookup-in-external-file/">https://ask.libreoffice.org/en/question/159779/how-to-do-this-special-lookup-in-external-file/</a>
Not sure if this is a bug
-or-
The formula is just wrong
-or-
This mechanism is not possible with LibreOffice
Steps to Reproduce:
1. Store the 2 .ods files in the same directory.
2. Open the main .ods file.
3. Do the things that you see in the screenshot images.
4. (The cell where the problem occurs is marked yellow/orange)
Actual Results:
Lookup in the same file works without problems.
Lookup in the external .ods file doesn't work (this way).
Expected Results:
Lookup in the external file should be possible in a similar fashion.
Reproducible: Always
User Profile Reset: Yes
Additional Info:
Not sure if possible with a slightly different formula.
People in the ask.libreoffice.org say it may be a bug.
See:
<a href="https://ask.libreoffice.org/en/question/159779/how-to-do-this-special-lookup-in-external-file/">https://ask.libreoffice.org/en/question/159779/how-to-do-this-special-lookup-in-external-file/</a>
I have a tandem of 2 .ods files - one that holds a lot of data and one that is
the interface.
C:\fakepath\problem_2_main_file.ods
C:\fakepath\problem_2_external_file.ods
Usually I use "Data"->"Validity..." and select "Cell range" and use a formula
like the following:
IF($data.$B$1:$B$9999=B6,$data.$C$1:$C$9999)
This formula checks creates a list of things to select from (column "C" in
"data") by filtering only those where column "B" matches a certain category.
I try to use a similar formula when looking up in the external .ods file, but
this formula fails:
IF('file:///E:/Problem2/problem_2_external_file.ods'#$external_data.B$1:B$9999=B14,'file:///E:/Problem2/problem_2_external_file.ods'#$external_data.C$1:C$9999)
The following screenshot images illustrate the problem.
I will try to do this with Microsoft Office since I'm out of options now - if
it works there, then it should(!) work in LibreOffice too.
Maybe the syntax of the formula is wrong? Or perhaps I did not think of
something else? One alternative might be to use a real database and a C++ app
or something like that. But I want to use two Calc files instead - one that
holds the data and one that is the user interface.
My next workaround would be to add the relevant data to the main file - which
is a problem. You see, the idea was to separate the 2 files because the
database is a big file (10 MegaByte) whereas the other file that uses this data
is only 100 KiloByte in size and will be used like a 1000 times to represent a
1000 times the data in different combinations. Thus, I would have 1001 x 10 MB
versus 1000 MB + 1000 x 0,1 MB which means 1000 times more disk space used when
having the data all in one file.
Also ... I separated the two because if things change in the database then only
the database will need an update. The other 1000 files which reference the
other .ods file won't need an update. The data .ods is located in a folder
above the interface .ods file.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>