vlookup #N/A error

pkaur

New Member
Joined
Jun 24, 2024
Messages
3
Office Version
  1. 2021
Platform
  1. Windows
Some of the values comes up with #N/A error as a result when I m using vlookup. I can see that the values exist, but it only comes up when I actually type the value in the source column. The format matches, there are no hidden spaces or anything. what can be the reason?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Just a guess but there might be an empty string with no space i.e. UNICHAR(8203). Notice A1 looks like a continuous " ABCXYZ " string, but there's an empty string in the middle. It looks identical to B1 but has different lengths. The usual TRIM and CLEAN don't remove those.

Book1
ABCDE
1ABCXYZABCXYZ76
Sheet3
Cell Formulas
RangeFormula
A1A1="ABC" & UNICHAR(8203) & "XYZ"
B1B1=SUBSTITUTE(A1,UNICHAR(8203),"")
D1:E1D1=LEN(A1:B1)
Dynamic array formulas.
 
Upvote 0
i checked length of each cell by using LEN function. its showing that each cell has 5 digits
 
Upvote 0
Welcome to the Board!

Can you show us exactly what one of these values that is erroring looks like?
And show us your VLOOKUP formula?

Also, confirm that they REALLY are equal.
Let's say one is in cell A2 and the match is in cell Z10. Then enter this formula in any blank cell:
Excel Formula:
=A2=Z10

If it returns TRUE, then Excel sees the values really are the same, which would suggest the issue is with your formula.
If it returns FALSE, then the value are not the same, so you probably have a data issue.
 
Upvote 0
It wasn't the same. something might be hidden. it worked now. Thanks.
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,164
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top