Skip to main content

How to replace # formula errors with 0, blank or certain text in Excel?

You may often meet some error values in Excel workbooks, such as #DIV/0, #VALUE!, #REF, #N/A, #NUM!, #NAME?, #NULL. And here we will show you some useful methods to search and replace these # formula errors with 0 (zero), blank, or any text string in Microsoft Excel. Take the table below as an example, let's read on to find out how to search and replace the error values in the table:

doc-remove-formula-errors-1

Replace # formulas errors with 0, any specific values, or blank cells with IFERROR

Replace # formulas errors with specific numbers with ERROR.TYPE

Search and replace # formula errors with 0, any specific values, or blank cells with Go To command

Search and replace # formula errors with 0, any specific values, or blank cells with Kutools for Excel


Replace # formulas errors with 0, any specific values, or blank cells with IFERROR

Microsoft Excel has an inbuilt function IFERROR, which allows you to easily convert any kinds of error values to any values as you want.
As shown in the example below, just enter =IFERROR(value, value_if_error) in a blank cell, and you will get the value itself if it's not an error, or the value_if_error if value is an error.

In the table above, you can see that the #N/A error value has been converted to a blank cell, a number and a specified text string respectively. You can change the value_if_error to any values as you need as shown in the example below:

Note: In the formula =IFERROR(value, value_if_error), the value can be supplied as a formula, expression, value, or cell reference. And value_if_error can be an empty string, text message, numeric value,or another formula or calculation. When you supply a text message as value_if_error, remember to enclose it with double quotes ("").



Replace all error values in selected range with blank, zero or certain text in Excel:

Kutools for Excel's Error Condition Wizard utility helps you easily replace all error values or a certain kind of error value such as #N/A with blank, zero, or certain text as you need in Excel. Download the full feature 30-day free trail of Kutools for Excel now!


Replace # formulas errors with specific numbers with ERROR.TYPE

Normally we can use Microsoft Excel's ERROR.TYPE function to return a number that corresponds to a specific error value.
In our example below, by using the ERROR.TYPE function in a blank cell, you will get the number codes for specific error values, so that different # formula errors will be converted to different numbers:

No.
# Errors
Formulas
Converted to
1
#NULL!
=ERROR.TYPE(#NULL!)
1
2
#DIV/0!
=ERROR.TYPE(#DIV/0!)
2
3
#VALUE!
=ERROR.TYPE(#VALUE!)
3
4
#REF!
=ERROR.TYPE(#REF!)
4
5
#NAME?
=ERROR.TYPE(#NAME?)
5
6
#NUM!
=ERROR.TYPE(#NUM!)
6
7
#N/A
=ERROR.TYPE(#N/A)
7
8
#GETTING_DATA
=ERROR.TYPE(#GETTING_DATA)
8
9
others
=ERROR.TYPE(1)
#N/A

Of course, you can drag the Fill handle to convert other formula errors to numbers across ranges. However, these numbers are too many to remember and apply clearly.


Search and replace # formula errors with 0, any specific values, or blank cells with Go to command

This way is able to convert all # formula errors in a selection with 0, blank or any other values easily with Microsoft Excel's Go To command.

Step 1: Select the range that you will work with.

Step 2: Press the F5 key to open the Go To dialog box.

Step 3: Click the Special button, and it opens the Go to Special dialog box.

Step 4: In the Go to Special dialog box, only check the Formula option and Errors option, see screenshot:

doc-remove-formula-errors-2

Step 5: And then click OK, all # formula errors have been selected, see screenshot:

doc-remove-formula-errors-3

Step 6: Now just enter 0 or any other value that you need to replace the errors, and press Ctrl + Enter keys. Then you will get all selected error cells are filled with 0.

doc-remove-formula-errors-4

Of course, you can delete all of error cells with pressing the Delete key, leaving the blank cells.


Search and replace # formula errors with 0, any specific values, or blank cells with Kutools for Excel

If you have Kutools for Excel installed, its Error Condition Wizard tool will make your work easy to replace all kinds of formula errors with 0, blank cells, or any custom messages.

Before applying Kutools for Excel, please download and install it firstly.

1: Select the range with the error values that you want to replace with zero, blank or text as you need, then click Kutools > More > Error Condition Wizard. See screenshot:

2. In the Error Condition Wizard dialog box, please do as follows:

(1) In the error types section, select an error type as you need such as Any error value, Only the #N/A error value or Any error value except #N/A. Here I select the Any error value option.

(2) In the Error display section, if you want to replace all error values with blanks, please check the Nothing (a blank cell) option.

For replacing all error values with zero or a certain text, please select the A message (text) option, enter number 0 or the certain text you need into the blank box.

(3) Click the OK button.

And then you can see all error values in selected range are replaced with blanks, zeros, or certain text as you specified above immediately. See screenshots:

Replace all error values with blank

doc replace error1

Replace all error values with zero

doc replace error1

Replace all error values with certain text

doc replace error1

  If you want to have a free trial (30-day) of this utility, please click to download it, and then go to apply the operation according above steps.


Search and replace # formula errors with 0 or blank with Kutools for Excel


Related article:

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (3)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Thank you very much.great usefull information
This comment was minimized by the moderator on the site
thanks a ton. really helpful
This comment was minimized by the moderator on the site
thank you sooo sooo much really helped a LOT :lol:
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations