VLOOKUP.. that uses T/F values

using a vlookup.  Is there a way to chg the formula to say something like.  If true, put a "Y" and the cell and if false put an "N" in the cell?

=VLOOKUP(LEFT(A5,9),Sheet1!A:B,2,FALSE)

Please advise and thanks.
RWayneHAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Your question is not clear.

Do you want to place a Y in the formula cell if LEFT(A5,9) is found in column A of Sheet1 and a N if it is not found?

Would help if you can upload a sample workbook with desired output filled manually.
RWayneHAuthor Commented:
Lets make it easier.
=VLOOKUP(A5),Sheet1!A:B,2,FALSE)  If True = Y and if False = F
RWayneHAuthor Commented:
I have

=IF(ISNA(VLOOKUP(A1,HighlightRangeOrInsertNamedRange,1,FALSE)),"Whatever text you want here",VLOOKUP(A1, HighlightRangeOrInsertNamedRange,1,FALSE))

but it only covers the if N/A or False side,  how do we add the true piece?
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

NorieAnalyst Assistant Commented:
Perhaps.

=IF(ISNUMBER(MATCH(LEFT(A5,9),Sheet1!A:A,0)), "Y", "N")
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
I don't think I get you correctly. Both the Vlookup formulas are same in your IF statement.
ISNA is evaluated to be True if a formula returns #N/A.
So in general the formula should be like this.....

=IF(ISNA(Vlookup_Formula),"N","Y")
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
So your original formula will become like this....

=IF(ISNA(VLOOKUP(LEFT(A5,9),Sheet1!A:B,2,FALSE)),"N","Y")

Open in new window

Saurabh Singh TeotiaCommented:
You can do something like this...

=VLOOKUP(LEFT(A5,9),Sheet1!A:B,2,if(b5="Y",0,1))

Open in new window


Assuming you putting value of Y/N in B1 and it will change the vlookup to true or false accordingly..

Saurabh...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RWayneHAuthor Commented:
Thanks for the help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.