Forum Discussion

fyogaff's avatar
fyogaff
Copper Contributor
Apr 08, 2024

If and V lookup help

Hi, I am trying to get the formula to return a space if nothing is contained within my 2nd table (tblPersonnelInfo).  What am I doing wrong?

Here is my data & formula=IF([@NAME]="","",IFERROR(VLOOKUP([@NAME],tblPersonnelInfo,5,0)," "))

and here is my table:

TIA

 

  • fyogaff 

    Try this:

     

    =IF([@NAME]="","",LET(v,IFERROR(VLOOKUP([@NAME],tblPersonnelInfo,5,FALSE),""),IF(v="","",v)))

  • fyogaff 

    Do you get an error with the formula? If so, what does it say?

     

    Could you attach a small sample workbook demonstrating the problem (without sensitive data), or if that is not possible, make it available through OneDrive, Google Drive, Dropbox or similar?

Resources