Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Nested if statement or Nested if OR statement

Hello,
Trying to figure out how to do the below...I have 3 columns and in
column D i need to be able to input a text.

So, If cell A2 has a 1 or 2 AND cell B2 has a 1 or 2 AND cell C2 has
a 1 or 2 input "Correct" in cell D2.


A B C D
1 1 2
1 2 2


I can not get this correct. Any help would be appreciated.

Thanks
CD
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Nested if statement or Nested if OR statement

=IF(AND(OR(A2={1,2,3}),OR(B2={1,2,3}),OR(C2={1,2,3 })),"Correct","")

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"CD27" wrote in message
...
Hello,
Trying to figure out how to do the below...I have 3 columns and in
column D i need to be able to input a text.

So, If cell A2 has a 1 or 2 AND cell B2 has a 1 or 2 AND cell C2 has
a 1 or 2 input "Correct" in cell D2.


A B C D
1 1 2
1 2 2


I can not get this correct. Any help would be appreciated.

Thanks
CD


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Nested if statement or Nested if OR statement

Sorry, I read 1, 2 or 3.
Adjust accordingly or use Don's formula

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Niek Otten" wrote in message
...
=IF(AND(OR(A2={1,2,3}),OR(B2={1,2,3}),OR(C2={1,2,3 })),"Correct","")

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"CD27" wrote in message
...
Hello,
Trying to figure out how to do the below...I have 3 columns and in
column D i need to be able to input a text.

So, If cell A2 has a 1 or 2 AND cell B2 has a 1 or 2 AND cell C2 has
a 1 or 2 input "Correct" in cell D2.


A B C D
1 1 2
1 2 2


I can not get this correct. Any help would be appreciated.

Thanks
CD



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Nested if statement or Nested if OR statement

try
=if(and(or(a2=1,a2=2),or(b2=1,b2=2),or(c2=1,c2=2)) ,"c","nc")
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"CD27" wrote in message
...
Hello,
Trying to figure out how to do the below...I have 3 columns and in
column D i need to be able to input a text.

So, If cell A2 has a 1 or 2 AND cell B2 has a 1 or 2 AND cell C2 has
a 1 or 2 input "Correct" in cell D2.


A B C D
1 1 2
1 2 2


I can not get this correct. Any help would be appreciated.

Thanks
CD


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Nested if statement or Nested if OR statement

One way:

=IF(AND(OR(A2={1,2}),OR(B2={1,2}),OR(C2={1,2})),"C orrect","")

--
Biff
Microsoft Excel MVP


"CD27" wrote in message
...
Hello,
Trying to figure out how to do the below...I have 3 columns and in
column D i need to be able to input a text.

So, If cell A2 has a 1 or 2 AND cell B2 has a 1 or 2 AND cell C2 has
a 1 or 2 input "Correct" in cell D2.


A B C D
1 1 2
1 2 2


I can not get this correct. Any help would be appreciated.

Thanks
CD





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Nested if statement or Nested if OR statement

A few keystrokes shorter:

=IF(SUM(COUNTIF(A2:C2,{1,2}))=3,"Correct","")

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
One way:

=IF(AND(OR(A2={1,2}),OR(B2={1,2}),OR(C2={1,2})),"C orrect","")

--
Biff
Microsoft Excel MVP


"CD27" wrote in message
...
Hello,
Trying to figure out how to do the below...I have 3 columns and in
column D i need to be able to input a text.

So, If cell A2 has a 1 or 2 AND cell B2 has a 1 or 2 AND cell C2 has
a 1 or 2 input "Correct" in cell D2.


A B C D
1 1 2
1 2 2


I can not get this correct. Any help would be appreciated.

Thanks
CD





  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Nested if statement or Nested if OR statement


Thanks Niek, Don and T. Valko,
It works like a charm now.

Thanks again and take care

Cedric
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
If statement nested k11ngy Excel Discussion (Misc queries) 5 October 13th 08 02:38 PM
Nested If Statement teethomas Excel Worksheet Functions 7 September 11th 08 10:06 PM
Nested IF/OR/AND Statement Help Gayla Excel Worksheet Functions 3 June 22nd 07 04:27 AM
IF STATEMENT - NESTED tojo107 Excel Worksheet Functions 4 April 19th 07 08:14 PM
Nested IF statement Teri Excel Worksheet Functions 2 January 30th 07 06:40 PM


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

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

About Us

"It's about Microsoft Excel"