[TABLE="width: 1573"]
<colgroup><col><col><col span="3"><col><col><col></colgroup><tbody>[TR]
[TD="colspan: 4"]Maximum Length[/TD]
[TD="align: right"]20[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="colspan: 5"]Product Information- User Input[/TD]
[TD="colspan: 3"]Generated SKU Code & Product Explanation[/TD]
[/TR]
[TR]
[TD]Product Category[/TD]
[TD]Product Name[/TD]
[TD]Attribute1[/TD]
[TD]Attribute2[/TD]
[TD]Attribute3[/TD]
[TD]Product Explanation[/TD]
[TD]Generated SKU Code[/TD]
[TD]Modified SKU Code[/TD]
[/TR]
[TR]
[TD]SAS PTPC[/TD]
[TD]5" Screw Philips head[/TD]
[TD]UM[/TD]
[TD="align: right"]5115[/TD]
[TD]xxxx[/TD]
[TD]5" Screw Philips head-UM-5115-xxxx[/TD]
[TD]5"SCREW-UM-511-XXX[/TD]
[TD]5"SCREW-UM-511-XXX[/TD]
[/TR]
</tbody>[/TABLE]
The formula for the SKU code generated is:
= UPPER(SUBSTITUTE(IF(RIGHT(SUBSTITUTE(SUBSTITUTE(CONCATENATE(LEFT(SUBSTITUTE(B13," ",""),CEILING.MATH($E$10/3)),"-",LEFT(SUBSTITUTE(C13," ",""),CEILING.MATH($E$10/7)),"-",LEFT(SUBSTITUTE(D13," ",""),CEILING.MATH($E$10/7)),"-",LEFT(SUBSTITUTE(E13," ",""),CEILING.MATH($E$10/7))),"--","-"),"--","-"),1)="-", REPLACE(SUBSTITUTE(SUBSTITUTE(CONCATENATE(LEFT(SUBSTITUTE(B13," ",""),CEILING.MATH($E$10/3)),"-",LEFT(SUBSTITUTE(C13," ",""),CEILING.MATH($E$10/7)),"-",LEFT(SUBSTITUTE(D13," ",""),CEILING.MATH($E$10/7)),"-",LEFT(SUBSTITUTE(E13," ",""),CEILING.MATH($E$10/7))),"--","-"),"--","-"),LEN(SUBSTITUTE(SUBSTITUTE(CONCATENATE(LEFT(SUBSTITUTE(B13," ",""),CEILING.MATH($E$10/3)),"-",LEFT(SUBSTITUTE(C13," ",""),CEILING.MATH($E$10/7)),"-",LEFT(SUBSTITUTE(D13," ",""),CEILING.MATH($E$10/7)),"-",LEFT(SUBSTITUTE(E13," ",""),CEILING.MATH($E$10/7))),"--","-"),"--","-")),1,""),SUBSTITUTE(SUBSTITUTE(CONCATENATE(LEFT(SUBSTITUTE(B13," ",""),CEILING.MATH($E$10/3)),"-",LEFT(SUBSTITUTE(C13," ",""),CEILING.MATH($E$10/7)),"-",LEFT(SUBSTITUTE(D13," ",""),CEILING.MATH($E$10/7)),"-",LEFT(SUBSTITUTE(E13," ",""),CEILING.MATH($E$10/7))),"--","-"),"--","-"))," ",""))
I would like to be able to make a 12NC SKU code having xxxx-xxxx-xxxx but the current formula is only allowing the XXX on the final 3 stages of the SKU code that is generated. Does any one have an idea on how to alter the above formula to increase the character limit from xxx to xxxx?
<colgroup><col><col><col span="3"><col><col><col></colgroup><tbody>[TR]
[TD="colspan: 4"]Maximum Length[/TD]
[TD="align: right"]20[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="colspan: 5"]Product Information- User Input[/TD]
[TD="colspan: 3"]Generated SKU Code & Product Explanation[/TD]
[/TR]
[TR]
[TD]Product Category[/TD]
[TD]Product Name[/TD]
[TD]Attribute1[/TD]
[TD]Attribute2[/TD]
[TD]Attribute3[/TD]
[TD]Product Explanation[/TD]
[TD]Generated SKU Code[/TD]
[TD]Modified SKU Code[/TD]
[/TR]
[TR]
[TD]SAS PTPC[/TD]
[TD]5" Screw Philips head[/TD]
[TD]UM[/TD]
[TD="align: right"]5115[/TD]
[TD]xxxx[/TD]
[TD]5" Screw Philips head-UM-5115-xxxx[/TD]
[TD]5"SCREW-UM-511-XXX[/TD]
[TD]5"SCREW-UM-511-XXX[/TD]
[/TR]
</tbody>[/TABLE]
The formula for the SKU code generated is:
= UPPER(SUBSTITUTE(IF(RIGHT(SUBSTITUTE(SUBSTITUTE(CONCATENATE(LEFT(SUBSTITUTE(B13," ",""),CEILING.MATH($E$10/3)),"-",LEFT(SUBSTITUTE(C13," ",""),CEILING.MATH($E$10/7)),"-",LEFT(SUBSTITUTE(D13," ",""),CEILING.MATH($E$10/7)),"-",LEFT(SUBSTITUTE(E13," ",""),CEILING.MATH($E$10/7))),"--","-"),"--","-"),1)="-", REPLACE(SUBSTITUTE(SUBSTITUTE(CONCATENATE(LEFT(SUBSTITUTE(B13," ",""),CEILING.MATH($E$10/3)),"-",LEFT(SUBSTITUTE(C13," ",""),CEILING.MATH($E$10/7)),"-",LEFT(SUBSTITUTE(D13," ",""),CEILING.MATH($E$10/7)),"-",LEFT(SUBSTITUTE(E13," ",""),CEILING.MATH($E$10/7))),"--","-"),"--","-"),LEN(SUBSTITUTE(SUBSTITUTE(CONCATENATE(LEFT(SUBSTITUTE(B13," ",""),CEILING.MATH($E$10/3)),"-",LEFT(SUBSTITUTE(C13," ",""),CEILING.MATH($E$10/7)),"-",LEFT(SUBSTITUTE(D13," ",""),CEILING.MATH($E$10/7)),"-",LEFT(SUBSTITUTE(E13," ",""),CEILING.MATH($E$10/7))),"--","-"),"--","-")),1,""),SUBSTITUTE(SUBSTITUTE(CONCATENATE(LEFT(SUBSTITUTE(B13," ",""),CEILING.MATH($E$10/3)),"-",LEFT(SUBSTITUTE(C13," ",""),CEILING.MATH($E$10/7)),"-",LEFT(SUBSTITUTE(D13," ",""),CEILING.MATH($E$10/7)),"-",LEFT(SUBSTITUTE(E13," ",""),CEILING.MATH($E$10/7))),"--","-"),"--","-"))," ",""))
I would like to be able to make a 12NC SKU code having xxxx-xxxx-xxxx but the current formula is only allowing the XXX on the final 3 stages of the SKU code that is generated. Does any one have an idea on how to alter the above formula to increase the character limit from xxx to xxxx?