Hey all,
I’m attempting to create a formula that will automatically create SKUs from several different columns, but I’m running into a few issues.
Below is the formula I have so far:
SWITCH(
{Brand Code},
"Kala","KA",
"UBASS","UB",
"Makala","MK",
"Ukadelic","UK",
"Kala Percussion","KP",
"Kala Elite USA","ELT"
)&"-"&
SWITCH(
{Product Type},
"Acoustic-Electric","AE-",
"Guitar","GTR-"
)
&SWITCH(
{Type Code},
"Solid Top (2)","2",
"All Solid (3)","3",
"Solid Body (6)","6"
)
&SWITCH(
{Top Wood Code},
"Cedar","C",
"Spruce","S",
"Striped Ebony","SE",
"Koa","K",
"Acacia","A",
"Mahogany","M"
)
&SWITCH(
{Back & Sides},
"Mahogany","M",
"Rosewood","R"
)
&SWITCH(
{Size Code},
"Tenor","-T"
)Preformatted text
I want the {Back & Sides} portion of the formula to only show up if it doesn’t match with the {Top Wood Code}. For example in row 3 I have a ukulele that has its top, back, and side wood listed as Mahogany, but my current formula makes the SKU “MK-MM”. I want it to be “MK-M”. My formula knowledge is pretty basic so any help will be greatly appreciated.
Reference photo:

