=IF(AND(OR statement needed?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do i write a formula for the following? I am very close but keep having
problems getting it perfect. I've tried so many combos of If(or(and (w/
lookups, not( etc. but can't get it.

data already in spreadsheet:

column A can only either be "x" or "y".
column B can be any name
column C is a $ value
column D is list of particular names

Need single formula to say:
if A is "x" = return value from C no matter what
if A is "y" = return value from C ***unless B is on the list in D = then
return 0.

Thanks in advance!
 
I think you want a formula like this assuming that the list is in te colum d
otherwise restrict the column

=IF(OR(A1="x",AND(A1="y",ISNA(MATCH(B1,$D:$D,0))=FALSE)),C1,"")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top