KeyView 24.4
KeyView Filter SDK .NET Programming Guide

# Formulas - Microsoft Excel

When you filter a Microsoft Excel spreadsheet, KeyView extracts the value of each cell. The value of a cell might be calculated from a formula, but the formula is not included in the output unless you configure KeyView to include it. You can extract the cell value, the formula, or both. For example, if you choose to extract both the cell value and the formula, the output might look like this:

    245 = SUM(B21:B26)

In this example, the calculated value from the cell is `245` and the formula from which the value is derived is `SUM(B21:B26)`.

NOTE: Depending on the complexity of the formulas, enabling formula extraction might result in slightly slower performance.

To extract formulas

- In the .NET API, call the method `Formulas` on your session configuration. For example:

      session.Config().Formulas(ShowFormulasAs.ValuesAndFormulas);

- You can extract formulas by adding the following parameter to `formats.ini`. (This is an alternative approach - you do not need to do this if you have configured this feature through the API).

      [Options]
      getformulastring=option

  where `option` is one of the following:

  Option | Description
  --- | ---
  `0` | Extract the cell value only. This is the default.
  `1` | Extract the formula only.
  `2` | Extract the formula and the cell value.

  If a function in a formula is invalid, and option 1 or 2 is specified, only the calculated value is extracted.

Copyright 1997-2024 Open Text
Version 24.4 | Last updated September 2024

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: IDOL KeyView 24.4

Topic Title: Formulas - Microsoft Excel