How to Fix Excel Formula Showing Zero Due to Custom Number Format
Question details
User needs to resolve an issue where valid formula results appear as zero, blank, or currency due to incorrect custom accounting formats.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Calculating percentages or other values in a spreadsheet where a custom accounting format is already applied to the output cells.
- Observed behavior
- The formula calculates correctly in the background, but the cell displays the result incorrectly as zero, blank, or a currency value.
Select the affected cell and look at the formula bar at the top of your screen to verify that the underlying formula is actually producing the correct result before modifying the cell formatting.
Change Cell Format to General or Percentage
The quickest way to reveal the true formula result is to remove the restrictive custom format and apply a standard format suitable for the data.
Often, a cell might inherit a custom Accounting format that cannot properly display fractions or percentages, rounding them down to zero or showing a currency symbol. Reverting to a standard format clears this mask.
Highlight the cell or range of cells displaying the incorrect zero, blank, or currency value.
Right-click the selected cells and choose "Format Cells" from the context menu, or press the Ctrl+1 shortcut on your keyboard.
Navigate to the "Number" tab. Select "General" from the Category list to remove all specific formatting, or choose "Percentage" if your formula is calculating a percentage rate (e.g., 0.12 to 12%).
Click "OK" to apply the changes. The cell should now display the accurate formula result.

Modify the Custom Number Format Code
If you need to maintain a specific custom format, you must ensure its sections correctly handle the type of decimal or percentage data your formula outputs.
Manage Cell Formatting Effortlessly with WPS Office
WPS Spreadsheet offers a highly compatible and intuitive interface for managing complex cell formats. You can easily switch between General, Percentage, and Custom Accounting formats to ensure your formulas display perfectly.
- 1. Open your spreadsheet in WPS Office: Launch WPS Spreadsheet and open your document containing the formatting issue.
- 2. Select the problematic cells: Highlight the cells showing zero or incorrect formatting instead of the formula result.
- 3. Change the format: Right-click, select "Format Cells", and choose "General" or "Percentage" under the Number tab to instantly fix the display issue.

Frequently Asked Questions
Why does my Excel formula show 0 instead of the value?
This usually happens when the cell is formatted to display only whole numbers or uses a restrictive custom format (like Accounting) that visually rounds small decimal numbers (such as 0.12) down to zero. Changing the cell format to General or Percentage will reveal the true value.
Can a formula be wrong even if the format is correct?
Yes. If changing the format to 'General' still shows a zero, check the formula itself for errors, ensure you do not have circular references, and verify that the referenced cells contain the correct data and are not empty.
How do I display a zero as a blank in a custom format?
You can hide zeros by modifying the custom number format code. In the Format Cells > Custom menu, use a format like `0;-0;;@`. The third section (representing zero values) is intentionally left blank between the semicolons, which hides the zero.
Why does my percentage formula result show as currency?
The cell likely has an Accounting or Currency format applied to it from a previous action or inherited from referenced cells. Simply right-click the cell, open Format Cells, and change the category to Percentage to fix the display.




