Replace a formula with its result

You can convert the contents of a cell that contains a formula so that the calculated value replaces the formula. If you want to freeze only part of a formula, you can replace only the part you don't want to recalculate. Replacing a formula with its result can be helpful if there are many or complex formulas in the workbook and you want to improve performance by creating static data.

You can convert formulas to their values on either a cell-by-cell basis or convert an entire range at once.

 Important   Make sure you examine the impact of replacing a formula with its results, especially if the formulas reference other cells that contain formulas. It's a good idea to make a copy of the workbook before replacing a formula with its results.

This article does not cover calculation options and methods. To find out how to turn on or off automatic recalculation for a worksheet, see Change formula recalculation, iteration, or precision.

What do you want to do?


Replace formulas with their calculated values

When you replace formulas with their values, Microsoft Excel permanently removes the formulas. If you accidentally replace a formula with a value and want to restore the formula, click Undo Button image immediately after you enter or paste the value.

  1. Select the cell or range of cells that contains the formulas.

If the formula is an array formula (array formula: A formula that performs multiple calculations on one or more sets of values, and then returns either a single result or multiple results. Array formulas are enclosed between braces { } and are entered by pressing CTRL+SHIFT+ENTER.), select the range that contains the array formula. Otherwise, continue to step 2.

To select a range that contains the array formula   

  1. Click a cell in the array formula.
  2. On the Home tab, in the Editing group, click Find & Select, and then click Go To.
  1. Click Special.
  2. Click Current array.
  1. Click Copy, click Paste, and then click the arrow next to Paste Options.

    The following example shows a formula in cell D2 that multiplies cells A2, B2, and a discount derived from C2 to calculate an invoice amount for a sale. To copy the actual value instead of the formula from the cell to another worksheet or workbook, you can convert the formula in its cell to its value by doing the following:
  1. Press F2 to edit the cell.
  2. Press F9, and then press ENTER.

The formula is shown in the formula bar

After you convert the cell from a formula to a value, the value appears as 1932.322 in the formula bar. Note that 1932.322 is the actual calculated value, and 1932.32 is the value displayed in the cell in a currency format.

The value is shown in the formula bar

 Tip   When you are editing a cell that contains a formula, you can press F9 to permanently replace the formula with its calculated value.

Top of Page Top of Page

Replace part of a formula with its calculated value

There may be times when you want to replace only a part of a formula with its calculated value. For example, you want to lock in the value that is used as a down payment for a car loan. That down payment was calculated based on a percentage of the borrower's annual income. For the time being, that income amount won't change, so you want to lock the down payment in a formula that calculates a payment based on various loan amounts.

When you replace a part of a formula with its value, that part of the formula cannot be restored.

  1. Click the cell that contains the formula.
  2. In the formula bar (formula bar: A bar at the top of the Excel window that you use to enter or edit values or formulas in cells or charts. Displays the constant value or formula stored in the active cell.) Formula bar, select the portion of the formula that you want to replace with its calculated value. When you select the part of the formula that you want to replace, make sure that you include the entire operand (operand: Items on either side of an operator in a formula. In Excel, operands can be values, cell references, names, labels, and functions.). For example, if you want to lock the result of a function, you must select the function name, its opening parenthesis, its arguments (argument: The values that a function uses to perform operations or calculations. The type of argument a function uses is specific to the function. Common arguments that are used within functions include numbers, text, cell references, and names.), and its closing parenthesis.

    For example, a formula that calculates a car loan payment with a down payment based on 6 percent of a borrower's annual income ($50,000, contained in cell B2) might look like this: =PMT(0.049/12,60,C2-(B2*0.06)). The total price is contained in cell C2. In the formula, you want to lock the portion B2*0.06 (the portion that calculates the down payment), so you press F2 to edit the formula, select B2*0.06, and press F9. In the formula, B2*0.06 is permanently changed to 3000.
  3. To calculate the selected portion, press F9.
  4. To replace the selected portion of the formula with its calculated value, press ENTER.

If the formula is an array formula (array formula: A formula that performs multiple calculations on one or more sets of values, and then returns either a single result or multiple results. Array formulas are enclosed between braces { } and are entered by pressing CTRL+SHIFT+ENTER.), press CTRL+SHIFT+ENTER.

Top of Page Top of Page

 
 
Applies to:
Excel 2010