Formula Errors

How to Replace Excel #### Errors with a Blank or Custom Symbol

Amos GikundaAmos Gikunda Oct 20, 2026 870 views

Question details

The user wants to replace #### errors in Excel with blanks or specific custom symbols.

How to Replace Excel #### Errors with a Blank or Custom Symbol
Product
Excel
Device & OS
not provided
Scenario
Calculating time differences or handling numeric values that result in negative times or text overflow.
Observed behavior
The target cell displays a series of hash characters (####) instead of the expected calculated value or a clean blank space.
Before you start

Before altering your formulas, double-check if the #### error is simply due to the column being too narrow by double-clicking the column header right boundary to auto-fit the width.

Solution 1Recommended

Use an IF Formula to Handle Negative Times

Prevent #### errors by using an IF function to display a blank or custom symbol when a calculation results in a negative time value.

Excel's default date system cannot process or display negative time values, resulting in the #### error. Using an IF statement lets you intercept the negative calculation and display a more visually appealing alternative, such as an empty cell or a custom text character.

1
Select the target cell

Click on the cell where you want the time difference or calculation result to appear.

2
Enter the IF formula

Type the formula =IF(A1-B1<0, "", A1-B1) into the formula bar. Replace A1 and B1 with your actual cell references.

3
Apply custom symbols (optional)

If you want to show a specific symbol instead of a blank space, replace the empty quotation marks with your symbol, such as =IF(A1-B1<0, "-", A1-B1) or =IF(A1-B1<0, "N/A", A1-B1).

4
Press Enter

Press Enter to apply the formula. Negative results will now be intercepted and show your chosen blank or symbol.

Use an IF Formula to Handle Negative Times
Formatting Tip: Ensure the cell containing the formula is formatted as Time or a Custom time format (like h:mm) so that the positive results display correctly.
Seamless Spreadsheet Calculations

Easily Manage Spreadsheets and Formulas with WPS Office

WPS Spreadsheet provides a highly compatible environment for handling your workbook data. You can effortlessly utilize standard functions like IF to manage data display errors, calculate time correctly, and seamlessly adjust formatting.

  1. 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your existing spreadsheet document.
  2. 2. Apply the IF formula: Select the cell showing the #### error and enter the standard formula =IF(A1-B1<0, "", A1-B1) in the formula bar.
  3. 3. Format easily: Right-click the cell, select 'Format Cells', and effortlessly manage your date and time displays under the Number tab.
Fully compatible with Microsoft Excel file formats (.xlsx, .xls, .csv).Intuitive formula builder with built-in error checking.Easy-to-use interface for adjusting column widths and cell formats.Lightweight, fast performance, and free to download.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my spreadsheet show #### instead of a number?

This happens when a column is not wide enough to display the entire number or date, or when a formula calculates a negative date or time, which the default date system is not designed to display.

Can I use IFERROR to hide #### errors?

No, because the #### display caused by negative time or narrow columns is not classified as a standard formula error (like #VALUE! or #DIV/0!). You need to use an IF function to test for negative values logically.

How do I show negative time values without hiding them?

To display negative time as a normal value (e.g., -1:30), you can change your workbook settings to use the 1904 date system. Go to Options > Advanced, and under 'When calculating this workbook', check the 'Use 1904 date system' box.