How to Convert a Formula to Value in Excel
From the starting days of my job, I have learned one thing hard way:
Before sending a report (In Excel) to someone we must convert a formula to value.
It simply means to replace a formula with its result value.
Just think this way, when you send a report to someone, they are not concerned with formulas but with the values, a formula returns.
Let me tell you some of the interesting ways to do this but before that...
Why You Should Convert a Formula to Value
Here are some reasons that why you need to replace a formula to its result value.
- If you are sending a report to someone without its source data then it’s better to convert all the formulas into static values.
- There are some Excel functions which are volatile and when you update your worksheet their value will recalculate.
- To prevent the end user to make any change in the calculation.
- Static values are easily editable and anyone can copy-paste them easily.
- You don’t want to confuse end user with complex formulas.
- Or, simply don't want to show them formulas.
A bundle of E-Books you need to thrive in Excel this year.
#1. Paste Values with a Simple Keyboard Shortcut
When it comes to speed and ease, shortcut keys are the best and to turn formulas into values the easiest way is to use a shortcut key.
- Select the range of the cells where you have formulas.
- Press Ctrl + C to copy cells.
By using this shortcut key all the formulas will be replaced with their static result value.
#2. Using Paste Special for Converting to Values
If you don’t like to use a shortcut key then you can simply use the paste special option to replace.
- First of all, select your data range or the entire column.
- And then, right click and copy it.
- Go to Home Tab ➜ Clipboard ➜ Paste ➜ Paste Special.
- Or, you can also press right click and go to Paste Special -> Values.
This method just works like the shortcut key method to replace all the formulas into their static result values.
#3. Using Right-Click Menu
And if you don't want to use paste special then you can use right click drag drop method for this conversion.
- First of all, select the range of the cells where you have formulas.
- Now, right click on the edge of the selection.
- And by holding the right click, drag the range to the right side and instantly bring it back to the original place and drop it.
- Here you will get a option menu.
- From this option menu, select “Copy Here as Values Only”.
This will instantly convert all the formulas from those cells into static result values.
#4. Convert Formulas into Values with a VBA Code
If you want to automatically convert all the formulas into text or numeric values then you can use VBA for that.
Here I have mentioned a simple VBA code where you just need to select the range of the cells and run this macro.
Dim MyRange As Range
Dim MyCell As Range
MsgBox("You Can't Undo This Action. " & _
"Save Workbook First?", _
Case Is = vbYes
Case Is = vbCancel
Set MyRange = Selection
For Each MyCell In MyRange
If MyCell.HasFormula Then
MyCell.Formula = MyCell.Value
#5. Convert To Values Inside the Formula
Let’s think in a different way. You have a complex formula which is a combination of two or three functions.
Here you have a long formula to clean a text value and then convert it into the proper case.
Now if you want to convert the result of two substitute function in a static text values, here are the steps.
- Edit the formula using F2.
- Select only that part of the formula which you need to convert to a static value.
- Press F9.
Now you just have a text value to convert into the proper text case.
#6. Get Formula’s Result Value With Power Query
There could be a situation when you need to get result value of a formula in a separate cell instead of simply converting them.
And in that case, you can use power query. Below you have price table where price is calculated with some calculations.
You need to convert it into values before sending to your customer. But the thing is you don't want to loose all the formulas.
So here are the simple steps to get values from formulas using power query.
- Select the table and go to Data Tab ➜ Get & Transformation ➜ From Table.
- It will open your table into power query editor.
- From here, just click on “Close & Load”.
- Now the power query will insert a new table in a new sheet where you have price values instead of formulas.
The best part is when you make any changes in your formula table you just need to refresh the power query table.
By using this way you don’t need to copy paste data every time.
Sometimes using complex and large formulas make your workbook heavy in size, so it’s better to convert them into absolute values before sharing with others.
And all the methods which we have discussed above can help you in different situations. If you ask me, my favorite one is the keyboard shortcut but I also like to use power query sometimes.
I hope you found this tip useful, but now, tell me one thing.
What’s your favorite one? Do you have any other method which you use while converting formulas into values?
Please share with me in the comment section, I’d love to hear from you and don't forget to share this tip with your friends, I'm sure they will appreciate it.
- Data Filtering Tips: These are the eight tips which you use to save you a ton of time every week […]
- Combine Text from a Range: These some the best methods to combine text from a range of cell [...]
- Unpivot Data: Data in a tabular form is good to use as a report format because it’s easily understandable. But [...]
- Select Non-Contiguous Cells: I can bet that you have never heard about selecting non-continues cells without [...]
- Remove Extra Spaces: One biggest reasons which make our data unable to use is extra spaces in a cell [...]
- Timestamp: In general, it contains the current date and time, and we use it to capture completing [...]
- Multiply Using Paste Special: Sometimes in Excel, you need to perform some quick calculations and you can use [...]
- Insert Bullet Points: In Excel, there is no default way to insert a bullet point like we have in Microsoft Word. But here is the good news [...]
- Convert Negative Number into Positive: You will be amazed that I have got 7 different ways which you can use to deal with negative numbers [...]
- Add Leading Zeros: Whenever you try to insert a zero before a number, Excel removes it and you’ll only get [...]