Thread: IF function
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
FSt1 FSt1 is offline
external usenet poster
 
Posts: 3,942
Default IF function

hi
you could use the wildcard character *.

=if(B1="*M*",A1,"")

regards
FSt1

"Lost Cluster" wrote:

Im using the If Function to compare a string of text to a letter. This is
what I have

ColA has names ColB has the days off in this format (string of text)
Su/M/Tu-Th ColC-J have the days of the week Monday-Sunday. I want the names
of Col A to appear in Col C-J if they work those days. So the If Function
that Im using is: =IF(B1<"M",A1,"")
But its not working. Im trying to say that if ColB does not equal M
(Monday) then put the name from ColA under Monday.
Thanks