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

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -