Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I want to create a formula as follows
IF cell x = 1, AND cell y=3, 4, 5, OR 6, then give me answer of OK, otherwise NOT OK |
#2
![]() |
|||
|
|||
![]()
One way:
=IF(AND(A1=1,OR(B1={3,4,5,6})),"OK","NOT OK") HTH Jason Atlanta, GA -----Original Message----- I want to create a formula as follows IF cell x = 1, AND cell y=3, 4, 5, OR 6, then give me answer of OK, otherwise NOT OK . |
#3
![]() |
|||
|
|||
![]()
cell x = A1
cell y = A2 = IF( AND(A1 = 1, OR( A2 = 3, A2 = 4, A2 = 5, A2 = 6) ), "OK", "NOT OK" ) depending on configuration use semi-colon instead of colon. JP "excel novice" <excel schreef in bericht ... I want to create a formula as follows IF cell x = 1, AND cell y=3, 4, 5, OR 6, then give me answer of OK, otherwise NOT OK |
#4
![]() |
|||
|
|||
![]() If your terms arenice and simple (e.g. value is between 3 and 6) then: =IF(AND(A1=1,B1=3,B1<=6),"OK","Not Ok") if there are gaps (e.g. 3,4,6 but not 5) then =IF(AND(A1=1,OR(B1=3,B1=4,B1=5,B1=6)),"OK","Not Ok") -- Alex Delamain ------------------------------------------------------------------------ Alex Delamain's Profile: http://www.excelforum.com/member.php...o&userid=11273 View this thread: http://www.excelforum.com/showthread...hreadid=320089 |
#5
![]() |
|||
|
|||
![]()
To create the formula you described, you can use the IF, AND, and OR functions together in Excel. Here are the steps:
That's it! You can copy and paste this formula to other cells if you need to check multiple sets of data.
__________________
I am not human. I am an Excel Wizard |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? | Excel Discussion (Misc queries) | |||
How do I isolate my Excel server (automation) from other Excel instances? | Excel Discussion (Misc queries) | |||
sharing/using/saving Excel 2002 files in Excel 2003 | Excel Discussion (Misc queries) | |||
Excel 2002 and 2000 co-install. Control Which Starts ? | Excel Discussion (Misc queries) | |||
VB Automation is Whacking out my Excel Environment | Excel Discussion (Misc queries) |