# Extract Microsoft Excel Formulas

When you view 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

- Add the following lines to `kvsdk.ini`:

      [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.

_FT_HTML5_bannerTitle.htm