EXCELL牛人进
具体例子如下:
A B C
库存 库存数量 需要产品
computer 20 table
chair 40 pen
table 30 notebook
telephone 10 computer
现在需要用C中的产品在A中查询,是否有此产品,如果有,则将其对应的B中的库存数量显示到D中,没有就不显示 。上表查询后显示结果如下
A B C D
库存 库存数量 需要产品 数量
computer 20 table 30
chair 40 pen
table 30 notebook
telephone 10 computer 20
是否需要VBA实现,小弟菜鸟,望大哥指教,最好附带具体代码即实施步骤