Categorising Vlookup #N/A error

New Contributor

I would like to know if there are any methods to easily identity why the Vlookup formula returns #N/A. So far I have come across two scenarios where it is shown #N/A.
1. When there is a mismatch / typo between the lookup value and the value in respective table array.
2. When the lookup value is not found in the respective column in table array.

Is there any ways to categorise / differentiate the #N/A error between these two types in order to easily identify and correct the cases in first scenario instead of going through all the #N/A cells.

I am doing vlookup for a text which is formatted in "company". There will be changes to the dates after the name but I want to identify only typos in the company name part and not the dates.
3 Replies

@Bharathgopi Excel can't differentiate between a company name that was incorrectly spelled and  a correctly spelled company name that does not exist in a look-up table. In both cases, the company name is not found with #NA! as the result.


Now, your other question as I understand it is how to look-up only the company names that are part of a larger text string. In your example the names and dates are separated by a hyphen. Then you could do something like this:

Screenshot 2020-12-02 at 07.14.19.png




Thank you for your reply.


The formula which you had mentioned doesn't work in my case because the table array values also contains the same format which is "Company". 


I have added a snip to show an example how my lookup value looks and how my table array values look and also the result I expect to get using some Vlookup formula or with a combination of vlookup and other formulas. 

Let me know if it is feasible.


Thanks & Regards

BharathExcel query.PNG


@Bharathgopi Sorry. Can't answer. Your picture doesn't show the formula you used. Please upload the file.