excel - if vlookup return nothing -
below vlookup formula
=vlookup(setup!$g$6,setup!$b$6:$c$21,2,0)
where setup excel sheet referring data.i want find in case if vlookup doesn't return anything,than cell should return string "bye".
use formula iferror, this:
=iferror(vlookup(setup!$g$6,setup!$b$6:$c$21,2,0),"bye") it returns set in second argument in case first argument returns na error.
if formula capturing blank cell, vlookup return "0" instead of "" (empty).
=if(vlookup(setup!$g$6,setup!$b$6:$c$21,2,0)=0,"bye",vlookup(setup!$g$6,setup!$b$6:$c$21,2,0))
Comments
Post a Comment