If Statement for Blank/Empty Cells

Nanogirl21

Active Member
Joined
Nov 19, 2013
Messages
330
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am using the below 3-way lookup. How would I modify it to return a blank/empty cell if the lookup contains an error or if there isn't any text in the lookup results? The formula i'm using is returning 0 if the lookup is valid, but the lookup results don't contain text.

VBA Code:
=IFERROR(INDEX(Attendees!$B$4:$M$45, MATCH(G1&G2,Attendees!$B$4:$B$45&Attendees!$C$4:$C$45,0), MATCH(G5,Attendees!$B$3:$M$3,0)),"")
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
If what you're trying to return is text, not a numeric value, you can just add &"" to it:

=IFERROR(INDEX(Attendees!$B$4:$M$45, MATCH(G1&G2,Attendees!$B$4:$B$45&Attendees!$C$4:$C$45,0), MATCH(G5,Attendees!$B$3:$M$3,0)),"")&""

It's trickier if you have a number.
 
Upvote 0
If what you're trying to return is text, not a numeric value, you can just add &"" to it:

=IFERROR(INDEX(Attendees!$B$4:$M$45, MATCH(G1&G2,Attendees!$B$4:$B$45&Attendees!$C$4:$C$45,0), MATCH(G5,Attendees!$B$3:$M$3,0)),"")&""

It's trickier if you have a number.

Worked perfectly. Thank you. There isn't any numbers.
 
Upvote 0
I was hoping there weren't any numbers! You'd have to double the size of your formula. I'm glad this worked for you, thanks for the feedback. :cool:
 
Upvote 0

Forum statistics

Threads
1,215,053
Messages
6,122,888
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top