IFERROR VLOOKUP

Tgpitch16

New Member
Joined
Jul 8, 2015
Messages
25
Office Version
  1. 365
Platform
  1. Windows
I'm trying to accomplish three things within my formula and it isn't working. What am I doing wrong? Any help would be greatly appreciated.

1) Display a message when D18 is blank
2) Return VLOOKUP value
3) Return a different message when VLOOKUP doesn't exactly match a value in my table

=IF(LEN(D18)>1,VLOOKUP(D18,Table2[#All],2,FALSE),"Blank message"),IFERROR(VLOOKUP(D18,Table2[#All],2,FALSE),"No matches message")
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
How about:
Excel Formula:
=IF(D18<>"",IFERROR(VLOOKUP(D18,Table2[#All],2,FALSE),"No matches message"),"Blank message")
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Done
 
Upvote 0
Thanks for that.
How about
Excel Formula:
=let(v,VLOOKUP(D18,Table2[#All],2,FALSE),if(d18="","Blank",IF(ISNA(v),"No match",v)))
 
Upvote 0

Forum statistics

Threads
1,215,067
Messages
6,122,949
Members
449,095
Latest member
nmaske

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