View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Nater Nater is offline
external usenet poster
 
Posts: 1
Default =IF(B8="M","HI") OK but =IF(B8="M","HI")+IF(B8="x","bye") not why

I'm trying to enter a formula similar to
=IF(B1=0,"0")+IF(B1=1,A1*1)+IF(B1=2,A1*2)
but instead of A1*1 or 2 etc. I want the result to return a text response
such as
=IF(B1="Hi","Hello")+IF(B1="Bye","Good bye") but this results in an error.
What am I doing wrong?