Excel IFERROR Function to Return Blank Instead of 0

In this article, we’ll demonstrate 3 practical examples of how to get the Excel IFERROR function to return a blank Instead of 0.


Introduction to the Excel IFERROR Function

The IFERROR function tests an expression to see whether it returns an error value. If the expression returns an error, the function returns a specified output. But if the expression is not an error, it’ll return the value of the expression itself. The arguments are: value and value_if_error.

value: The expression that will be tested for an error.

value_if_error: The value to be returned if an error is found.


Excel IFERROR Function to Return Blank Instead of 0: 3 Useful Examples

The IFERROR function returns 0 by default when an error is found. Let’s see how to get it to return a blank instead.


Method 1 – Using Formulas to Return a Blank Instead of a 0 with ISERROR

In the sample dataset below, if in the ISERROR function we divide cell D5 by cell D6, the division output will be an error because D6 is blank, so ISERROR will return 0.

Let’s return a blank instead.

Steps:

  • Select cell C10.
  • Enter the following formula:
=IFERROR(D5/D6, "")
  • Press Enter.

A blank cell is returned.


Method 2 – Combining the IFERROR & VLOOKUP Functions to Return Blank Instead of 0

The VLOOKUP function looks for a particular value in the specified range, and retrieves the corresponding value from another specified column if a match is found. Here, we’ll combine IFERROR & VLOOKUP functions to return a blank instead of 0.

In the following dataset, we’ll search for Wil in the range B5:D8. If a match is found, we’ll retrieve the value in the same row from the third column, otherwise we’ll return a blank cell.

Combine Excel IFERROR & VLOOKUP Functions to Get Blank Instead of 0

Steps:

  • Select cell C10.
  • Insert the following formula:
=IFERROR(VLOOKUP(B10, B5:D8, 3,FALSE), "")
  • Press Enter.

A blank cell is returned as Wil is not in the range.

Combine Excel IFERROR & VLOOKUP Functions to Get Blank Instead of 0

NOTE: The VLOOKUP function looks for the value of cell B10 (Wil) in the range B5:D8. As this value is not in the range, the IFERROR function returns a blank cell.

Method 3 – Using Nested IFERROR with the VLOOKUP Function to Return a Blank Instead of 0

In our last example, we’ll use multiple IFERROR and VLOOKUP functions to form a nested formula. In the below dataset, we’ll search for Wil in the range B5:D6 and B8:D9.

Apply Nested IFERROR with VLOOKUP for Returning Blank In Excel

Steps:

  • Select cell C11.
  • Enter the following formula:
=IFERROR(VLOOKUP(B11,B5:D6,3,0),IFERROR(VLOOKUP(B11,B8:D9,3,0),"" ))
  • Press Enter.

A blank cell is returned.

Apply Nested IFERROR with VLOOKUP for Returning Blank In Excel

NOTE: The VLOOKUP function looks for B10 (Wil) in the range B5:D6. As it’s not there, it’ll search again for Wil in the range B8:D9. The IFERROR function returns a blank cell as Wil is not present in either of the ranges.

Read More: How to Use Multiple IFERROR Statements in Excel


Download Practice Workbook


Related Articles


<< Go Back to Excel IFERROR Function | Excel Functions | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Aung Shine
Aung Shine

Aung Shine completed his bachelor’s in Electrical and Electronics Engineering from Bangladesh University of Engineering and Technology. It has been almost 2 years since he joined SOFTEKO and actively working on the ExcelDemy project. Currently he works as a Team Leader where he guides his team members to create technical content. He has published 150+ articles and reviewed 50+ articles. He has also solved various user problems before. He has interests in Data Analysis, Power Query, Advanced Excel,... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo