Home

Vlookup for when it can't find AND when it's blank

%3CLINGO-SUB%20id%3D%22lingo-sub-342885%22%20slang%3D%22en-US%22%3EVlookup%20for%20when%20it%20can't%20find%20AND%20when%20it's%20blank%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-342885%22%20slang%3D%22en-US%22%3E%3CP%3EI%20currently%20have%20the%20following%20formula%20set%20up%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3E%3D%3C%2FSPAN%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3EIFERROR%3C%2FSPAN%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3E(%3C%2FSPAN%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3EVLOOKUP%3C%2FSPAN%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3E(%3C%2FSPAN%3E%3CSPAN%3EC163%3C%2FSPAN%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3E%2C%3C%2FSPAN%3E%3CSPAN%3EValidator!K%3AL%3C%2FSPAN%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3E%2C%3C%2FSPAN%3E%3CSPAN%20class%3D%22number%22%3E2%3C%2FSPAN%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3E%2C%3C%2FSPAN%3E%3CSPAN%20class%3D%22boolean%22%3EFALSE%3C%2FSPAN%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3E)%3C%2FSPAN%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3E%2C%3C%2FSPAN%3E%3CSPAN%20class%3D%22%20string%20%22%3E%22Click%20to%20learn%20more%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3E)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3EThat%20means%20it%20looks%20up%20text%20in%20another%20table%20to%20find%20a%20result%2C%20and%20if%20the%20title%20in%20C163%20isn't%20there%20it%20returns%20the%20value%20'click%20to%20learn%20more.'%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%20default-formula-text-color%22%3EThis%20is%20great%2C%20but%20i%20would%20also%20like%20to%20add%20an%20extra%20layer.%20If%20C163%20is%20blank%20(ie%20its%20not%20that%20the%20text%20can't%20be%20found%20in%20the%20lookup%20table%2C%20its%20that%20cell%20C163%20is%20completely%20blank)%20I%20would%20like%20it%20to%20return%20an%20empty%20cell.%20Is%20that%20possible%3F%20How%20can%20i%20do%20that%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-342885%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%20Formula%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIF%20Formula%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIFERROR%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Evlookup%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-343225%22%20slang%3D%22en-US%22%3ERe%3A%20Vlookup%20for%20when%20it%20can't%20find%20AND%20when%20it's%20blank%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-343225%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20may%20wrap%20your%20formula%20like%3C%2FP%3E%0A%3CPRE%3E%3DIF(ISBLANK(C163)%2C%22%22%2CIFERROR(VLOOKUP(C163%2CValidator!K%3AL%2C2%2CFALSE)%2C%22Click%20to%20learn%20more%22))%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
cblabey
Occasional Visitor

I currently have the following formula set up

 

=IFERROR(VLOOKUP(C163,Validator!K:L,2,FALSE),"Click to learn more")

 

That means it looks up text in another table to find a result, and if the title in C163 isn't there it returns the value 'click to learn more.'

 

This is great, but i would also like to add an extra layer. If C163 is blank (ie its not that the text can't be found in the lookup table, its that cell C163 is completely blank) I would like it to return an empty cell. Is that possible? How can i do that?

1 Reply

Hi,

 

You may wrap your formula like

=IF(ISBLANK(C163),"",IFERROR(VLOOKUP(C163,Validator!K:L,2,FALSE),"Click to learn more"))

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
16 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
11 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies