IFERROR, INDEX, MATCH returns zeros instead of spaces

I use the following formula:

=IFERROR(INDEX('Cleaned Post'!W:W,MATCH(Combined!$C2,'Cleaned Post'!$C:$C,0))," ") 

This formula works beautifully, except for empty cells it returns "0". I want empty cells to return as empty.

In particular, this is what I have

Sheet 1 (entitled "Purified Mail")

 Name Email Age Gender Task #1 Andrew 888@gmail.com 18 1 80 Jason 687@gmail.com 20 1 95 Judy 432@gmail.com 18 2 __ Jack 236@gmail.com 24 1 65 

Sheet 2 (called Combined) - What I Get

  Email Task#1 888@gmail.com 80 687@gmail.com 95 432@gmail.com 0 236@gmail.com 65 

Sheet 2 (called Combined) - What I Want

  Email Task#1 888@gmail.com 80 687@gmail.com 95 432@gmail.com __ 236@gmail.com 65 

What do I need to do to adjust this formula?

+9
excel excel-formula excel-match
source share
2 answers

What values ​​does your formula return? If these are text values, just combine the β€œnull string” with your INDEX/MATCH formula as follows:

 =IFERROR(INDEX('Cleaned Post'!W:W,MATCH(Combined!$C2,'Cleaned Post'!$C:$C,0))&"","") 

This also works for numbers, except that it converts them to text, so if you do not want you to try this version:

 =IFERROR(IF(INDEX('Cleaned Post'!W:W,MATCH(Combined!$C2,'Cleaned Post'!$C:$C,0))="","",INDEX('Cleaned Post'!W:W,MATCH(Combined!$C2,'Cleaned Post'!$C:$C,0))),"") 
+19
source share

I understand this is an old post, but ... I agreed to use conditional formatting ... if the return value was 0, change the color of the text so that it matches the background ...

0
source share

All Articles