Excel Cells Showing Formulas: How to Show or Hide Them
In this article
To make Excel cells show formulas instead of their calculated results, press the keyboard shortcut Ctrl + ` (the grave accent key, usually located just above the Tab key). Alternatively, you can navigate to the Formulas tab and click the Show Formulas button. This feature is essential for auditing complex spreadsheets, debugging calculation errors, and verifying that the correct cell references are being used across different worksheets.
When this mode is active, Excel expands the columns to fit the length of the formulas and displays the raw syntax (e.g., =SUM(A1:A10)) rather than the final number. This is a global setting for the active worksheet, meaning it affects every cell on that specific sheet simultaneously. It does not change the underlying data or the way the formulas function; it simply changes the visual representation of the grid for the user.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS).
- An open Excel workbook containing formulas you wish to inspect.
- Basic familiarity with the Excel ribbon interface.
Step-by-Step
- Open your Excel Workbook: Launch the application and open the file where you suspect a formula error or where you need to perform a logic audit. Ensure you are on the specific worksheet tab that contains the data you want to examine.
- Method 1: Using the Keyboard Shortcut: Locate the grave accent key (`) on your keyboard. On most standard QWERTY keyboards, this is in the top-left corner, directly below the Esc key and to the left of the number 1. Hold down the Ctrl key and press the ` key once. The worksheet will immediately shift from showing results to showing the full formulas.
- Method 2: Using the Ribbon Menu: If you prefer using the mouse, look at the top navigation bar (the Ribbon). Click on the Formulas tab. In the Formula Auditing group, locate and click the button labeled Show Formulas. (Note: Menu labels may differ slightly depending on your version of Excel or regional settings).
- Inspect the Formulas: Once the mode is active, scroll through your data. You will notice that columns have automatically widened to accommodate the text of the formulas. You can now see exactly which cells are being referenced and whether absolute references (with $ signs) or relative references are being used.
- Returning to Normal View: To hide the formulas and return to the calculated results, simply repeat either of the previous methods. Press Ctrl + ` again or click the Show Formulas button in the Formulas tab. The columns will snap back to their original widths, and the results will reappear.
Common Mistakes
One of the most frequent mistakes users make is confusing "Show Formulas" mode with a cell being formatted as Text. If you see a formula in a single cell while all other cells are showing results, you are likely not in "Show Formulas" mode. Instead, that specific cell was probably formatted as "Text" before the formula was entered. In this case, Excel treats the formula as a literal string of text rather than a command. To fix this, change the cell format to "General," click into the formula bar, and press Enter.
Another common error is forgetting to toggle the setting off before printing. If you print a worksheet while "Show Formulas" is active, the printed page will show the raw code instead of the final numbers. Always double-check your view mode in the Formulas tab before sending a document to the printer or exporting it as a PDF.
Users also sometimes mistake the Formula Bar (the long white strip above the grid) for the "Show Formulas" feature. The Formula Bar always shows the formula for the currently selected cell, regardless of whether the global "Show Formulas" setting is on or off. The "Show Formulas" feature is specifically for seeing all formulas across the entire sheet at once without having to click each cell individually.
Tips
For those managing massive spreadsheets with thousands of rows, using the keyboard shortcut Ctrl + ` is significantly faster than navigating the ribbon. It allows you to toggle the view rapidly while scrolling, which is helpful when hunting for a specific logic break in a long column of data.
If you find that your columns are becoming too wide and making the sheet difficult to navigate when formulas are shown, you can manually resize them. However, be aware that Excel's automatic expansion is designed to prevent the formulas from being cut off, which is critical for auditing. If you see a formula that looks truncated, you can hover over the column header boundary and double-click to auto-fit that specific column.
Combine "Show Formulas" with the Trace Precedents and Trace Dependents tools, also found in the Formulas tab. While "Show Formulas" lets you see the text, the tracing tools draw physical arrows on the screen to show you exactly where the data is flowing. This combination is the gold standard for professional spreadsheet auditing.
Troubleshooting
If the keyboard shortcut does not work: Check your keyboard layout. On some non-English keyboards, the grave accent key is in a different location or requires a modifier key. If the shortcut fails, rely on the Formulas > Show Formulas button in the ribbon to confirm the feature is working.
If formulas still appear after turning off the feature: This indicates a formatting issue. Select the affected cells, go to the Home tab, and check the Number Format dropdown. If it says "Text," change it to "General." After changing the format, the formula will not update automatically; you must double-click the cell (or press F2) and then press Enter to force Excel to re-evaluate the content as a formula.
If the cell shows a formula starting with an apostrophe ( ' ): Excel treats any entry starting with a single quote as text. Even if you have "Show Formulas" turned off, the formula will remain visible because the apostrophe tells Excel to ignore the equals sign. Delete the leading apostrophe and press Enter to activate the calculation.
If the worksheet becomes unresponsive: In extremely large workbooks with volatile functions (like OFFSET or INDIRECT), toggling "Show Formulas" can cause a brief freeze as Excel recalculates and adjusts column widths for thousands of cells. If this happens, wait for the process to complete. To prevent this in the future, consider converting some of your complex formulas into static values using Copy > Paste Values if they no longer need to be dynamic.
Frequently Asked Questions
Can I show formulas for only one specific column?
No, the "Show Formulas" feature is a worksheet-wide toggle. You cannot apply it to a single column or row. To see a formula for a specific cell, simply look at the Formula Bar at the top of the screen or double-click the cell.
Does showing formulas affect the calculation speed?
Generally, no. Toggling the view does not change how the formulas are calculated in the background; it only changes how they are displayed on your screen. However, the visual act of expanding columns may cause a slight lag in very large files.
Is there a way to print only the formulas?
Yes. Activate the "Show Formulas" mode using Ctrl + ` or the Formulas tab, and then proceed to File > Print. The print preview will show the formulas exactly as they appear on your screen.
Why does my formula show as text even when "Show Formulas" is off?
This usually happens because the cell was formatted as "Text" before the formula was typed. Change the format to "General" and press Enter inside the cell to fix it.
Does this feature work in Excel Online/Web version?
Yes, the "Show Formulas" option is available in the web version of Excel. You can find it under the Formulas tab, though keyboard shortcuts may vary depending on your browser and operating system.
Can I hide formulas from other users while still showing the results?
Yes, but this is different from the "Show Formulas" toggle. You must format the cells as "Hidden" in the Protection settings and then protect the worksheet with a password. This prevents users from seeing the formula in the Formula Bar, regardless of the view mode.