ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   IF,AND... (https://www.excelbanter.com/excel-discussion-misc-queries/225607-if.html)

puiuluipui

IF,AND...
 
Hi, i have this code:

=IF(B3<"",IF(ISNA(VLOOKUP($B3,PLANNING!$B$4:$G$50 ,6,FALSE)),"??",VLOOKUP($B3,PLANNING!$B$4:$G$50,6, FALSE)),"")

And i need two criteria, and to make the code something like this:

=IF(AND(B3,C3<"",IF(ISNA(VLOOKUP($B3,PLANNING!$B$ 4:$G$50,6,FALSE))),"??",VLOOKUP($B3,C3,PLANNING!$B $4:$G$50,6,FALSE)),"")

If B3 and C3 content is find in "PLANNING!$B$4:$G$50", than the code to give
the "6" cell content



Bernard Liengme[_3_]

IF,AND...
 
For a nice clear explanation of a two-way lookup see
http://j-walk.com/ss/excel/usertips/tip020.htm


The AND part will need to read
=IF(AND(B3<"", C3<"",

Or you could use
=IF(COUNTA(B3:C3)=2,
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"puiuluipui" wrote in message
...
Hi, i have this code:

=IF(B3<"",IF(ISNA(VLOOKUP($B3,PLANNING!$B$4:$G$50 ,6,FALSE)),"??",VLOOKUP($B3,PLANNING!$B$4:$G$50,6, FALSE)),"")

And i need two criteria, and to make the code something like this:

=IF(AND(B3,C3<"",IF(ISNA(VLOOKUP($B3,PLANNING!$B$ 4:$G$50,6,FALSE))),"??",VLOOKUP($B3,C3,PLANNING!$B $4:$G$50,6,FALSE)),"")

If B3 and C3 content is find in "PLANNING!$B$4:$G$50", than the code to
give
the "6" cell content






All times are GMT +1. The time now is 04:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com