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

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
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,214,839
Messages
6,121,887
Members
449,057
Latest member
Moo4247

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