简体   繁体   中英

Excel 2010 vlookup #n/a error while value exists

I am trying to use:

VLOOKUP to get the value of the ID colum in the below image:

在此处输入图像描述

The formula returns #N/A error although the value exists!

The formula I am using is:

=VLOOKUP(J13,$C$2:$D$10,1,FALSE)

Need help resolving this please. Thanks.

Use index() with match(). Vlookup() only works to the right of the indexing column.

So:

=index(C2:C10,match(J13,D2:D10,0))

Or you could do the lazy solution of swapping col C with Col D, but other formulae you have may then fail...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM