Excel is the most widely used tool when it comes to dealing with huge datasets. We can perform myriads of tasks of multiple dimensions in Excel. Sometimes, we need to convert formula to value in Excel. In this article, I am going to show you 6 effective methods to convert formula to value automatically in Excel.
This is the dataset that I am going to use. I have some students along with their marks in Physics, Math, and Total marks (calculated using the SUM function). I will convert the Total marks to values.
1. Applying Paste Special Feature to Convert Formula to Value Automatically in Excel
Now I will show the use of the Paste Special feature to convert formulas to values.
- Select E5:E11. Press CTRL+C to copy the range.
You can also copy them using the context menu.
- After selecting, bring the context menu by right-clicking your mouse and then select Paste Special.
- Paste Special window will appear. Check Values >> click OK.
Excel will convert the formulas to values.
2. Using Paste as Value Option to Convert Formula to Value
You can also use Paste Values from the context menu directly to convert formulas to values.
- Select E5:E11 and copy them.
- Then select values from the Paste Options of the context menu.
- Excel will do the rest.
3. Converting Formula to Value Automatically with Keyboard Shortcuts
You can use multiple keyboard shortcuts to convert formula to value automatically in Excel. In this section, I will describe them one by one.
3.1 Using ALT+E+S+V Keys Simultaneously
This method will basically show the keyboard shortcuts to convert formulas using the Paste Special feature.
- Press CTRL+C to copy the range E5:E11.
- Then press ALT+E+S+V one by one. Do not press them together. You will see that the Paste Special window has popped up. Click OK.
The formulas will turn into values.
3.2 Pressing F9 Key
Let’s look at another keyboard shortcut that will serve our purpose.
- Select E5. Go to the formula bar to edit the cell. Then select the formula.
- Now press F9. Excel will show the values.
Note: Though this method is easy to execute, it takes a lot of time to convert the formulas one by one if the dataset is huge.
4. Holding and Hovering the Mouse to Convert Formula to Value
You can also use your mouse to convert formula to value automatically in Excel.
- Select the range C5:C11.
- Then hover your mouse to bring the 4-arrow pointer (see image).
- Then keep right-clicking the mouse and move the cursor to the destination where you want to paste the values. Select Copy Here as Values Only.
Excel will copy the values only.
5. Using Excel Power Query to Convert Formula to Value Automatically
Now I will show how to use Power Query to convert formulas to values.
- Select the entire dataset. Then go to the Data tab >> select From Table/Range.
- Create Table box will pop up. Select the range for your table >> check My table has headers >> click OK.
- Power Query window will appear. Click Close & Load.
- Excel will return the numbers as values in a separate worksheet.
6. Applying VBA Code for Converting Formulas to Value Automatically
Now I will convert formulas to value automatically with VBA.
- Press ALT + F11 to open the VBA window.
- Then go to Insert >> select Module.
- A new module will pop up. Write down the following code.
Dim rn As Range
Dim Cell As Range
Set rn = Selection
For Each Cell In rn
If Cell.HasFormula Then
Cell.Formula = Cell.Value
- Now press F5 to run the code. Excel will convert the formulas to values.
Things to Remember
- You can also open a VBA window from the Developer tab.
- Press ALT, then E, then S, and finally V. Do not press them together.
- You can press SHIFT+F10 to bring the context menu.
Download Practice Workbook
Download this workbook to practice while going through this article.
In this article, I have demonstrated 6 effective methods to convert formulas to values in Excel. I hope it helps everyone.
- Convert Formula to Value Without Paste Special in Excel
- Convert Formula to Value in Multiple Cells in Excel
- How to Convert Formula Result to Text String in Excel
- Putting Result of a Formula in Another Cell in Excel