Insert

SOLTEC

Board Regular
Joined
Feb 11, 2015
Messages
195
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have a spreadsheet with POS SKU numbers and I want to create two rows below each SKU with the same SKU number with one adding cc to the end of the SKU and inserting it before the original SKU, and then below that another original SKU with the same original SkU with c concatenated for 1,000's a SKU for my POS system.
 

Attachments

  • example_2.png
    example_2.png
    1.4 KB · Views: 12

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
your image has B and not a C, what do you mean by 1000s?
 
Upvote 0
Here it is done in another column:

(edited 2 min after posting):

Book1
AB
1
2CM3671CM1740
3CM7882CM1740B
4CM6670CM1740cc
5CM6432CM1754
6CM2539CM1754B
7CM1740CM1754cc
8CM9408CM1903
9CM9263CM1903B
10CM8645CM1903cc
11CM1903CM2539
12CM6030CM2539B
13CM8144CM2539cc
14CM1754CM2797
15CM3920CM2797B
16CM7838CM2797cc
17CM2797CM3671
18CM5077CM3671B
19CM7288CM3671cc
20CM5872CM3920
21CM8045CM3920B
22CM8916CM3920cc
23CM5077
24CM5077B
25CM5077cc
26CM5872
27CM5872B
28CM5872cc
29CM6030
30CM6030B
31CM6030cc
32CM6432
33CM6432B
34CM6432cc
35CM6670
36CM6670B
37CM6670cc
38CM7288
39CM7288B
40CM7288cc
41CM7838
42CM7838B
43CM7838cc
44CM7882
45CM7882B
46CM7882cc
47CM8045
48CM8045B
49CM8045cc
50CM8144
51CM8144B
52CM8144cc
53CM8645
54CM8645B
55CM8645cc
56CM8916
57CM8916B
58CM8916cc
59CM9263
60CM9263B
61CM9263cc
62CM9408
63CM9408B
64CM9408cc
Sheet1
Cell Formulas
RangeFormula
B2:B64B2=SORT(TOCOL(TEXTSPLIT(TEXTJOIN(",",,A2:A22 &"cc",A2:A22,A2:A22 &"B"),",")))
Dynamic array formulas.
 
Upvote 0
It keeps the SKU together, but it rearranges alpha-numerically.
 
Upvote 0
Hi, see the linked file for a possible solution...

The formula used in the table:
=LET(x,INDEX(A:A,INT((ROW()+4)/3)),y,MOD(ROW()+4,3),IF(x="","",IF(y=0,x,x&IF(y=1,"CC","B"))))

SKUinsert.xlsx

SKUinsert.png
 
Upvote 0
Another option
Fluff.xlsm
AB
1
2CM3671CM3671
3CM7882CM3671CC
4CM6670CM3671B
5CM6432CM7882
6CM2539CM7882CC
7CM1740CM7882B
8CM9408CM6670
9CM9263CM6670CC
10CM8645CM6670B
11CM6432
12CM6432CC
13CM6432B
14CM2539
15CM2539CC
16CM2539B
17CM1740
18CM1740CC
19CM1740B
20CM9408
21CM9408CC
22CM9408B
23CM9263
24CM9263CC
25CM9263B
26CM8645
27CM8645CC
28CM8645B
29
Data
Cell Formulas
RangeFormula
B2:B28B2=LET(f,FILTER(A2:A100,A2:A100<>""),MAKEARRAY(ROWS(f)*3,1,LAMBDA(r,c,INDEX(f,INT((r-1)/3)+1)&CHOOSE(MOD(r-1,3)+1,"","CC","B"))))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,129
Messages
6,123,210
Members
449,090
Latest member
bes000

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