简体   繁体   中英

VLOOKUP only returning some results despite all data there [Office 365]

I have recently upgraded to 365 from 2016 and found that when trying to use the same VLOOKUP formula as I have been doing previously, only some values are returned (looks like it is the pure number based ID's are failing to be returned).

I have tried recreating this sheet and recreating the formula (normally a copy and paste from a previous sheet works fine). Double checked to make sure that the ID's are definitely in the data.

=(VLOOKUP(D3,Sheet2!$B$1:E1999,4,FALSE)*E2)

电子表格

This returns N/A, however I have double checked that cell D3's value does exist in Sheet2's array.

电子表格2

It should be returning 53.11 but instead shows N/A. I have checked to make sure that there are no hidden spaces or characters or duplicate entries for this ID.

电子表格3

As you can see from this picture, ID's with text in them are returning a result as expected. It's just the numerical ones that are not.

If you have any suggestions, please let me know. Thanks!

Managed to get this to working using the IFERROR formula. Long winded, but does the job.

=IFERROR((VLOOKUP(VALUE(D3),Sheet2!$B$1:E1999,4,FALSE)*E2),VLOOKUP(D3,Sheet2!$B$1:E1999,4,FALSE)*E2)

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