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
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
OK, I see you don't actually have any 1 row arrays in your vlookup formulas.

That was apparently just a simplified example of the formula, where you removed the named range (lookupcontainer)


Also, when using named ranges, you don't need to specify the sheetname in your formulas because the sheetname is already specified in the named range.
So your formulas can be

=IFERROR(IF(VLOOKUP(A66,LookupContainer,10,0)="","",VLOOKUP(A66,LookupContainer,10,0)),"")



Now, this is a case where using INDEX/MATCH instead of vlookup can be very advantageous.
You have 22 columns with 235 Rows = 5170 Formulas
Doing the error checking and test for "", each formula does a match type function twice.

So in total, you're doing a match type function 5170 X 2 = 10340 times.

Using index/match, you can reduce that to 470 times, just twice for each row.


Are you looking to improve performance of your sheet?
 
Last edited:
Upvote 0
That's a more simplified formula. The information regarding named ranges is a great help.

Now, as far as INDEX/MATCH go, I was actually looking at and trying to understand the difference between the two yesterday. Now that I'm getting more used to Vlookup and the power behind it, INDEX/MATCH will be a fun challenge.

Improvement's to the worksheet:

I'm not sure how one would go about improving beyond the simplified formula you provided. I think it's a terrific improvement from two days ago for sure, if you know what I mean.

Without having the incredible grasp (yet) of formulas, macro's etc., you kind people have, my boss may ask me to dig a round hole in the dirt, (build you a spreadsheet with certain required formulas). However, with my current limited knowledge (thank the Lord for this website), the hole will appear round, but instead of using a shovel (your level of excel understanding) I used a 2x4 to dig it with :laugh: .

Good thing is...it's functional. I look forward to the day I can just pop in a module and be on my happy way. The fun is getting there!

Thank you for so much for everyone's care and considerations.
dh
 
Upvote 0
OK, I see you don't actually have any 1 row arrays in your vlookup formulas.

That was apparently just a simplified example of the formula, where you removed the named range (lookupcontainer)


Also, when using named ranges, you don't need to specify the sheetname in your formulas because the sheetname is already specified in the named range.
So your formulas can be

=IFERROR(IF(VLOOKUP(A66,LookupContainer,10,0)="","",VLOOKUP(A66,LookupContainer,10,0)),"")



Now, this is a case where using INDEX/MATCH instead of vlookup can be very advantageous.
You have 22 columns with 235 Rows = 5170 Formulas
Doing the error checking and test for "", each formula does a match type function twice.

So in total, you're doing a match type function 5170 X 2 = 10340 times.

Using index/match, you can reduce that to 470 times, just twice for each row.


Are you looking to improve performance of your sheet?
Would this Index/Match be performed by a formula? If so, would it still return values similar to vlookup?
 
Upvote 0
Check you're email.
I sent the file back with improved INDEX/MATCH replacing the Vlookup.

Basically put
=IFERROR(MATCH(A66,INDEX(LookupContainer,0,1),0),"")
In an available columns (X)

Then used
=IF(INDEX(LookupContainer,X66,10)="","",INDEX(LookupContainer,X66,10))

Instead of Vlookup.


And since this is XL2007, and we have the IFERROR function, we only have to do the match ONCE per row.
So 235 match functions, instead of 10340
 
Last edited:
Upvote 0
You will need to send the improved worksheet to the email I will send you via pm...when I figure out how to send you a pm :)
 
Upvote 0
You will need to send the improved worksheet to the email I will send you via pm...when I figure out how to send you a pm :)

You cen Send email from work, but not recieve?...hmm..

You can just reply to the PM I sent you, or just click on my name, that will bring up a menu with Send PM.
 
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