Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to replace formulas with results or value in Excel?

Supposing you need to replace formulas with their calculated values in cells, of course you can replace them one by one manually. However, it will waste a lot of time if you are going to replace many ones. Are there easy ways? Yes, the following tricky ways will help you easily replace formulas with their calculated values in selections quickly:

For example, I have a range of formulas, and now I need to replace the formulas with the cell values, as following screenshot shows:


To Actual (Change formulas to the actual values)

to actual 1
doc arrow down
to actual 2
Office Tab Enable Tabbed Editing and Browsing in Office, and Make Your Work Much Easier...
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
  • Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
  • More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words...
  • Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum...
  • Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns...
  • Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Create Mailing List and Send Emails by Cell's Value...
  • Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
  • More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.

arrow blue right bubble Replace formulas with results or values with Paste Special command


The Microsoft Excel's Paste Special command can help you remove all formulas but remain calculated values in cells.

Step1: Select the range that you will work with.

Step2: Press the Ctrl + C keys to copy the selected cells.

Step3: Right click the selected cells, and click the Paste Values button under Paste Options.
doc-convert-formulas-to-values3

Now you have all formulas in the selection replaced with their calculated values at one time.


arrow blue right bubble Replace formulas with results or values with VBA

For experienced users of Microsoft Excel, VBA macro is another good choice to replace formulas with calculated values quickly.

Step1: Hold down the Alt + F11 keys in Excel, and it opens the Microsoft Visual Basic for Applications window.

Step2: Click Insert > Module, and paste the following macro in the Module Window.

VBA for replacing formulas with calculated values:

Sub DisplayedToActual()
'Updateby20131126
Dim Rng As Range
Dim WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
Application.ScreenUpdating = False
For Each Rng In WorkRng
    Rng.Value = Rng.Text
Next
Application.ScreenUpdating = True
End Sub

Step3: Press the F5 key to run this macro. A dialog is displayed for you to select a range to convert to actual values, see screenshot:

Step4: Click OK. and you can see the result shown as below:


arrow blue right bubbleReplace formulas with results or values with Kutools for Excel

If you have Kutools for Excel, its Displayed To Actual tool can help you quickly convert the value or formula in selected cells to the way they are formatted.

Kutools for Excel, with more than 120 handy Excel functions, enhance working efficiency and save working time.

After free installing Kutools for Excel, please do as below:

Step1: Select the range that you will work with.

Step2: Click the Kutools > To Actual, see screenshot:

doc to actual 1

doc arrow down

doc to actual 2

Then the formulas in the selection are converted to the displayed values.

For more detailed information about this feature, please visit Displayed To Actual.

arrow blue right bubbleTo Actual--Replace Formula With Displayed Value



Kutools for Excel: 300 + functions you must have in Excel, 60-day free trial from here

arrow blue right bubble Replace formulas with text by Kutools for Excel

If you want to replace formula with text as below screenshot shown, you can use Kutools for Excel’s Convert Formula to Text utility to convert formulas to texts at once click.

doc replace formula with text 1 2doc replace formula with text 2

After installing Kutools for Excel, please do as below:(Free Download Kutools for Excel Now!)

Select the formulas and click Kutools > Content > Convert Formula to Text. See screenshot:
doc replace formula with text 3

Then the formulas are converted to text, and if you want to convert them back to formula, just click Kutools > Content > Convert Text to Formula.

arrow blue right bubble Replace Formula with Text



Kutools for Excel: 300 + functions you must have in Excel, 60-day free trial from here

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    shane65 · 4 years ago
    Hi,

    Will it be possible to get a Macro that does what the above macro does but for the entire workbook all at once?

    would be of great help if you can write a macro that can.
  • To post as a guest, your comment is unpublished.
    Chimp4life · 4 years ago
    Bah.. nothing new. Already knew all of hose tricks. In fact, I've been using paste special for quite a while. Unfortunately none of those options works for me. I would like to just set my spreadsheets on auto and let Excel do the trick on its own. I was looking to see if the folks at Microsoft have finally left the stone age by coming up with something more creative, more automated than paste special and VBA. Something that does not require cell selection or any other intervention by the user. For instance, it would be handy if there was a way to allow Excel to automatically kill the equations that are no longer needed but without eliminating the values or cell contents. That would be truly awesome. But I guess such a trick is not out of the cave yet so I'll have to live with 'paste special>values' option until we leave Excel prehistory behind.
    • To post as a guest, your comment is unpublished.
      Saysha · 1 years ago
      Hello Friend,

      Can you please make 2 vb code to convert all the linked formula to value
      embedded within the formula. And the next to convert to formula again back to
      normal with linked path. Like pack unpack option.

      I make report in excel file which is linked to various other excel file and
      then I have send this report to management but I don't want this to paste
      special everytime. I just want to pack the formula and then unpack it when I
      need to work on the same file.

      I hope you understand my need.

      Regards

      Saysha
  • To post as a guest, your comment is unpublished.
    Khurram · 5 years ago
    Can it be possible to apply this macro to specific formula in the range. i.e If we want to convert only vlookup formula to values but not sum formula in the selected range.
  • To post as a guest, your comment is unpublished.
    adminjay · 5 years ago
    Please contact me at jaychivo@extendoffice.com

    We welcome all questions, feedback and bug reports. If you're having an issue, we usually need the following information:
    A brief description of the issue and how it can be replicated (if applicable).
    Your Operating system (Windows 8, Windows 7, etc) and the version information of your Microsoft Office.
    Screenshots that illustrate the problem
  • To post as a guest, your comment is unpublished.
    Rakesh Upreti · 5 years ago
    I want to know or to apply script shown in your example but unable to understand about ---- "how to numbering in excel column or row having some cell single and some are merged". Please help me with pdf tutorials with complete explanation or how can i use your tool with complete explanation.

    Thanks
    Rakesh Upreti
  • To post as a guest, your comment is unpublished.
    SARAH I · 5 years ago
    THIS IS A LIFE SAVER... THANK YOU!!