Thread: IF function
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Lotus123
 
Posts: n/a
Default IF function


Here you go...assuming the three cells are in A1, B1, and C1:

=IF(AND(A1=0,B1=0,C1=0),"GREEN",IF(AND(A1<0,B1< 0,C1<0),"RED","YELLOW"))


--
Lotus123
------------------------------------------------------------------------
Lotus123's Profile: http://www.excelforum.com/member.php...o&userid=28611
View this thread: http://www.excelforum.com/showthread...hreadid=487001