Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Thanks Niek, Don and T. Valko, It works like a charm now. Thanks again and take care Cedric |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If statement nested | Excel Discussion (Misc queries) | |||
Nested If Statement | Excel Worksheet Functions | |||
Nested IF/OR/AND Statement Help | Excel Worksheet Functions | |||
IF STATEMENT - NESTED | Excel Worksheet Functions | |||
Nested IF statement | Excel Worksheet Functions |