
If you are looking for the exact substrings "cyproheptadine-levetiracetam" and "levetiracetam-cyproheptadine", you can use a formula in B2 of the form IF(OR(FIND(C2&"-"&D2,A2)>0,FIND(D2&"-"&C2,A2)>0),"X"," ") and copy down to as many rows as needed. This will put an X in B2 and B3 but not B4. If you are looking for both drug names to be present with any possible intervening text, you can use a formula in B2 of the form IF(AND(FIND(C2,A2)>0,FIND(D2,A2)>0),"X"," ") and copy down to as many rows as needed. This will put an X in B2, B3, and B4 (assuming you populate C4 and D4)..