Vlookup returning a blank cell

dhally

Board Regular
Joined
May 9, 2011
Messages
58
Hello;
I have viewed numerous threads regarding: Vlookup returning a blank cell if is lookup returns #NA.

Yet, when I use the the accepted formula format given on many different websites I get a return of a number zero when I really want a return of a blank cell. Here is my original Vlookup formula:
=VLOOKUP(A300,'VLOOKUP_FOR_BLANK_RANTALA_Request For SAP Upload Form.xlsx'!LookupContainer,12,FALSE)

Here is the formula I had hoped would return a blank cell:
=IF(ISNA(VLOOKUP(A301,'VLOOKUP CONTAINER'!K301:L301,2)),"",(VLOOKUP(A301,'VLOOKUP CONTAINER'!K301:L301,2))

Any help would be very appreciated. Thank you in advance
dh
 
It works perfect.

I can't tell you how many threads I viewed on this particular "vlookup..return blank cell value". I Saw plenty of the IFERROR(Vlookup...) but
and none of them showed the "T" (text) portion of the formula syntax as yours which of course did the trick.

This is why I didn't sign up to post on any other sites except Mr. Excels question board!

Very happy and many grateful thank you's,
dh
Glad it helped you out. Thanks for the feedback!

Think outside the box! ;)
 
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
One more question T. Valko,
The "T" value in the formula works fine when text is present but numbers don't show up numbers are present.
 
Upvote 0
Try:

=IFERROR(IF(VLOOKUP(A301,'VLOOKUP CONTAINER'!K301:L301,2,0)="","",VLOOKUP(A301,'VLOOKUP CONTAINER'!K301:L301,2,0)),"")
 
Upvote 0
One more question T. Valko,
The "T" value in the formula works fine when text is present but numbers don't show up numbers are present.
If the returned value can be either text or numbers then use this version:

=IFERROR(IF(VLOOKUP(A301,'VLOOKUP CONTAINER'!K301:L301,2,0)="","",VLOOKUP(A301,'VLOOKUP CONTAINER'!K301:L301,2,0)),"")
 
Upvote 0
Hello;
I have viewed numerous threads regarding: Vlookup returning a blank cell if is lookup returns #NA.

Yet, when I use the the accepted formula format given on many different websites I get a return of a number zero when I really want a return of a blank cell. Here is my original Vlookup formula:
=VLOOKUP(A300,'VLOOKUP_FOR_BLANK_RANTALA_Request For SAP Upload Form.xlsx'!LookupContainer,12,FALSE)

Here is the formula I had hoped would return a blank cell:
=IF(ISNA(VLOOKUP(A301,'VLOOKUP CONTAINER'!K301:L301,2)),"",(VLOOKUP(A301,'VLOOKUP CONTAINER'!K301:L301,2))

Any help would be very appreciated. Thank you in advance
dh
If you have many instances to check...

=IFERROR(IF(V(VLOOKUP(A301,'VLOOKUP CONTAINER'!K301:L301,2,0))="","",V()),"")

where V() is a function in VBA that you can add to your workbook as a module:

Public Function V(Optional vrnt As Variant) As Variant
'
' Stephen Dunn
' 2002-09-12
'
Static vrntV As Variant
If Not IsMissing(vrnt) Then vrntV = vrnt
V = vrntV
End Function
 
Upvote 0

Forum statistics

Threads
1,225,169
Messages
6,183,315
Members
453,155
Latest member
joncaxddd

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