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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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