如果使用VLOOKUP的多个条件

时间:2019-02-06 14:09:54

标签: excel if-statement formula vlookup

我无法修正公式。或者更好的是,我什至不知道即时通讯是否正确。 我的主意是:B行为空,将有公式。

$ npm run production

@ production /var/www/html/****
 cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

xnpm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ production: cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ production script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.`

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-02-06T13_49_22_325Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ prod: npm run production
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-02-06T13_49_22_696Z-debug.log

如果A2> 0,则如果D2为假,则D行中的VLOOKUP。否则,如果A2> 0,则D行中的VLOOKUP和TRUE B2为CORPORATE。最后一个条件是A2 <0时,行返回Human。

我的公式:

    A    B    C    D
1  ID   TYPE       ID_Criteria
2   1   FIRM       4
3   0   HUMAN
4   3   FIRM
5   4   CORPORATE

有什么想法吗?

1 个答案:

答案 0 :(得分:3)

使用

=IF(A2>0,IF(ISNUMBER(MATCH(A2,$D$1:$D$4,0)),"CORPORATE","FIRM"),"HUMAN")

enter image description here