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

=IF(COUNTIF(A2:C2,"=0")=3,"green",IF(COUNTIF(A2:C 2,"<0")=3,"red","yellow"))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Sailor" wrote in message
...
I want to create an if function that says If cell A, B and C are EACH =0,
then insert the message "green", if the same three cells are EACH less

than 0
then insert the message "red", else insert message "yellow"

Any help would be appreciated!