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

Popular posts from this blog

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

javascript - Confirm a form & display message if form is valid with JQuery -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -