View Excel Formulas in Cells: Methods and Shortcuts
In this article
To view Excel formulas in cells, the fastest way is to use the keyboard shortcut Ctrl + ` (the grave accent key, usually located just below the Esc key). This toggles the entire worksheet between showing the calculated results and showing the actual formulas. Alternatively, you can navigate to the Formulas tab on the ribbon and click Show Formulas. This functionality is essential for auditing complex spreadsheets, debugging errors, and verifying that the correct cell references are being used across different sheets.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS).
- An open Excel workbook containing cells with formulas.
- A keyboard with a grave accent (`) key for the shortcut method.
Step-by-Step
- Open your Excel Workbook: Launch Microsoft Excel and open the specific file where you need to inspect the calculations. Ensure you are on the specific worksheet tab that contains the data you want to audit.
- Method 1: Using the Keyboard Shortcut: Press and hold the Ctrl key and then press the ` (grave accent) key. On most standard US keyboards, this key is located to the left of the number 1 key. Once pressed, you will notice that the columns widen automatically and the calculated values are replaced by the literal formulas (e.g., instead of seeing "100", you will see "=SUM(A1:A10)"). To return to the normal view, press Ctrl + ` again.
- Method 2: Using the Ribbon Menu: If you prefer using the mouse, click on the Formulas tab located in the top menu bar of the Excel ribbon. In the Formula Auditing group, locate and click the button labeled Show Formulas. This button acts as a toggle; clicking it once reveals the formulas, and clicking it again hides them. Note that menu labels may differ slightly based on your version of Excel or regional settings.
- Method 3: Viewing a Single Formula via the Formula Bar: If you only need to see the formula for one specific cell without changing the view for the entire sheet, click once on that cell. Look at the Formula Bar (the long white input field located above the column letters). The formula bar always displays the underlying logic of the active cell while the cell itself shows the result.
- Method 4: Double-Clicking the Cell: To edit or view the formula directly inside the cell, double-click the cell. This puts the cell into "Edit Mode," replacing the result with the formula and highlighting the referenced cells in different colors. Press Enter to save the change or Esc to exit without making modifications.
Common Mistakes
One of the most frequent mistakes users make is confusing the grave accent (`) key with the single quote (') key. The shortcut only works with the grave accent. If you press Ctrl + ', you will not trigger the formula view. Another common error is attempting to use this feature on a cell that is formatted as "Text." If a cell is formatted as Text before a formula is entered, Excel treats the formula as a literal string of characters. In this case, the formula will be visible regardless of whether "Show Formulas" is active, but the formula will not actually execute or calculate a result.
Users also sometimes forget that "Show Formulas" expands the column widths. If you have a very large dataset with many complex formulas, toggling this view can significantly change the layout of your screen, making it appear as though the formatting has been broken. It is important to remember that this is a temporary view state and does not permanently alter your column widths or cell formatting.
Tips
To make the most of the formula view, combine it with Trace Precedents. While in the Formulas tab, you can use the Trace Precedents tool to draw blue arrows from the cells that provide data to the active formula. This is incredibly powerful when used alongside the "Show Formulas" mode, as it allows you to visually map the flow of data across a complex workbook.
If you are sharing a workbook with others and want them to see the formulas without them having to find the settings, you can create a "Documentation" sheet. Copy your formulas into this sheet and use the FORMULATEXT function. For example, if your calculation is in cell A1, typing =FORMULATEXT(A1) in another cell will display the formula as a text string. This allows you to keep the results visible in the main sheet while providing a readable map of the logic on a separate page.
For those working with massive spreadsheets, using the Find feature (Ctrl + F) while in formula view can help you locate specific functions. For instance, if you suspect a VLOOKUP is causing a slowdown, search for "VLOOKUP" while formulas are visible to quickly identify every instance of that function in the sheet.
Troubleshooting
The shortcut Ctrl + ` is not working: First, check if your keyboard layout is set to a language other than English. In some international layouts, the grave accent is in a different position or requires a modifier key. If the shortcut fails, use the Ribbon menu (Formulas > Show Formulas) to confirm the feature is working. If neither works, ensure that the sheet is not protected. Some protected sheets restrict the ability to change view modes or enter cells.
The formula is visible, but it's not calculating: This usually happens because the cell is formatted as "Text." To fix this, select the cell, go to the Home tab, change the Number Format dropdown from "Text" to "General," and then double-click the cell and press Enter. This forces Excel to re-evaluate the cell as a formula rather than a label.
The "Show Formulas" button is greyed out: This typically occurs if you are currently editing a cell. If your cursor is blinking inside a cell or the formula bar, Excel is in "Enter" or "Edit" mode, which disables many ribbon commands. Press Enter or Esc to exit the cell, and the button should become active again.
Formulas are showing as #VALUE! or #REF! when viewed: Remember that "Show Formulas" only reveals the logic; it does not fix errors. If you see an error code, it means the formula itself is broken. Use the Error Checking tool in the Formulas tab to step through the calculation and find where the reference is broken.
Frequently Asked Questions
Can I show formulas for only one specific column?
No, the "Show Formulas" toggle is a worksheet-wide setting. To see formulas for only one column, you can either use the Formula Bar by clicking cells in that column or use the =FORMULATEXT() function in an adjacent helper column to display the logic as text.
Does showing formulas change how the file prints?
Yes. If you have "Show Formulas" active when you send the document to the printer or save it as a PDF, Excel will print the formulas instead of the calculated results. Always toggle the view back to the result mode before printing.
Will the Show Formulas mode reveal hidden rows or columns?
No, it does not uncover hidden rows or columns. It only changes the display of the content within the visible cells. To see hidden data, you must select the surrounding rows/columns, right-click, and choose "Unhide."
Is there a way to permanently show formulas in some cells and results in others?
Not using the built-in toggle. The only way to achieve this is to use the =FORMULATEXT() function to mirror the formula in a different cell, or by adding a single apostrophe (') before the equals sign (e.g., '=SUM(A1:A10)'), which converts the formula into a text string.
Does this work in Excel Online (Web version)?
Yes, the "Show Formulas" option is available in the web version under the Formulas tab. However, keyboard shortcuts can sometimes conflict with browser shortcuts, so the ribbon menu is the most reliable method in a web browser.
Can I use this to find circular references?
While "Show Formulas" helps you see the logic, the Error Checking menu under the Formulas tab is the correct tool for circular references. It will specifically point you to the cell that is referencing itself, which is easier than scanning all formulas manually.