View Single Post
  #2   Report Post  
Spencer101 Spencer101 is offline
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by chines706 View Post
Hi everyone. I am new and need help. I am clueless with functions. I am trying to write a "IF" function that says........

If R2 equals 000000, NONOUT, or OUT......then it is O&M. If not equal 000000, NONOUT, or OUT......then it is capital.

I tried this formula but it does not work:

=IF(R20,"capital","O&M")

I know it is more to it. Please help and thanks in advance.
=IF(OR(R2=0,R2="NONOUT",R2="OUT"),"O&M","CAPITAL")

The above would work if the 000000 is actually a number, if it's text then change it to


=IF(OR(R2="000000",R2="NONOUT",R2="OUT"),"O&M","CA PITAL")