View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Lars-Åke Aspelin[_2_] Lars-Åke Aspelin[_2_] is offline
external usenet poster
 
Posts: 913
Default Comparison Formula

On Sat, 31 Jan 2009 12:52:34 -0800 (PST), Savio
wrote:

I have a day entered in cell E2, and i am trying to write a formula to
return "T" if E2 is any value from Monday-Friday and "F" if not.

=IF(E2=OR("Monday","Tuesday","Wednesday","Thursda y","Friday"),"T","F")

Could you tell me what's wrong with the above formula and how to
correct it.

thanks


Try this:

=IF(OR(E2="Monday",E2="Tuesday",E2="Wednesday",E2= "Thursday",E2="Friday"),"T","F")

Hope this helps / Lars-Åke