View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Kassie Kassie is offline
external usenet poster
 
Posts: 37
Default hide the #DIV/0!

=IF(OR(A1="",A2="","",IF(A2/A1<20%,"Black"....... and so on

--
kassie

never stop learning




"KAnoe" wrote in message
...
Allen helped me with this code

=IF(A2/A1<20%,"black",IF(A2/A1<40%,"pink",IF(A2/A1<60%,"orange",...)))

But if I do not have a value in cell A1 or A2 I get #DIV/0!

How can I hide this?