Vlookup help

RattlingCarp3048

Board Regular
Joined
Jan 12, 2022
Messages
166
Office Version
  1. 365
Platform
  1. Windows
Hello, newbie here to the platform! I have a pretty decent understanding with excel but I cant seem to figure this one out. Any help is appreciated!!

I need to create a formula that says: if the vlookup is 0 or #N/A return blank, otherwise return the vlookup data.

=iferror(if(len(vlookup(date string))=0," ",vlookup(data string))," ")

I tried this one below but at the end when I click enter it just leaves the formula string in the cell. It doesn't actually work the formula. Any thoughts?
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
the length of the string will not be blank
if you want zero or an error to be blank

=IF ( OR( Iserror(vlookup), vlookup = 0 ) , "" , vlookup )
Also you are using " " , which is NOT a blank cell - its putting a space
"" is a blank cell
 
Upvote 0
Tried but no luck. When I click enter the formula remains in the cell. See pictures.

=if(or(iserror(vlookup(U2,'Yesterday's Log'!U:V,2,0),vlookup(U2,'Yesterday's Log'!U:V,2,0)=0),"",vlookup(U2,'Yesterday's Log'!U:V,2,0)

No spaces anywhere in the entire string
 
Upvote 0
Try
Excel Formula:
=IF(IFERROR(VLOOKUP(U2,'Yesterday''s Log'!U:V,2,0),"")="","",VLOOKUP(U2,'Yesterday''s Log'!U:V,2,0))
 
Upvote 0
Solution
That formula will not return #N/A & will only return 0 if that is what is in col V
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,948
Messages
6,122,420
Members
449,083
Latest member
Ava19

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