Bug 98623 - Substitute occurrence does not work properly
Summary: Substitute occurrence does not work properly
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.1.1.2 rc
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-12 20:33 UTC by Mick Sulley
Modified: 2016-03-13 02:35 UTC (History)
1 user (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 Mick Sulley 2016-03-12 20:33:51 UTC
The substitute function in Calc has an occurrence parameter to specify which occurrence of the string match should be substituted, if it is left blank then all occurrencies should be substituted.  If it is left blank it returns Err:502 it is not possible to substitute all occurrencies
Comment 1 Mick Sulley 2016-03-12 20:38:10 UTC
Just discovered that it was caused by having a comma in the expression.
=SUBSTITUTE(A2," ","",)    fails with Err:502
=SUBSTITUTE(A2," ","")     works fine.
Comment 2 m_a_riosv 2016-03-13 02:35:45 UTC
Hi @Mick, thanks for expose what the problem was.

Fixed is not the proper way to close in this way.
https://bugs.documentfoundation.org/page.cgi?id=fields.html