IF with VLOOKUP formula not returning specific text

asnary

New Member
Joined
Jan 14, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
This formula works:
=VLOOKUP('Quote Notes'!B4,'[ml_customer list plus.xlsx]Customer List +'!A4:Z2001,21,FALSE)

Column 21 has some cells that are empty and in those instances I would like the return to read "Please provide"

I have tried:
=IFERROR(VLOOKUP ....) but realized this isn't an error, its just empty
~ and ~
=IF(VLOOKUP('Quote Notes'!B4,'[ml_customer list plus.xlsx]Customer List +'!A4:Z2001,21,FALSE)="'',"Please provide")
which does not work
~ and ~ a number of other combinations

I have ensured that the cells in column 21 are in fact empty and that the destination cell is formatted to receive text ('General')

Any ideas?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Welcome to the Board!

One way is to use this structure:
VBA Code:
=IF(VLOOKUP('Quote Notes'!B4,'[ml_customer list plus.xlsx]Customer List +'!A4:Z2001,21,FALSE)="","Please provide",VLOOKUP('Quote Notes'!B4,'[ml_customer list plus.xlsx]Customer List +'!A4:Z2001,21,FALSE))
 
Upvote 0
Solution
Welcome to the Board!

One way is to use this structure:
VBA Code:
=IF(VLOOKUP('Quote Notes'!B4,'[ml_customer list plus.xlsx]Customer List +'!A4:Z2001,21,FALSE)="","Please provide",VLOOKUP('Quote Notes'!B4,'[ml_customer list plus.xlsx]Customer List +'!A4:Z2001,21,FALSE))
Joe4 thank you so much! I invested about 3 hrs on my own investigating and just couldn't find the right combo. This works. Many thanks!
 
Upvote 0
Welcome to the MrExcel board!

A more compact structure that you could also use with your 365 version is
Excel Formula:
=LET(r,'[ml_customer list plus.xlsx]Customer List +'!A4:Z2001,v,INDEX(FILTER(r,INDEX(r,0,1)='Quote Notes'!B4,""),1,21),IF(v="","Please provide",v))
 
Upvote 0
Joe4 thank you so much! I invested about 3 hrs on my own investigating and just couldn't find the right combo. This works. Many thanks!
You are welcome.

The structure if just this:
=IF(VLOOKUP(...)="","Please Provide","VLOOKUP(...))
Basically you are saving if the formula returns a blank, return something, otherwise, return the value from the formula.
So you are having to repeat the formula twice.

Peter's method avoids having to do that, but I admit I have not played around with the new LET function yet.
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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