I'm trying to come up with a formula that will return a "1" or a "0" based on the selection of a state and person(with a few exceptions).
Currently I have:
Basically, the intent is to have if someone picks Peter Griffin return a "1". If Quagmire return a "0".
The problem I'm having is that I want any time someone selects the state AZ, MA, CA or UT to return a "0" regardless of the selection of Peter Griffin or Quagmire.
The code above gives me a 1 on Peter Griffin and 0 on Quagmire, but I can't get the exceptions to be recognized.
Hope this makes sense!
Thanks in advance!
Phil
Currently I have:
Code:
=IF(AND(U1="Peter Griffin", OR(R63="AZ", R63="MA",R63="CA", R63=
"UT")),0,IF(U1="Quagmire",0,1))
The problem I'm having is that I want any time someone selects the state AZ, MA, CA or UT to return a "0" regardless of the selection of Peter Griffin or Quagmire.
The code above gives me a 1 on Peter Griffin and 0 on Quagmire, but I can't get the exceptions to be recognized.
Hope this makes sense!
Thanks in advance!
Phil