Check IF 0 (Zero) Then Blank (Formula in Excel)

- Written by Puneet

To create an “IF 0 Then Blank” formula in Excel, use the formula: =IF(A1=0, “”, A1). This checks if the value in cell A1 is 0. If true, it returns a blank cell (“”). Otherwise, it returns the value of A1.

Let me break it down:

  • Part-1: A logical test that checks if A1=0 (if the value in A1 is 0).
  • Part-2: If the logical test returns TRUE, the formula returns a blank value.
  • Part-3: If the logical test returns FALSE, the formula returns a blank value.

In the following example, we have a list of numbers in column A, and you must write a condition.

numbers-list

Formula to Check IF 0 (Zero) Then Blank

  1. First, edit cell B2, enter the (=), and then enter the IF function to start the formula.
  2. After that, in the first argument, specify the condition to check values from cell A2 (A2=0).
  3. Now, in the second argument, specify a zero.
  4. And in the third argument, refer to cell A2 back.
  5. In the end, enter the closing parentheses.
if-formula-to-find-zero

Here’s the formula to check if a cell has a zero value and change it to a zero.

=IF(A2=0,"",A2)

How this Formula Works

Now, let’s try to understand how this formula works.

optional-parts-of-if-formula

This formula works in three parts; in the first part where we have a condition that checks if the cell has a value) or not.

IF – We have used the IF function to write a conditional formula.

A2=0 This is the condition where we compare the value in cell A2 with 0. This is the part where we will get the condition’s result as TRUE or FALSE. If the condition is TRUE (that means the value in the cell is 0), and if the condition is FALSE (that means the value in the cell is not zero).

if-formula-with-false

“”,A2 – These are the two returning values which the formula returns, when conditions is met or doesn’t met.

Leave a Comment