Tự tách động lấy dòng, lấy Size và số lượng (1 người xem)

Người dùng đang xem chủ đề này

vutunam010583

Thành viên mới
Tham gia
21/3/08
Bài viết
28
Được thích
0
Nghề nghiệp
Kế toán
Xinchào các Anh chị, các bạn GPE

Mìnhcó vấn đề này mong mọi người làm giùm.
Từbảng có sẵn A5:AI13, Tại dòng đầu tiên với mã 51001-7049-5543, có 6 lỗi với sốlượng là 1, tương ứng với các size 29,31,32,33,34,36.
[TABLE="width: 467"]
[TR]
[TD="width: 31, bgcolor: transparent"]
XXS​
[/TD]
[TD="width: 25, bgcolor: transparent"]
XS​
[/TD]
[TD="width: 19, bgcolor: transparent"]
S​
[/TD]
[TD="width: 22, bgcolor: transparent"]
M​
[/TD]
[TD="width: 20, bgcolor: transparent"]
L​
[/TD]
[TD="width: 26, bgcolor: transparent"]
XL​
[/TD]
[TD="width: 32, bgcolor: transparent"]
XXL​
[/TD]
[TD="width: 38, bgcolor: transparent"]
XXXL​
[/TD]
[TD="width: 25, bgcolor: transparent"]
ST​
[/TD]
[TD="width: 23, bgcolor: transparent"]
22​
[/TD]
[TD="width: 23, bgcolor: transparent"]
23​
[/TD]
[TD="width: 23, bgcolor: transparent"]
24​
[/TD]
[TD="width: 23, bgcolor: transparent"]
25​
[/TD]
[TD="width: 23, bgcolor: transparent"]
26​
[/TD]
[TD="width: 23, bgcolor: transparent"]
27​
[/TD]
[TD="width: 23, bgcolor: transparent"]
28​
[/TD]
[TD="width: 23, bgcolor: transparent"]
29​
[/TD]
[TD="width: 23, bgcolor: transparent"]
30​
[/TD]
[TD="width: 23, bgcolor: transparent"]
31​
[/TD]
[TD="width: 23, bgcolor: transparent"]
32​
[/TD]
[TD="width: 23, bgcolor: transparent"]
33​
[/TD]
[TD="width: 23, bgcolor: transparent"]
34​
[/TD]
[TD="width: 23, bgcolor: transparent"]
35​
[/TD]
[TD="width: 23, bgcolor: transparent"]
36​
[/TD]
[TD="width: 23, bgcolor: transparent"]
38​
[/TD]
[TD="width: 23, bgcolor: transparent"]
40​
[/TD]
[/TR]
[TR]
[TD="width: 31, bgcolor: transparent"][/TD]
[TD="width: 25, bgcolor: transparent"][/TD]
[TD="width: 19, bgcolor: transparent"][/TD]
[TD="width: 22, bgcolor: transparent"][/TD]
[TD="width: 20, bgcolor: transparent"][/TD]
[TD="width: 26, bgcolor: transparent"][/TD]
[TD="width: 32, bgcolor: transparent"][/TD]
[TD="width: 38, bgcolor: transparent"][/TD]
[TD="width: 25, bgcolor: transparent"][/TD]
[TD="width: 23, bgcolor: transparent"][/TD]
[TD="width: 23, bgcolor: transparent"][/TD]
[TD="width: 23, bgcolor: transparent"][/TD]
[TD="width: 23, bgcolor: transparent"][/TD]
[TD="width: 23, bgcolor: transparent"][/TD]
[TD="width: 23, bgcolor: transparent"][/TD]
[TD="width: 23, bgcolor: transparent"][/TD]
[TD="width: 23, bgcolor: transparent"]
1​
[/TD]
[TD="width: 23, bgcolor: transparent"][/TD]
[TD="width: 23, bgcolor: transparent"]
1​
[/TD]
[TD="width: 23, bgcolor: transparent"]
1​
[/TD]
[TD="width: 23, bgcolor: transparent"]
1​
[/TD]
[TD="width: 23, bgcolor: transparent"]
1​
[/TD]
[TD="width: 23, bgcolor: transparent"][/TD]
[TD="width: 23, bgcolor: transparent"]
1​
[/TD]
[TD="width: 23, bgcolor: transparent"][/TD]
[TD="width: 23, bgcolor: transparent"][/TD]
[/TR]
[/TABLE]

