A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
If VLOOKUP works for the first few rows but returns #N/A farther down, the lookup range may be moving as the formula is copied. Hidden characters or wildcard symbols can also prevent valid matches.
Here are some suggestions you can try:
First, lock the lookup table with dollar signs. For example:
=VLOOKUP(A2,$F$2:$G$500,2,FALSE)
Press F4 after selecting F2:G500 in the formula to add the dollar signs, then fill the formula down again. Absolute references keep every row searching the same table. VLOOKUP best practices recommend this when filling formulas down.
If the data was copied from a website, PDF, or another system, it may contain non-printing characters that TRIM does not remove. Clean the lookup column in a temporary column with:
=CLEAN(SUBSTITUTE(F2,CHAR(160)," "))
Copy the cleaned results, then use Paste Special > Values over the original lookup column.
Also check whether lookup values contain * or ?. VLOOKUP treats these as wildcards. To search for the actual character, place ~ before it, such as ~* or ~?.
Thank you for your patience in reading, I hope this information has been helpful to you.
If the answer is helpful, please click "Yes" and kindly upvote it. If you have extra questions about this answer, please click "Comment."
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.