ComputerNovice
ComputerNovice

Reputation: 5

Excel If Match Formula Help Needed

Can someone please help me with the following excel formula

=IF(ISERROR(MATCH(A81,$E:$E,0)),"Sold Out Product","Existing Product")

The formula works however, when I drag the formula down to blank cells the formula displays “Sold Out Product” and I would like the formula to display nothing for blanks cells

Screenshot of Formula and Results

Revised Screenshot of Formula and Results

Revised Screenshot of Formula and Results

Upvotes: 0

Views: 83

Answers (2)

R3uK
R3uK

Reputation: 14537

Just wrap it to test if the cell is empty :

=IF(A81<>"",IF(ISERROR(MATCH(A81,$E:$E,0)),"Sold Out Product","Existing Product"),"")

So for the 2nd row :

=IF(A2<>"",IF(ISERROR(MATCH(A2,$E:$E,0)),"Sold Out Product","Existing Product"),"")

Upvotes: 3

Harun24hr
Harun24hr

Reputation: 36750

What about this.

=IF(ISERROR(MATCH(A81,$E:$E,0)),"","Existing Product")

Upvotes: 0

Related Questions