If formula to look for Letter Patterns or Behaviors
I am trying to find a behavioral pattern. Therefore, I am hoping some IF formulas will work. Each formula would be a "scenario" and be in its own column. Thank you in advance for any advice you can give.
1) Where "J" is before "K" then put a "1". If "K" precedes "J", then it's value is "2". Everythng else should be blank
2) Where "J" is before "L" but does not include "K". If True, put a "1". If false, leave blank
3) Where "J" is before "K" and both are before "L". Must contain all three letters to be true. If true, then put a "1". Leave Blank if false
4) Where "J" but no "K" or no "L" then "1" if True.
D
DH
DHJ
DHJCK
DKJ
DJL
DJKL
DHGKL
K
L
KL