if(len(vlookup with error

gabdid

New Member
Joined
Mar 21, 2022
Messages
20
Office Version
  1. 365
Platform
  1. MacOS
I am having trouble getting in a isblank in my formula. its a vlookup on a isblank cell, i also need the vlookup to have the error but i dont want the N/A if the cell its getting the information from is blank;

First part: =IF(ISBLANK(E49);"";E34+7) - works fine
Second part: =IF(LEN(VLOOKUP(E32;Sheet1!U2:W865;3;0))=0;"";VLOOKUP(E32;Sheet1!U2:W865;3;0)) - this is where i need to also add make it blank if cell E32 is blank so i dont get the N/A

Can someone help me?

Thanks in advance!
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi & welcome to MrExcel
How about =let(v,VLOOKUP(E32;Sheet1!U2:W865;3;0),if(or(E32="",v=""),"",v))
 
Upvote 0
Thanks!!

I tried that now and i get the error message "The first argument of LET must be a valid name" - sorry i have never used LET so not sure what it means...
 
Upvote 0
Swap the commas for semi-colons.
 
Upvote 0
Actually i spoke to soon - i still get the N/A instead of blank in the cell. it works when the cell is not blank but when it is i get the N/A
 
Upvote 0
Screenshot 2022-03-21 at 16.12.46.png
 
Upvote 0
Ok, how about
Excel Formula:
=LET(v;VLOOKUP(E32;Sheet1!U2:W865;3;0);IF(E32="";"";IF(v="";"";v)))
 
Upvote 0
Solution
Magic - now it works, thanks a million - have a great rest of the day :)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,317
Members
449,081
Latest member
tanurai

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