#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ggriffis
 
Posts: n/a
Default If And


Trying to build a small function as follows:

AND(IF D2 < "#NA", IF (E2 < "#NA", "INACTIVE", ""))

So, If D2 and E2 contains #NA, do nothing; If D2 or E2 contain #NA, do
nothing; If D2 *AND* E2 contain anything other than #NA, then current
cell = "INACTIVE".


--
ggriffis
------------------------------------------------------------------------
ggriffis's Profile: http://www.excelforum.com/member.php...o&userid=35009
View this thread: http://www.excelforum.com/showthread...hreadid=547479

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Marcelo
 
Posts: n/a
Default If And

try

if(and((d2<"#NA"),(E2<"#NA")),"INACTIVE","")

Hope its help
Regards from Brazil
Marcelo

"ggriffis" escreveu:


Trying to build a small function as follows:

AND(IF D2 < "#NA", IF (E2 < "#NA", "INACTIVE", ""))

So, If D2 and E2 contains #NA, do nothing; If D2 or E2 contain #NA, do
nothing; If D2 *AND* E2 contain anything other than #NA, then current
cell = "INACTIVE".


--
ggriffis
------------------------------------------------------------------------
ggriffis's Profile: http://www.excelforum.com/member.php...o&userid=35009
View this thread: http://www.excelforum.com/showthread...hreadid=547479


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
 
Posts: n/a
Default If And

ggriffis,

=IF(OR(ISNA(D2),ISNA(E2)),"","INACTIVE")

HTH,
Bernie
MS Excel MVP


"ggriffis" wrote in message
...

Trying to build a small function as follows:

AND(IF D2 < "#NA", IF (E2 < "#NA", "INACTIVE", ""))

So, If D2 and E2 contains #NA, do nothing; If D2 or E2 contain #NA, do
nothing; If D2 *AND* E2 contain anything other than #NA, then current
cell = "INACTIVE".


--
ggriffis
------------------------------------------------------------------------
ggriffis's Profile: http://www.excelforum.com/member.php...o&userid=35009
View this thread: http://www.excelforum.com/showthread...hreadid=547479



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:55 AM.

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

About Us

"It's about Microsoft Excel"