Thread: If Function
View Single Post
  #5   Report Post  
Biff
 
Posts: n/a
Default If Function

=IF(OR(C2="transf",C2="post",C2="last"),"T",IF(OR( C2="fee",C2="charge"),"F","O"))

=IF(OR(C2={"transf","post","last"}),"T",IF(OR(C2={ "fee","charge"}),"F","O"))

Biff

"Elkar" wrote in message
...
Try this:

=IF(OR(C2="transf",C2="post",C2="last"),"T",IF(OR( C2="fee",C2="charge"),"F","O"))

"STEVEB" wrote:


Hi,

Does anyone have any sugesstions for the following:

I have a formula that looks at a cell in Column C and if Column C
contains the text "transf: it wil put a "T" on column D, if not it will
put an "O" in Column D.

My formula is as follows:

=IF(ISERR(SEARCH("transf",C2)),"O","T")

I would like to expand the formula to include:

1) If C2 contains "transf" or "post" or "last" then put a "T" in column
D
2) If C2 Contains "fee" or "charge" then put an "f" in column D
3) If C2 does not contain anything above then put an "O" in column D


Any help would be greatly appreciated!


--
STEVEB
------------------------------------------------------------------------
STEVEB's Profile:
http://www.excelforum.com/member.php...fo&userid=1872
View this thread:
http://www.excelforum.com/showthread...hreadid=483301