do not want a value if vlookup is false

alethea2000

Board Regular
Joined
Nov 27, 2003
Messages
67
Hi

I am doing a vlookup but if the thing i am looking up is not there i want it to come back with nothing or a work saying no, how can i do this please. thanks ali
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Add the error handling portion:

=If(ISNA(Vlookup(....),"",Vlookup(...))
 
Upvote 0
How about this:

=IF(A4<>"",VLOOKUP(Sheet1!$A$4,Sheet2!$L:$U,10,FALSE),"")

:lol:
 
Upvote 0
thank you for your help but i cannot seem to get this to work, error my side

my formula currently is
=VLOOKUP(B2,EmpDB.xls!$C$2:$D$9494,2)

how should this look. thank again
 
Upvote 0
Try copying this to your sheet.

=If(isna(VLOOKUP(B2,EmpDB.xls!$C$2:$D$9494,2,0)),"",VLOOKUP(B2,EmpDB.xls!$C$2:$D$9494,2,0))
 
Upvote 0
EXCELLENT THANKS TO YOU BOTH I HAVE USED

=If(isna(VLOOKUP(B2,EmpDB.xls!$C$2:$D$9494,2,0)),"",VLOOKUP(B2,EmpDB.xls!$C$2:$D$9494,2,0))

I have never hear of isna before what does it mean.

thanks again
 
Upvote 0
It means if the value you are looking for is not available (hence ISNA), then return what you asked for, ("") else return the value your looking for.

Look in the Function dialogue, under the Inforation Category for further help.
 
Upvote 0

Forum statistics

Threads
1,224,396
Messages
6,178,390
Members
452,844
Latest member
Shebl

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