Link to home
Start Free TrialLog in
Avatar of cfhasan1
cfhasan1Flag for United States of America

asked on

Excel Formula with Multiple Criteria

I need a formula check if a Column C1 or C2 = “No” & C3= “LOAN” & C4 contain “XYZ” if yes then TDDL , if no TDL and all other cells blank
Avatar of Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj)
Flag of India image

Based on your description...

=IF(AND(OR(C1="No",C2="No"),C3="LOAN",C4="XYZ"),"TDDL","TDL")

Open in new window

Try this:
=IF(AND(OR(C1="No",C2="No"),C3="Loan",C4="*XYZ*"),"TDDL","TDL")
Avatar of cfhasan1

ASKER

Both Solutions are close, but I want fields to be blank if C3 does Not equal LOAN
Try this...

=IF(C3="LOAN",IF(AND(OR(C1="No",C2="No"),COUNTIF(C4,"*XYZ*")),"TDDL","TDL"),"")
Neeraj,
I used a variation of the formula as follows:
=IF(S2="LOAN",IF(AND(OR(Q2="No",R2="No", IFERROR(SEARCH("PDM", P2),0)=0),"TDDL","TDL"),"")

Problem is I discovered another string text to account for , how do modify and add CIF to the search?
ASKER CERTIFIED SOLUTION
Avatar of Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj)
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
In box me of how I should have asked the question, please or email cfhasan1@aol.com
Perfect!
What I meant, you changed the cell references as well as the criteria. These formulas specially with multiple criteria and without having a sample workbook are tricky one to derive sometimes. You should finalize your question before asking it. That's it. :)

Glad it worked as desired in the end. :)
Understood and appreciate the feedback