#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,104
Default 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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"