Parentheses Problems

njpamdnc

New Member
Joined
Feb 16, 2019
Messages
42
Office Version
  1. 2007
Platform
  1. Windows
Hello...My name is Devin, and I am planning to host a dinner among friends and acquaintances at a large dining hall within the next two weeks. I am playing around with a formula that will allow me to seat people who I think MIGHT be a good match for conversations(maybe); people who I think WILL BE a good match for conversations(yes); and people who I think WILL NOT BE a good match for conversations(no). I know what I want, but I don't think I am correctly using the parentheses.


=IF(L4="","",IF(AND(ISNUMBER(SEARCH("Greg",L4)),ISNUMBER(SEARCH("Rodney",L4)),ISNUMBER(SEARCH("Mari",L4)),AND(OR(ISNUMBER(SEARCH("Omar",L4)),ISNUMBER(SEARCH("Renee",L4)),ISNUMBER(SEARCH("Diane",L4)),ISNUMBER(SEARCH("Marvin",L4))))),"maybe",IF(AND(ISNUMBER(SEARCH("Greg",L4)),ISNUMBER(SEARCH("Rodney",L4)),ISNUMBER(SEARCH("Mari",L4)),NOT(OR(ISNUMBER(SEARCH("Omar",L4)),ISNUMBER(SEARCH("Renee",L4)),ISNUMBER(SEARCH("Diane",L4)),ISNUMBER(SEARCH("Marvin",L4)))))),""yes","no"))
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
I put the problem of parentheses in red

Your formula

=IF(L4="","",IF(AND(ISNUMBER(SEARCH("Greg",L4)),ISNUMBER(SEARCH("Rodney",L4)),ISNUMBER(SEARCH("Mari",L4)),AND(OR(ISNUMBER(SEARCH("Omar",L4)),ISNUMBER(SEARCH("Renee",L4)),ISNUMBER(SEARCH("Diane",L4)),ISNUMBER(SEARCH("Marvin",L4))))),"maybe",IF(AND(ISNUMBER(SEARCH("Greg",L4)),ISNUMBER(SEARCH("Rodney",L4)),ISNUMBER(SEARCH("Mari",L4)),NOT(OR(ISNUMBER(SEARCH("Omar",L4)),ISNUMBER(SEARCH("Renee",L4)),ISNUMBER(SEARCH("Diane",L4)),ISNUMBER(SEARCH("Marvin",L4)) )) )),""yes","no"))

Updated formula
=IF(L4="","",IF(AND(ISNUMBER(SEARCH("Greg",L4)),ISNUMBER(SEARCH("Rodney",L4)),ISNUMBER(SEARCH("Mari",L4)),AND(OR(ISNUMBER(SEARCH("Omar",L4)),ISNUMBER(SEARCH("Renee",L4)),ISNUMBER(SEARCH("Diane",L4)),ISNUMBER(SEARCH("Marvin",L4))))),"maybe",IF(AND(ISNUMBER(SEARCH("Greg",L4)),ISNUMBER(SEARCH("Rodney",L4)),ISNUMBER(SEARCH("Mari",L4)),NOT(OR(ISNUMBER(SEARCH("Omar",L4)),ISNUMBER(SEARCH("Renee",L4)),ISNUMBER(SEARCH("Diane",L4)),ISNUMBER(SEARCH("Marvin",L4)) )) ),""yes","no")))
 
Upvote 0
I put the problem of parentheses in red

Your formula

=IF(L4="","",IF(AND(ISNUMBER(SEARCH("Greg",L4)),ISNUMBER(SEARCH("Rodney",L4)),ISNUMBER(SEARCH("Mari",L4)),AND(OR(ISNUMBER(SEARCH("Omar",L4)),ISNUMBER(SEARCH("Renee",L4)),ISNUMBER(SEARCH("Diane",L4)),ISNUMBER(SEARCH("Marvin",L4))))),"maybe",IF(AND(ISNUMBER(SEARCH("Greg",L4)),ISNUMBER(SEARCH("Rodney",L4)),ISNUMBER(SEARCH("Mari",L4)),NOT(OR(ISNUMBER(SEARCH("Omar",L4)),ISNUMBER(SEARCH("Renee",L4)),ISNUMBER(SEARCH("Diane",L4)),ISNUMBER(SEARCH("Marvin",L4)) )) )),""yes","no"))

Updated formula
=IF(L4="","",IF(AND(ISNUMBER(SEARCH("Greg",L4)),ISNUMBER(SEARCH("Rodney",L4)),ISNUMBER(SEARCH("Mari",L4)),AND(OR(ISNUMBER(SEARCH("Omar",L4)),ISNUMBER(SEARCH("Renee",L4)),ISNUMBER(SEARCH("Diane",L4)),ISNUMBER(SEARCH("Marvin",L4))))),"maybe",IF(AND(ISNUMBER(SEARCH("Greg",L4)),ISNUMBER(SEARCH("Rodney",L4)),ISNUMBER(SEARCH("Mari",L4)),NOT(OR(ISNUMBER(SEARCH("Omar",L4)),ISNUMBER(SEARCH("Renee",L4)),ISNUMBER(SEARCH("Diane",L4)),ISNUMBER(SEARCH("Marvin",L4)) )) ),""yes","no")))


Hi DanteAmor...Your formula fix works...Thank You!!!
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top