Replacing Formulas Automatically in Worksheets

1. Overview

To replace any function in all formulas instantly, use the Tools > Convert Function in Formulas command.

You can replace a function with any other function or expression, reuse some or all of the original parameters in any order, embed them in other expressions, mix them with cell references, or combine them with constants.

2. Specifying the Function Pattern

In the first field, specify how the function appears in formulas. Replace actual parameters with letters az. In real formulas, these parameters may be any expressions or nested functions.

Examples:

3. Specifying the Replacement Expression

In the second field, enter the expression that will replace the function. Examples:

After clicking OK, all matching formulas are updated. You can choose whether changes apply to:

If the replacement expression contains new cell references and you want them updated relative to each target cell (as when filling ranges), enable Update relative cell references.

Updating is fast — millions of formulas can be modified instantly. GS-Calc displays how many formulas were changed.

4. Converting Excel XMATCH / XLOOKUP

You can also use this feature to convert Excel formulas, for example when opening an Excel worksheet containing XMATCH or XLOOKUP in older Excel versions.

Replacing XMATCH(a, b, c, d)

Replacing XLOOKUP(a, b, c, d, e, f)

5. Notes on GS-Calc Search Functions

Note: GS-Calc’s match() and vlookup() functions offer more parameters and significantly better performance than Excel’s equivalents.

Even if a range is not sorted, you can still perform fast binary searching by specifying SEARCH::AutoSort (or 1024) in the search mode. GS-Calc sorts internally during the first update and maintains sorting indices automatically. This can result in thousands‑fold speed improvements.

You can also specify which matching occurrence should be returned (first, last, or any specific index).

*

6. Conversion Scripts

To simplify multiple conversions, use Tools > Function Conversion Scripts.

Scripts are named sequences of conversion rules. You can create any number of scripts, each containing any number of conversion definitions.

*