Create a list of base sku's or product groups

Plank22

New Member
Joined
Apr 7, 2016
Messages
36
Office Version
  1. 365
Platform
  1. Windows
Please help,

Skus are in column A, Color is column B, All I need is if column B =Satin Bronze remove 10 from the end of the sku of column A

There are about 15 finishes so I will need to edit for each one but thus is the best wat to get to the base sku's.
In the sample row 1 is Satin Bronze and its code is 10
In the sample row 2 is Oil Rubbed Bronze and its code is 10B

and so on...

Can I attached a sample file?
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
You cannot attach files to this board, but there are some tools here that enable you to post sample data
 
Upvote 0
100T31210Satin Bronze100T312
100T31210BOil Rubbed Bronze100T3121
100T3121510Satin Bronze100T31215
100T3121510BOil Rubbed Bronze100T31215
100T3121526Bright Chrome100T31215
100T3121526DSatin Chrome100T31215
100T3121528Aluminum100T31215
100T312153Bright Brass100T31215
100T3121532Bright Stainless Steel100T31215
100T3121532DSatin Stainless Steel100T31215

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
You could do something like this:

ABCDEF
1SKUColorBase SKUColorCode
2100T31210Satin Bronze100T312Satin Bronze10
3100T31210BOil Rubbed Bronze100T312Oil Rubbed Bronze10B
4100T3121510Satin Bronze100T31215Bright Chrome26
5100T3121510BOil Rubbed Bronze100T31215Satin Chrome26D
6100T3121526Bright Chrome100T31215Aluminum28
7100T3121526DSatin Chrome100T31215Bright Brass3
8100T3121528Aluminum100T31215Bright Stainless Steel32
9100T312153Bright Brass100T31215Satin Stainless Steel32D
10100T3121532Bright Stainless Steel100T31215
11100T3121532DSatin Stainless Steel100T31215

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet3

Worksheet Formulas
CellFormula
C2=IFERROR(LEFT(A2,LEN(A2)-LEN(VLOOKUP(B2,$E$2:$F$9,2,0))),A2)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Currently we do not have the E and F columns as you have them and would nee to populate them based on column B.
 
Upvote 0
You said that you'd need to edit the formula for each finish. Instead, you can build a table such as the one in E:F, and then you only need to use one formula. Without such a table, there's no way to decide how many digits to remove from the end of the SKU. With only 15 finishes or so, it shouldn't take you too long to build it. Copy column B to E, then use the Remove Duplicates tool. Then you just need to put in the codes.
 
Upvote 0
Hi Eric,

There are over 12500 rows. I was really just looking for one I could edit for each finish.

Example: Place in column c2, If column b2 = satin bronze remove last to digits of column a2. The I could just copy down and edit for the next finish. I that would take less time than adding all the finish codes.

Let me know if I am wrong or missing something here
 
Upvote 0
The formula you seem to be looking for is:

=IF(B2="Satin Bronze",LEFT(A2,LEN(A2)-2),"")

Do you intend on editing that formula 12500 times? That seems like a MUCH bigger task than creating your color table with 15 entries, then doing a cut/paste of the formula to all the output cells one time only.
 
Upvote 0
No sir, I just drug it down then edited the formula. It did work but after reviewing there some skus that the last two digits are not were the color lies in the sku.

Example 127931210.BX would need to be 1279312.BX

Is there a way to edit the formula two only remove the last two digits if they match 10 in this example?
 
Upvote 0
I'm still a bit confused as to how you're doing things, but try:

=IF(B2="Satin Bronze",SUBSTITUTE(A2,"10","",(LEN(A2)-LEN(SUBSTITUTE(A2,"10","")))/LEN("10")),"")

This will remove the last instance of 10 from the SKU.
 
Upvote 0

Forum statistics

Threads
1,215,133
Messages
6,123,235
Members
449,092
Latest member
SCleaveland

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top