We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question
1

"invalid increment" message when trying to enable regular expressions in libreoffice calc [closed]

asked 2015-03-21 16:49:23 +0200

gdgilda gravatar image

updated 2020-08-19 18:36:18 +0200

Alex Kemp gravatar image

I have an existing spreadsheet that I've been using about once a year to help run an auction. The spreadsheet uses regular expressions in the "match" function. When I opened the spreadsheet to prepare for this year's auction, I discovered that the regular expressions were no longer generating matches. I then noticed under tools->options->libreoffice calc->calculate, there was a checkmark that wasn't checked to "enable regular expressions in formula". I tried checking that box and hitting OK, but calc presented a dialog box stating "invalid increment", and I was forced to cancel out of the change.

Are there any ideas on how to get rid of the "invalid increment" message so that I can enable regular expressions in my spreadsheet?

I'm running libreoffice 4.2.7.2 build ID 420m0(Build:2) on a standard ubuntu 14.04 LTS installation. If I open this same spreadsheet on a RH6 box running openoffice 4.x, the spreadsheet opens fine and all of the formulas work.

Glenn

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2020-08-19 18:38:14.101359

Comments

We need - minimal the problematic Formula - probably the whole Spreadsheet (without personal data) - to provide a working solution.

karolus gravatar imagekarolus ( 2015-03-21 17:36:30 +0200 )edit

4 Answers

Sort by » oldest newest most voted
0

answered 2015-03-21 19:04:21 +0200

m.a.riosv gravatar image

updated 2015-03-30 23:39:54 +0200

I think is in relation with the option in the same place:

Menu/Tools/Options/LibreOffice Calc/Formula - Iterative references

If the Minimun change is zero gives this error message.

Edited 201503302331

Without the third parameter regular expression doesn't work.

CD2: =MATCH("[0-9]+";G2:CC2; 0 )

LibreOffice help
MATCH
Returns the relative position of an item in an array that matches a specified value. The function returns the position of the value found in the lookup_array as a number.
Syntax
MATCH(SearchCriterion; LookupArray; Type)
SearchCriterion is the value which is to be searched for in the single-row or single-column array.
LookupArray is the reference searched. A lookup array can be a single row or column, or part of a single row or column.
Type may take the values 1, 0, or -1. If Type = 1 or if this optional parameter is missing, it is assumed that the first column of the search array is sorted in ascending order. If Type = -1 it is assumed that the column in sorted in descending order. This corresponds to the same function in Microsoft Excel.
If Type = 0, only exact matches are found. If the search criterion is found more than once, the function returns the index of the first matching value.
Only if Type = 0 can you search for regular expressions.
If Type = 1 or the third parameter is missing, the index of the last value that is smaller or equal to the search criterion is returned. This applies even when the search array is not sorted. For Type = -1, the first value that is larger or equal is returned.
The search supports regular expressions. You can enter "all.*", for example to find the first location of "all" followed by any characters. If you want to search for a text that is also a regular expression, you must precede every character with a \ character. You can switch the automatic evaluation of regular expression on and off in Tools - Options - LibreOffice Calc - Calculate.

edit flag offensive delete link more
0

answered 2015-03-30 09:25:29 +0200

karolus gravatar image

updated 2015-03-30 09:26:43 +0200

Hallo

Start in Items.CD2 with formula:

=IFERROR(MATCH("\d+";G2:CC2;0);"")

start in Items2Bidders.E2 with formula:

=IFERROR(MATCH("\d+";Items.G2:CC2;0);"")

pull both formulas down.

Maybe you also want to capsulate the VLOOKUP(..) in Column D into :

=IFERROR(VLOOKUP(E2;Bidders.A$2:B$51;2);"")
edit flag offensive delete link more
0

answered 2015-03-21 18:13:48 +0200

gdgilda gravatar image

updated 2015-03-30 03:54:28 +0200

Thanks for the tip on the user profile. I read the guide and renamed my ~/.config/libreoffice/4/user directory after closing the spreadsheet. Unfortunately, upon re-opening the spreadsheet, the problem persisted, i.e. I can't enable regular expressions in calc.

On the "Items" tab, look at column CD to see the match function with the regular expression. I'm simply trying to match on a number and return the index of that column to identify a bidder number. If I could enable regular expressions, I believe this would work (as mentioned before, it works fine in openoffice). I'd attach she spreadsheet but don't have 3 points yet. Guess I need to figure out how to do that... in the meantime, the cell formula looks something like this: =MATCH("[0-9]+",G35:CC35) auction debug.ods

Last year I was running ubuntu 12.04 LTS, guessing I was on libreoffice 3 at that time? As I recall, this was working then.

edit flag offensive delete link more

Comments

You should now have enough karma to upload....

karolus gravatar imagekarolus ( 2015-03-21 18:18:47 +0200 )edit

Thanks for adding the karma... I editted my previous post to add the file (auction debug.ods). See items sheet, column CD for the regular expression that doesn't yield what I'm expecting, i.e. the index of a column with a number in it.

gdgilda gravatar imagegdgilda ( 2015-03-30 03:57:50 +0200 )edit
0

answered 2015-03-21 17:37:58 +0200

Lupp gravatar image

updated 2015-03-21 17:38:54 +0200

Such strange errors never reported before are sometimes due to user profile corruption. I would suggest you thoroughly and completely study this guide - and be careful then resetting the profile.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-03-21 16:49:23 +0200

Seen: 385 times

Last updated: Mar 30 '15