» Altering the results returned by VLOOKUP.
CATEGORY - Lookup Formulas
VERSION - All Microsoft Excel Versions
Column B contains values to look up in List1 (Column A).
How could we alter the results returned by the VLOOKUP function so that they will include the original value looked up and a ""Found""/""Not Found"" indication?
Solution:
Use the ISNA and VLOOKUP functions in an IF statement, as follows:
=IF(ISNA(VLOOKUP(B2,$A$2:$A$7,1,FALSE)),B2&"" Not Found"",VLOOKUP(B2,$A$2:$A$7,1,FALSE)&"" Found"")
List1_____Values to look______Result
Blue______Pink________________Pink Not Found
Red_______Blue________________Blue Found
Green_____White_______________White Not Found
Black_____Purple______________Purple Not Found
Yellow____Red_________________Red Found
Orange

Book Store:
Recommended Books:
- PowerPoint® 2002 For Dummies®
- The Total Money Makeover. : A Proven Plan for Financial Fitness
- The New Financial Order: Risk in the Twenty-First Century
- AWAKEN THE GIANT WITHIN : HOW TO TAKE IMMEDIATE CONTROL OF YOUR MENTAL, EMOTIONAL, PHYSICAL AND FINANCIAL
- Positioning: The Battle for Your Mind
- Personal Finance for Dummies
No comments have been submitted.


