Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 4
Default Help with "IF" function

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.
  #2   Report Post  
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")
  #3   Report Post  
Junior Member
 
Posts: 4
Default

Quote:
Originally Posted by Spencer101 View Post
=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")
It works. Thanks a bunch!!!
  #4   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by chines706 View Post
It works. Thanks a bunch!!!
Glad to help :)
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text "comparison" operator for "contains" used in an "IF" Function Pawaso Excel Worksheet Functions 4 April 4th 23 11:35 AM
Excel 2003: Conditional Formatting using "MIN" & "MAX" function MMangen Excel Discussion (Misc queries) 2 September 16th 08 07:13 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
function to return day in the form "Monday", "Tuesday" etc given . MTro Excel Worksheet Functions 2 October 3rd 07 09:49 AM
Please add a "sheet" function like "row" and "column" functions Spreadsheet Monkey Excel Programming 2 November 8th 05 04:08 PM


All times are GMT +1. The time now is 03:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"