Sauđó tạo ra bảng mới có 6 dòng tương ứng với 6 lỗi, Đưa số lượng các lỗi vào cộtQty, Size lỗi vào cột Waist, Tương tự cho các mã khác.
[TABLE="width: 479"]
[TR]
[TD="width: 126, bgcolor: transparent"]
Material/SFC​
[/TD]
[TD="width: 86, bgcolor: transparent"]
Article Descr ​
[/TD]
[TD="width: 119, bgcolor: transparent"]
Qual./Fabric Descr ​
[/TD]
[TD="width: 116, bgcolor: transparent"]
Color/Wash Descr​
[/TD]
[TD="width: 56, bgcolor: transparent"]
Inseam​
[/TD]
[TD="width: 45, bgcolor: transparent"]
Total​
[/TD]
[TD="width: 48, bgcolor: transparent"]
Waist​
[/TD]
[TD="width: 43, bgcolor: transparent"]
Qty​
[/TD]
[/TR]
[TR]
[TD="width: 126, bgcolor: transparent"]51001-7049-5543
[/TD]
[TD="width: 86, bgcolor: transparent"]51001
[/TD]
[TD="width: 119, bgcolor: transparent"]7049
[/TD]
[TD="width: 116, bgcolor: transparent"]5543
[/TD]
[TD="width: 56, bgcolor: transparent"]32
[/TD]
[TD="width: 45, bgcolor: transparent"]
6​
[/TD]
[TD="width: 48"]
29​
[/TD]
[TD="width: 43"]
1​
[/TD]
[/TR]
[TR]
[TD="width: 126, bgcolor: transparent"]51001-7049-5543
[/TD]
[TD="width: 86, bgcolor: transparent"]51001
[/TD]
[TD="width: 119, bgcolor: transparent"]7049
[/TD]
[TD="width: 116, bgcolor: transparent"]5543
[/TD]
[TD="width: 56, bgcolor: transparent"]32
[/TD]
[TD="width: 45, bgcolor: transparent"]
6​
[/TD]
[TD="width: 48"]
31​
[/TD]
[TD="width: 43"]
1​
[/TD]
[/TR]
[TR]
[TD="width: 126, bgcolor: transparent"]51001-7049-5543
[/TD]
[TD="width: 86, bgcolor: transparent"]51001
[/TD]
[TD="width: 119, bgcolor: transparent"]7049
[/TD]
[TD="width: 116, bgcolor: transparent"]5543
[/TD]
[TD="width: 56, bgcolor: transparent"]32

[/TD]
[TD="width: 45, bgcolor: transparent"]
6​
[/TD]
[TD="width: 48"]
32​
[/TD]
[TD="width: 43"]
1​
[/TD]
[/TR]
[TR]
[TD="width: 126, bgcolor: transparent"]51001-7049-5543
[/TD]
[TD="width: 86, bgcolor: transparent"]51001
[/TD]
[TD="width: 119, bgcolor: transparent"]7049
[/TD]
[TD="width: 116, bgcolor: transparent"]5543
[/TD]
[TD="width: 56, bgcolor: transparent"]32
[/TD]
[TD="width: 45, bgcolor: transparent"]
6​
[/TD]
[TD="width: 48"]
33​
[/TD]
[TD="width: 43"]
1​
[/TD]
[/TR]
[TR]
[TD="width: 126, bgcolor: transparent"]51001-7049-5543
[/TD]
[TD="width: 86, bgcolor: transparent"]51001
[/TD]
[TD="width: 119, bgcolor: transparent"]7049
[/TD]
[TD="width: 116, bgcolor: transparent"]5543
[/TD]
[TD="width: 56, bgcolor: transparent"]32
[/TD]
[TD="width: 45, bgcolor: transparent"]
6​
[/TD]
[TD="width: 48"]
34​
[/TD]
[TD="width: 43"]
1​
[/TD]
[/TR]
[TR]
[TD="width: 126, bgcolor: transparent"]51001-7049-5543
[/TD]
[TD="width: 86, bgcolor: transparent"]51001
[/TD]
[TD="width: 119, bgcolor: transparent"]7049
[/TD]
[TD="width: 116, bgcolor: transparent"]5543
[/TD]
[TD="width: 56, bgcolor: transparent"]32
[/TD]
[TD="width: 45, bgcolor: transparent"]
6​
[/TD]
[TD="width: 48"]
36​
[/TD]
[TD="width: 43"]
1​
[/TD]
[/TR]
[/TABLE]


Mìnhcó ghi chú trong File đính kèm





Mong được chỉ giáo, cảmơn
 
Lần chỉnh sửa cuối:
Xin lỗi ,Mình cố gắng gửi File Excel nhưng mà khôngcó dc
 

File đính kèm

Upvote 0
Mong mọi người giúp mình, làm VBA hoặc Excel cũngđược
 
Upvote 0

Bài viết mới nhất

Back
Top Bottom