Bug 94523 - Search or Find string in CALC text field returns illogical result if string not found
Summary: Search or Find string in CALC text field returns illogical result if string n...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.4.5.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-26 09:47 UTC by Colin
Modified: 2015-09-28 12:37 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Tiny Calc Shhet (15.58 KB, application/vnd.oasis.opendocument.spreadsheet)
2015-09-26 09:47 UTC, Colin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Colin 2015-09-26 09:47:24 UTC
Created attachment 119032 [details]
Tiny Calc Shhet

When a source cell with a text string is utilised in a Find or Search function on the contents of a text data cell then a valid hit returns a true value (normally the start position of the source text) which can be subjected to further processing
When the source text is not contained in the target string then an #VALUE! result is returned. Clearly this is a terminal failure as no further processing can be performed to provide any state that can subsequently be processed.
A small spreadsheet has been appended with a full description of the effect and the one step needed to create the anomaly.
Simply type a value into either of the two cells in the first row.
A valid "hit" produces a processable return whereas a "miss" provides an illogical or invalid result.
Comment 1 Buovjaga 2015-09-28 12:37:17 UTC
Consulted our Calc dev guru erAck:
Those functions are defined to return an error if there is no match; if you don't want to see an error you can use IFERROR()