Hi there
I'm looking for some help with an IF statement to define a large (70k+) list of customer I.D's by their order type each week, it's either "Box Only", "Extras Only" or "Both" (as in both boxes and extras), this has already been defined using a different IF statement from the raw data.
Some customers change their order each week, so I want to be able to use a formula to assign a definition to each customer, that identifies them as one of 6 types:
"switches between boxes only and extras-only" if the string contains "Boxes Only" and "Extras Only"
"loyal boxes only customer" if the string only contains "Boxes Only"
"loyal extras only customer" if the string only contains "Extras Only"
"switches between boxes only and both" if the string contains "Boxes Only" and "Both" but not "Extras Only"
"switches between extras only and both" if the string contains "Extras Only and "Both" but not "Boxes Only"
"always orders both" if the string only contains "Both"
("No Order" can be ignored)
An example of the data is below, for three customers between weeks 21-32:
data.PNG
I appreciate this is quite complex, but I hope there's someone who can just help me piece it together, as I'm still learning the language of IF statements.
Thank you in advance for your help!
Monkeyseemonkeytype
Bookmarks