#1   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions,microsoft.public.excel.worksheetfunctions
external usenet poster
 
Posts: 1
Default OR function

Hello all,

Sorry for such a numpty question, but for the life of me I can't figure it
out.

I want to do the following:

IF (A2 or A3="Chris","Correct","incorrect")

I know it should look something like =IF(OR(A2,A3)="Chris",
"correct","incorrect")) , but this doesn't seem to work.

Can you help?

Chris


  #2   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions,microsoft.public.excel.worksheetfunctions
external usenet poster
 
Posts: 492
Default OR function

=IF(OR(A2="Chris",A3="Chris"),"Correct","Incorrect ")
"Chris Marigold" wrote in message
...
Hello all,

Sorry for such a numpty question, but for the life of me I can't figure it
out.

I want to do the following:

IF (A2 or A3="Chris","Correct","incorrect")

I know it should look something like =IF(OR(A2,A3)="Chris",
"correct","incorrect")) , but this doesn't seem to work.

Can you help?

Chris




  #3   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions,microsoft.public.excel.worksheetfunctions
external usenet poster
 
Posts: 97
Default OR function

"Alan" wrote...
=IF(OR(A2="Chris",A3="Chris"),"Correct","Incorrec t")

...

A bit more compact to use

=IF(COUNTIF(A2:A3,"Chris"),"Correct","Incorrect")

--
Never attach files.
Snip unnecessary quoted text.
Never multipost (though crossposting is usually OK).
Don't change subject lines because it corrupts Google newsgroup archives.
  #4   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions,microsoft.public.excel.worksheetfunctions
external usenet poster
 
Posts: 492
Default OR function

Nice One Harlan!
"Harlan Grove" wrote in message
...
"Alan" wrote...
=IF(OR(A2="Chris",A3="Chris"),"Correct","Incorrec t")

..

A bit more compact to use

=IF(COUNTIF(A2:A3,"Chris"),"Correct","Incorrect")

--
Never attach files.
Snip unnecessary quoted text.
Never multipost (though crossposting is usually OK).
Don't change subject lines because it corrupts Google newsgroup archives.



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
Excel Data Validation/Lookup function does function correcty Kirkey Excel Worksheet Functions 2 May 25th 09 09:22 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM
User-Defined Function pre-empting Built-in Function? How to undo???? MarWun Excel Programming 1 August 6th 03 09:31 PM


All times are GMT +1. The time now is 02:57 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"