Answered step by step
Verified Expert Solution
Question
1 Approved Answer
7 ) Use IFERROR to display a message if VLOOKUP doesn t find your entry. To do this we will use a logical function and
Use IFERROR to display a message if VLOOKUP doesnt find your entry.
To do this we will use a logical function and a lookup function together. When I am using logical functions with other functions, I like to build
outward. This means I am working somewhat backwards, but it helps me troubleshoot errors if they come up
Click cell G
Go to the formulas tab and click Insert Function. Select VLOOKUP.
Type Joshua for your lookupvalue
Select the entire data table A:D for your tablearray.
Type which corresponds to No Customers, for your colindexnum.
Type FALSE, which gives an exact match, for your rangelookup.
Click OK
Your cell should now have #NA
Now click cell G again.
First place a parenthesis to the left of the VLOOKUP.
Now add IFERROR between the equal sign and the parenthesis left of the VLOOKUP.
Now add a comma to the right of the farright parenthesis.
Now add Not Found :or some other humorous message
Close the function by adding a parenthesis to the right of your message and hit enter.
Your cell should now have Not Found : or whatever humorous message you chose. The IFERROR function can be nice because it
gives a better visual indicator of why your function did not work, and can be helpful when you are using logicallookup functions on
large datasets.
Question : How many customers did Joshua have? Without an Error message showing.
Not Found :-(
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started