我已经测试过,如果使用 vlookup 在自我表中搜索“=vlookup(h2, A2:B2000, 2, False)”并从其他表返回值“=SupplierList!A2”和“=vlookup(SupplierList!H3, A2 :B2000, 2, False)" 也可以。
那么为什么只有 "=vlookup(h3, SupplierList!A2:B2000, 2, False)" 会出错呢?
- - - - - - - - - - - - - - 错误信息 - - - - - - - - - - - ----------
Fatal error: Uncaught exception 'Exception' with message 'PO!G2 -> Invalid cell coordinate A' in C:\Program Files\EasyPHP-5.3.6.0\www\ExcelImporter\Classes\PHPExcel\Cell.php:288 Stack trace: #0 C:\Program Files\EasyPHP-5.3.6.0\www\ExcelImporter\Classes\PHPExcel\Cell.php(204): PHPExcel_Cell->getCalculatedValue() #1 C:\Program Files\EasyPHP-5.3.6.0\www\ExcelImporter\Documentation\Examples\index.php(36): PHPExcel_Cell->getFormattedValue() #2 {main} thrown in C:\Program Files\EasyPHP-5.3.6.0\www\ExcelImporter\Classes\PHPExcel\Cell.php on line 288
- - - - - - - - - - - - - - 错误信息 - - - - - - - - - - - ----------
单元格是这样的公式
**=IF(ISERROR(VLOOKUP(H2349,'Supplier List'!A:B,2,FALSE)),"-",VLOOKUP(H2349,'Supplier List'!A:B,2,FALSE))**