How to show all formulas in excel

You can control the display of formulas in the following ways:

Show Formulas in desktop

Click on Formulas and then click on Show Formulas to switch between displaying formulas and results.

Press CTRL + ` (grave accent).

Note: This procedure also prevents the cells that contain the formula from being edited.

  1. Select the range of cells whose formulas you want to hide. You can also select nonadjacent ranges or the entire sheet.

  2. Click Home > Format > Format Cells.

  3. On the Protection tab, select the Hidden check box.

  4. Click OK.

  5. Click Review > Protect Sheet.

  6. Make sure the Protect worksheet and contents of locked cells check box is selected, and then click OK.

Click the Review tab, and then click Unprotect Sheet. If the Unprotect Sheet button is unavailable, turn off the Shared Workbook feature first.

If you don’t want the formulas hidden when the sheet is protected in the future, right-click the cells, and click Format Cells. On the Protection tab, clear the Hidden check box.

Show Formulas in the web

Click on Formulas and then click on Show Formulas to switch between displaying formulas and results.

This post is going to show you all the different ways you can show the formulas in your Microsoft Excel spreadsheets.

Normally when you create a formula in Excel it will return a calculated value in the cell.

But you might want to see the formula and not the value it generates. This can be very useful for inspecting your formulas for potential errors.

Showing your formulas will also help you to familiarize yourself with a new spreadsheet and what items are calculations and which are static data.

When the need to view your formulas arises, how do you show them in the grid instead of the values? Get your copy of the example workbook used in this post and read on to find out!

Show Formulas from the Formula Bar

This method is the most simple and straightforward way to view your formulas.

When you select any cell, it will show any formula in the formula bar.

This is also the most limited method as it will only allow you to view one formula at a time.

Show Formulas with Edit Mode

This method will still only allow you to view one formula at a time, but with the added functionality that it will show you any formula precedents.

Select the cell with the formula which you want to view and then press the F2 key to go into edit mode. You can also double-click on a cell to enter edit mode.

This will show the formula in the grid and dependent ranges will be highlighted on the screen.

Press Enter or Esc to exit edit mode and return to the normal mode.

Show Formulas from the Formula Tab

Excel has a feature that will allow you to see all the formulas in your sheet at once. This can be found in the Formula tab.

Follow these steps to show all your formulas on a sheet.

  1. Go to the Formulas tab.
  2. Select the Show Formulas option.

When you select this option all the formulas in the current sheet will be shown instead of their calculated values.

As you select a cell it will also show the formula precedents in the current sheet similar to the edit mode.

📝 Note: Show Formulas is a sheet-level setting so you will need to turn it on for each sheet you want to show formulas on.

When this feature is enabled, you will see the formulas in the grid and the Show Formulas button in the Formulas tab will be highlighted.

Click on the Show Formulas button to turn off the formula view and return to the normal calculated value view.

Show Formulas with a Keyboard Shortcut

There is a very convenient keyboard shortcut to show and hide the Show Formulas view.

Press Ctrl + ` on your keyboard to view the formulas in your sheet.

📝 Note: The ` grave accent key can usually be found above the Tab key on most keyboards.

Press Ctrl + ` again to hide the formulas in your sheet.

This is a very easy way to quickly show and hide the formula view in any sheet.

Show Formulas from the Excel Options

The Show Formulas option can also be enabled from the Excel Options menu.

Open the Excel Options menu and follow these steps.

  1. Go to the Advanced settings in the Excel Options menu.
  2. Scroll down to the Display options for this worksheet section.
  3. Select the sheet on which you want to show formulas.
  4. Check the Show formulas in cells instead of their calculated results option.
  5. Press the OK button.

This is the exact same as showing the formulas through the Formulas tab or with the keyboard shortcut but it’s much less convenient.

Show Formulas with the FORMULATEXT Function

All the previous methods are only able to show either one or all the formulas at the same time.

But you might want to show only a selected range of formulas while showing the calculated values for all others.

This is possible and you can use the FORMULATEXT function to accomplish this. This function will convert the formula in a cell into a text value.

= FORMULATEXT ( E3 )

The above formula will convert the formula in cell E3 into text and it will be delayed in the cell as text.

This is a great way to add documentation to your spreadsheets as you can show the users the exact formula that is being used without much effort.

It is also a dynamic solution since the text will update if you change the formula in the reference cell!

Show Formulas with Text Format

You can also show formulas instead of a calculated value by formatting the cell as text.

This is often a frustration for users. When a formula doesn’t calculate and only shows the formula text, it’s likely a text formatted cell that’s causing this.

Follow these steps to format your cells as text.

  1. Select the range of cells to format.
  2. Go to the Home tab.
  3. Select Text from the format dropdown found in the Number section.

This will convert the calculated results of any existing formula into text values. In this example, you can see the results are left aligned indicating they are text values instead of the previous currency values.

But they still are showing the calculated values and not the formula text.

Any new formulas you enter into the text formatted cells will not calculate and will instead show the formula text in the cell.

You can also re-enter the current formulas by pressing F2 and then Enter while on the cell. This causes the cell to display the formula text.

The text formatting will force Excel to interpret anything you enter in the cell as text. Even a formula starting with an equal sign = is interpreted as text.

Show Formulas with Find and Replace

Another way to force Excel to interpret your formula as text is with the apostrophe character ' at the start.

You can manually add the apostrophe character before the equal sign '= and the formula will show as text on the sheet.

If you want to use this trick on multiple cells, then you can use the find and replace feature to find any equal signs = and replace them with '=.

  1. Select the range of cells with the formulas you want to show.
  2. Press Ctrl + H on your keyboard to open the Find and Replace menu.
  3. Add the equal sign = character into the Find what input.
  4. Add the apostrophe and equal sign '= into the Replace with input.
  5. Select the Formulas option from the Look in dropdown.
  6. Press the Replace All button.

This will add a leading apostrophe to all the formulas and cause them to display as text. The Apostrophe is only visible in the formula bar when the cell is selected and not visible in the grid.

⚠️ Warning: Removing these leading apostrophes can’t be done with the Find and Replace menu. If you try to find '= and replace it with =, Excel will warn you it wasn’t able to find anything to replace.

An alternative option to the apostrophe is to use any character that isn’t used in your formulas. For example, the pipe character | isn’t frequently used and will result in an easier removal to convert the cell back into a formula.

You can find = and replace it with |=.

The only drawback to using another character like the pipe character | is it will show up in the grid. But you will be able to convert these into calculating formulas much easier by finding |= and replacing it with =.

Show Formulas with VBA

The Show Formulas command in the Home tab is a very convenient way to display all the formulas in a sheet.

But what if you want to show the formulas in all the sheets? You would have to turn this feature on across all your sheets. In large workbooks, this would be a tedious task.

Thankfully, you can use a VBA macro to turn on or off the Show Formulas option across all your sheets.

Go to the Developer tab and select the Visual Basic option to open the VBA code editor. You can also open the editor with the Alt + F11 keyboard shortcut.

Go to the Insert tab in the visual basic code editor and select Module from the options. This will create a new module where you will be able add your VBA code.

Sub ShowFormulas()
Dim sheet As Worksheet
Dim IsShown As Boolean
IsShown = Not (ActiveWindow.DisplayFormulas)
'Loop through each sheet and set formula display
For Each sheet In Worksheets
    sheet.Activate
    ActiveWindow.DisplayFormulas = IsShown
Next sheet
End Sub

Add the above code to your new module. This will loop through all the sheets in your workbook and toggle the Show Formula setting on or off depending on the status of the active sheet when you run the code.

You can then run this VBA macro to quickly turn on or off the Show Formulas feature across all the sheets.

Conclusions

Viewing the formulas in your Excel files is an essential activity when troubleshooting your calculations or familiarizing yourself with someone else’s work.

The formula bar or the cell edit mode are great ways to view one formula at a time, but other methods are needed if you want to show more than one formula in your sheet.

This is when you will need the Show Formula feature and it can be accessed from the Home tab, keyboard shortcut, or the Excel Options menu.

There are also options such as text formatting, the FORMULATEXT function, or using the Find and Replace menu to convert your formulas to text. These allow you to show formulas in a selected range while all other formulas in your sheet show the calculated values.

VBA can also be used to toggle on or off the Show Formulas feature across all your sheets. This can save you a lot of clicks in larger workbooks.

Have you ever used any of these methods for showing your formulas in the grid? Let me know in the comments below!

About the Author

John MacDougall

John is a Microsoft MVP and qualified actuary with over 15 years of experience. He has worked in a variety of industries, including insurance, ad tech, and most recently Power Platform consulting. He is a keen problem solver and has a passion for using technology to make businesses more efficient.

  1. Newsletter
  2. EXTRA CREDIT

By Wendy Tietz, CPA, Ph.D.; Jennifer Cainas, CPA, DBA,; and Tracie Miller-Nobles, CPA

There are a number of different ways that you can display formulas in Excel. This can be useful when investigating why a certain formula isn’t working correctly or when grading your students’ worksheets to ensure they are using formulas correctly.

Display formulas using the Show Formulas command

To show formulas in Excel, you can click on the Formulas tab and then click Show Formulas.

show-formulas

This will show all formulas in the Excel worksheet.

fill-table

Toggle formulas on and off

You can also use a keyboard shortcut command to toggle formulas on and off. On your keyboard, typing the shortcut command Ctrl+`, will toggle on (or show) the formulas. (Note that the ` in this shortcut is the grave accent mark, usually located to the left of the 1 key on your keyboard.) Typing the shortcut command Ctrl+` again will toggle off the formulas.

on-off

Display formulas using the FORMULATEXT function

Occasionally you might want the formula to be displayed as a text string next to the formula. This can be especially useful when you want to see both the result of the formula and the formula on the same worksheet, or when introducing formulas to students. In these cases, you can use the FORMULATEXT function.

The FORMULATEXT function returns a formula as a text string, as seen in the screenshot below. In that example, if you wanted to show the formula of cell D3 in cell F3, you would input the following formula: =FORMULATEXT(D3).

formulatext

filltable-2

There are a couple of important items to be aware of when using the FORMULATEXT. First, note that you can use it to reference a cell in another worksheet or workbook, but the workbook must be open. Otherwise, Excel will return an #N/A error value.

Excel will also return an #N/A error value if you use FORMULATEXT on a cell that doesn’t contain a formula, or if the formula can’t be displayed due to worksheet protection.

Wendy Tietz, CPA, CGMA, Ph.D., is a professor of accounting at Kent State University in Kent. Ohio; Jennifer Cainas, CPA, DBA, is an instructor of accountancy at the University of South Florida in Tampa; and Tracie Miller-Nobles, CPA, is an associate professor of accounting at Austin Community College in Austin, Texas. See their site AccountingIsAnalytics.com for resources they have developed for teaching data analytics in introductory accounting. To comment on this article or to suggest an idea for another article, contact senior editor Courtney Vien at Courtney.Vien@aicpa-cima.com.


How to Show Formulas in Excel

You can better understand what’s going on in your workbooks by showing and highlighting all the formulas in a sheet.

Show/Hide Formulas

By default, Excel displays the results of formulas in the worksheet instead of showing the actual formulas. However, you can choose to have Excel display the formulas so you can see how they’re put together.

  1. Click the Formulas tab.
  2. Click the Show Formulas button.

    Display Formulas Show/Hide Formulas

    Formulas are displayed in the worksheet and the columns widen to accommodate the formulas, if necessary.

    If you display formulas and then select a cell that contains a formula, colored lines appear around cells that are referenced by the formula.

  3. Click the Show Formulas button again to hide the formulas.

    Display Formulas Show/Hide Formulas

Formulas are no longer displayed and the columns return to their original sizes.

Highlight Formulas

If you don’t want to see the actual formulas, but want to know which cells contain them, highlight cells with formulas instead.

  1. Click the Home tab.
  2. Click the Find & Select button.
  3. Select Formulas.

    Display Formulas Show/Hide Formulas

Any cells that contain a formula are highlighted; however, this doesn’t change the cell formatting. When you click any other cell in the worksheet, the highlighted cells are unselected.


Excel Cheat Sheet

FREE Quick Reference

Click to Download

Free to distribute with our compliments; we hope you will consider our paid training.

By default, Excel shows the results of formulas. To show the formulas instead of their results, press CTRL + ` (you can find this key above the tab key).

1. When you select a cell, Excel shows the formula of the cell in the formula bar.

Formula Bar

2. To display all formulas, in all cells, press CTRL + ` (you can find this key above the tab key).

Show Formulas in Excel

3. Press ↓ twice.

Referenced Cells

Note: as you can see, Excel highlights all cells that are referenced by a formula.

4. To hide all formulas, press CTRL + ` again.

5. If you can’t find the grave accent (`) on your keyboard, on the Formulas tab, in the Formula Auditing group, click Show Formulas.

Click Show Formulas

6. To hide all formulas, click Show Formulas again.

7. You can also use the FORMULATEXT function in Excel to display formulas in adjacent cells.

FORMULATEXT function

Tip: visit our page about formula auditing in Excel to learn more about tracing precedents, tracing dependents, error checking, etc.

Like this post? Please share to your friends:
  • How to set up excel
  • How to read this word
  • How to set numbering in word
  • How to read the word clothes
  • How to set margins in word