Vlookup - return exact phrase

D

duketter

Excel 2007 - I am trying to create a vlookup formula that returns an exact
phrase if there is or is not a match. So far I have this:
=IFERROR(VLOOKUP(I5,'32pl'!B:B,1,FALSE),"Manual")

If there is not a match, it correctly returns "Manual" in my cell. However,
if there is a match, I want it to return the word "Auto" in my cell.
 
D

Dead.Zone

Here is one solution...

Expand your VLookup to columns B and C. (B:C) In column C, put the word
Auto in every cell (or, alternatively, you could put a different value for
each row.) Then Hide column C. (you could use security to protect the
column, if necessary.) Then, change the column index number in your VLookup
from 1 to 2. When a match is found, you'll see the value in column C. When
it's not found, you'll see your error message.
 
J

Jacob Skaria

=IF(ISERROR(VLOOKUP(I5,'32pl'!B:B,1,FALSE)),"Manual","Auto")


If this post helps click Yes
 
F

Francis

I don't have 2007, but believe this this should also work in 2007
try
=IF(ISERROR(VLOOKUP(I5,'32pl'!B:B,1,FALSE)),"Manual","Auto")
this will return the text Auto if there is a match otherwise its will give
you Manual
--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top