Apache OpenOffice (AOO) Bugzilla – Issue 125813
Set option "search criteria must apply to whole cell" to true, when opening .xls or .xlsx file
Last modified: 2014-11-01 18:16:07 UTC
Created attachment 84131 [details] .ods that use VLOOKUP() on same radix strings the VLOOKUP() function with 3th parameter at 0 or FALSE, work with not sorted elements, and should return exact match only. But sometimes get confused by similar element that match too, when should match with 3th parameter to 1 or TRUE or missing It happen when the radix part of a string is found in another entry, followed by other text. Attach an example where the bug is shown. I exported the .ods file as .xls and tested in both AOO and Excel, and so work as expected, return exact match only.
It is a feature :). Goto Tools > Options > OpenOffice Calc > Calculate. Find the option "Search criteria = and <> must apply to whole cells". If that is checked, the complete cell content is used for comparisons, otherwise substrings will match too.
Excel match always the whole cell, so to have compatibility we must keep the option checked. Should be the install default.
this option seems related to the specific file, not a global settings. Is this confirmed?
Created attachment 84132 [details] the same file saved as .xls Attached the same .ods file saved as .xls Then, opening the .xls file with AOO, the option "Search criteria = and <> must apply to whole cells" is disabled, so the results in D28 is different to that in Excel. This can be very dangerous. Opening an XLS file, AOO should automatically set this option. We need to change the bug description adding "opening .xls files"
This is a document setting. It is in element <table:calculation-settings> the attribute "table:search-criteria-must-apply-to-whole-cell" in the content.xml in the .ods container. I agree, that this option should be set to "true", when opening an Excel spreadsheet. I have changed the Summary and set Issue-Type to enhancement and added keyword "ms-interoperability". I guess, this can be an "easy-hack".