Tạo bảng hoặc sắp xếp theo theo thứ tự xác định (2 người xem)

Liên hệ QC

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

pavnguyen

Thành viên mới
Tham gia
8/11/16
Bài viết
5
Được thích
0
Chào các bạn,

Mình muốn tạo ra bảng như trong file đính kèm, từ 2 cột hàng ngang và hàng dọc đầu tiên, mình tạo ra 1 bảng như thế này, mong được giúp đỡ. Mình muốn sau này thêm K7, K8,.... và M8, M9, vvv... thì cũng sẽ sắp xếp như trong hình (xin lỗi vì giải thích hơi khó hiểu, các bạn xem hình và file giúp.

Thanks


[TD="bgcolor: #85200c, align: center"]M1[/TD]
[TD="bgcolor: #85200c, align: center"]M2[/TD]
[TD="bgcolor: #85200c, align: center"]M3[/TD]
[TD="bgcolor: #85200c, align: center"]M4[/TD]
[TD="bgcolor: #85200c, align: center"]M5[/TD]
[TD="bgcolor: #85200c, align: center"]M6[/TD]
[TD="bgcolor: #85200c, align: center"]M7[/TD]

[TD="bgcolor: #274e13, align: center"]K1[/TD]
[TD="align: center"]K1[/TD]
[TD="align: center"]K2[/TD]
[TD="align: center"]K3[/TD]
[TD="align: center"]K4[/TD]
[TD="align: center"]K5[/TD]
[TD="align: center"]K6[/TD]
[TD="align: center"]K1[/TD]

[TD="bgcolor: #274e13, align: center"]K2[/TD]
[TD="align: center"]K2[/TD]
[TD="align: center"]K3[/TD]
[TD="align: center"]K4[/TD]
[TD="align: center"]K5[/TD]
[TD="align: center"]K6[/TD]
[TD="align: center"]K1[/TD]
[TD="align: center"]K2[/TD]

[TD="bgcolor: #274e13, align: center"]K3[/TD]
[TD="align: center"]K3[/TD]
[TD="align: center"]K4[/TD]
[TD="align: center"]K5[/TD]
[TD="align: center"]K6[/TD]
[TD="align: center"]K1[/TD]
[TD="align: center"]K2[/TD]
[TD="align: center"]K3[/TD]

[TD="bgcolor: #274e13, align: center"]K4[/TD]
[TD="align: center"]K4[/TD]
[TD="align: center"]K5[/TD]
[TD="align: center"]K6[/TD]
[TD="align: center"]K1[/TD]
[TD="align: center"]K2[/TD]
[TD="align: center"]K3[/TD]
[TD="align: center"]K4[/TD]

[TD="bgcolor: #274e13, align: center"]K5[/TD]
[TD="align: center"]K5[/TD]
[TD="align: center"]K6[/TD]
[TD="align: center"]K1[/TD]
[TD="align: center"]K2[/TD]
[TD="align: center"]K3[/TD]
[TD="align: center"]K4[/TD]
[TD="align: center"]K5[/TD]

[TD="bgcolor: #274e13, align: center"]K6[/TD]
[TD="align: center"]K6[/TD]
[TD="align: center"]K1[/TD]
[TD="align: center"]K2[/TD]
[TD="align: center"]K3[/TD]
[TD="align: center"]K4[/TD]
[TD="align: center"]K5[/TD]
[TD="align: center"]K6[/TD]
 

File đính kèm

Chào các bạn,

Mình muốn tạo ra bảng như trong file đính kèm, từ 2 cột hàng ngang và hàng dọc đầu tiên, mình tạo ra 1 bảng như thế này, mong được giúp đỡ. Mình muốn sau này thêm K7, K8,.... và M8, M9, vvv... thì cũng sẽ sắp xếp như trong hình (xin lỗi vì giải thích hơi khó hiểu, các bạn xem hình và file giúp.

Thanks


[TD="bgcolor: #85200c, align: center"]M1[/TD]
[TD="bgcolor: #85200c, align: center"]M2[/TD]
[TD="bgcolor: #85200c, align: center"]M3[/TD]
[TD="bgcolor: #85200c, align: center"]M4[/TD]
[TD="bgcolor: #85200c, align: center"]M5[/TD]
[TD="bgcolor: #85200c, align: center"]M6[/TD]
[TD="bgcolor: #85200c, align: center"]M7[/TD]

[TD="bgcolor: #274e13, align: center"]K1[/TD]
[TD="align: center"]K1[/TD]
[TD="align: center"]K2[/TD]
[TD="align: center"]K3[/TD]
[TD="align: center"]K4[/TD]
[TD="align: center"]K5[/TD]
[TD="align: center"]K6[/TD]
[TD="align: center"]K1[/TD]

[TD="bgcolor: #274e13, align: center"]K2[/TD]
[TD="align: center"]K2[/TD]
[TD="align: center"]K3[/TD]
[TD="align: center"]K4[/TD]
[TD="align: center"]K5[/TD]
[TD="align: center"]K6[/TD]
[TD="align: center"]K1[/TD]
[TD="align: center"]K2[/TD]

[TD="bgcolor: #274e13, align: center"]K3[/TD]
[TD="align: center"]K3[/TD]
[TD="align: center"]K4[/TD]
[TD="align: center"]K5[/TD]
[TD="align: center"]K6[/TD]
[TD="align: center"]K1[/TD]
[TD="align: center"]K2[/TD]
[TD="align: center"]K3[/TD]

[TD="bgcolor: #274e13, align: center"]K4[/TD]
[TD="align: center"]K4[/TD]
[TD="align: center"]K5[/TD]
[TD="align: center"]K6[/TD]
[TD="align: center"]K1[/TD]
[TD="align: center"]K2[/TD]
[TD="align: center"]K3[/TD]
[TD="align: center"]K4[/TD]

[TD="bgcolor: #274e13, align: center"]K5[/TD]
[TD="align: center"]K5[/TD]
[TD="align: center"]K6[/TD]
[TD="align: center"]K1[/TD]
[TD="align: center"]K2[/TD]
[TD="align: center"]K3[/TD]
[TD="align: center"]K4[/TD]
[TD="align: center"]K5[/TD]

[TD="bgcolor: #274e13, align: center"]K6[/TD]
[TD="align: center"]K6[/TD]
[TD="align: center"]K1[/TD]
[TD="align: center"]K2[/TD]
[TD="align: center"]K3[/TD]
[TD="align: center"]K4[/TD]
[TD="align: center"]K5[/TD]
[TD="align: center"]K6[/TD]
Mã:
B2 ="K"&MOD(ROW(1:1)+COLUMN(A:A)-2,COUNTA($A$2:$A$100))+1
copy qua phải và xuống dưới
 
Nếu được cho em hỏi cách sắp xếp sau khi có được kết quả như trên, em có dữ liệu bảng như sau và muốn sắp xếp dữ liệu như thứ tự ban đầu như vậy thì làm thế nào, em làm đủ từ vlookup, hlookup vẫn ko ra cột giống vậy (file đính kèm)

Kết quả
ADG
BEH
CFI
DGJ
EHK
FIL
GJM
HKN
ILO
JMP
KNQ
LOR
MPA
NQB
ORC
PAD
QBE
RCF

[TD="bgcolor: #274e13"]K1[/TD]
[TD="bgcolor: #274e13"]K2[/TD]
[TD="bgcolor: #274e13"]K3[/TD]
[TD="bgcolor: #274e13"]K4[/TD]
[TD="bgcolor: #274e13"]K5[/TD]
[TD="bgcolor: #274e13"]K6[/TD]

[TD="bgcolor: #f3f3f3"]A[/TD]
[TD="bgcolor: #f3f3f3"]D[/TD]
[TD="bgcolor: #f3f3f3"]G[/TD]
[TD="bgcolor: #f3f3f3"]J[/TD]
[TD="bgcolor: #f3f3f3"]M[/TD]
[TD="bgcolor: #f3f3f3"]P[/TD]

[TD="bgcolor: #f3f3f3"]B[/TD]
[TD="bgcolor: #f3f3f3"]E[/TD]
[TD="bgcolor: #f3f3f3"]H[/TD]
[TD="bgcolor: #f3f3f3"]K[/TD]
[TD="bgcolor: #f3f3f3"]N[/TD]
[TD="bgcolor: #f3f3f3"]Q[/TD]

[TD="bgcolor: #f3f3f3"]C[/TD]
[TD="bgcolor: #f3f3f3"]F[/TD]
[TD="bgcolor: #f3f3f3"]I[/TD]
[TD="bgcolor: #f3f3f3"]L[/TD]
[TD="bgcolor: #f3f3f3"]O[/TD]
[TD="bgcolor: #f3f3f3"]R[/TD]
 
Lần chỉnh sửa cuối:
thêm file đính kèm, mong các anh chị giúp đỡ. Thanks.
 
sorry, vì add file đính kèm không được nên đành gửi lại.
 
Nếu được cho em hỏi cách sắp xếp sau khi có được kết quả như trên, em có dữ liệu bảng như sau và muốn sắp xếp dữ liệu như thứ tự ban đầu như vậy thì làm thế nào, em làm đủ từ vlookup, hlookup vẫn ko ra cột giống vậy (file đính kèm)

Kết quả
ADG
BEH
CFI
DGJ
EHK
FIL
GJM
HKN
ILO
JMP
KNQ
LOR
MPA
NQB
ORC
PAD
QBE
RCF

[TD="bgcolor: #274e13"]K1[/TD]
[TD="bgcolor: #274e13"]K2[/TD]
[TD="bgcolor: #274e13"]K3[/TD]
[TD="bgcolor: #274e13"]K4[/TD]
[TD="bgcolor: #274e13"]K5[/TD]
[TD="bgcolor: #274e13"]K6[/TD]

[TD="bgcolor: #f3f3f3"]A[/TD]
[TD="bgcolor: #f3f3f3"]D[/TD]
[TD="bgcolor: #f3f3f3"]G[/TD]
[TD="bgcolor: #f3f3f3"]J[/TD]
[TD="bgcolor: #f3f3f3"]M[/TD]
[TD="bgcolor: #f3f3f3"]P[/TD]

[TD="bgcolor: #f3f3f3"]B[/TD]
[TD="bgcolor: #f3f3f3"]E[/TD]
[TD="bgcolor: #f3f3f3"]H[/TD]
[TD="bgcolor: #f3f3f3"]K[/TD]
[TD="bgcolor: #f3f3f3"]N[/TD]
[TD="bgcolor: #f3f3f3"]Q[/TD]

[TD="bgcolor: #f3f3f3"]C[/TD]
[TD="bgcolor: #f3f3f3"]F[/TD]
[TD="bgcolor: #f3f3f3"]I[/TD]
[TD="bgcolor: #f3f3f3"]L[/TD]
[TD="bgcolor: #f3f3f3"]O[/TD]
[TD="bgcolor: #f3f3f3"]R[/TD]



Bạn
thử dùng CT này:
A7=OFFSET($A$1,MOD(ROW(1:1)-1,3)+1,INT((ROW(1:1)-1)/3)) fill xuống
B7=INDEX($A$7:$A$24,MOD(ROW(1:1)+MATCH(B$2,$A$7:$A$24,)-2,COUNTA($A$7:$A$24))+1,) Fill sang phải xuống dưới.
Xem file tham khảo
 

File đính kèm

Lần chỉnh sửa cuối:
Chào các bạn,

Mình muốn tạo ra bảng như trong file đính kèm, từ 2 cột hàng ngang và hàng dọc đầu tiên, mình tạo ra 1 bảng như thế này, mong được giúp đỡ. Mình muốn sau này thêm K7, K8,.... và M8, M9, vvv... thì cũng sẽ sắp xếp như trong hình (xin lỗi vì giải thích hơi khó hiểu, các bạn xem hình và file giúp.

Thanks


[TD="bgcolor: #85200c, align: center"]M1[/TD]
[TD="bgcolor: #85200c, align: center"]M2[/TD]
[TD="bgcolor: #85200c, align: center"]M3[/TD]
[TD="bgcolor: #85200c, align: center"]M4[/TD]
[TD="bgcolor: #85200c, align: center"]M5[/TD]
[TD="bgcolor: #85200c, align: center"]M6[/TD]
[TD="bgcolor: #85200c, align: center"]M7[/TD]

[TD="bgcolor: #274e13, align: center"]K1[/TD]
[TD="align: center"]K1[/TD]
[TD="align: center"]K2[/TD]
[TD="align: center"]K3[/TD]
[TD="align: center"]K4[/TD]
[TD="align: center"]K5[/TD]
[TD="align: center"]K6[/TD]
[TD="align: center"]K1[/TD]

[TD="bgcolor: #274e13, align: center"]K2[/TD]
[TD="align: center"]K2[/TD]
[TD="align: center"]K3[/TD]
[TD="align: center"]K4[/TD]
[TD="align: center"]K5[/TD]
[TD="align: center"]K6[/TD]
[TD="align: center"]K1[/TD]
[TD="align: center"]K2[/TD]

[TD="bgcolor: #274e13, align: center"]K3[/TD]
[TD="align: center"]K3[/TD]
[TD="align: center"]K4[/TD]
[TD="align: center"]K5[/TD]
[TD="align: center"]K6[/TD]
[TD="align: center"]K1[/TD]
[TD="align: center"]K2[/TD]
[TD="align: center"]K3[/TD]

[TD="bgcolor: #274e13, align: center"]K4[/TD]
[TD="align: center"]K4[/TD]
[TD="align: center"]K5[/TD]
[TD="align: center"]K6[/TD]
[TD="align: center"]K1[/TD]
[TD="align: center"]K2[/TD]
[TD="align: center"]K3[/TD]
[TD="align: center"]K4[/TD]

[TD="bgcolor: #274e13, align: center"]K5[/TD]
[TD="align: center"]K5[/TD]
[TD="align: center"]K6[/TD]
[TD="align: center"]K1[/TD]
[TD="align: center"]K2[/TD]
[TD="align: center"]K3[/TD]
[TD="align: center"]K4[/TD]
[TD="align: center"]K5[/TD]

[TD="bgcolor: #274e13, align: center"]K6[/TD]
[TD="align: center"]K6[/TD]
[TD="align: center"]K1[/TD]
[TD="align: center"]K2[/TD]
[TD="align: center"]K3[/TD]
[TD="align: center"]K4[/TD]
[TD="align: center"]K5[/TD]
[TD="align: center"]K6[/TD]




Bạn
dùng
CT:
B2=OFFSET($A$1,MOD(ROW(1:1)+COLUMN(A:A)-2,COUNTA($A$2:$A$100))+1,) fill sang rh , xuống
Hoặc
=INDEX($A$2:$A$7,MOD(ROW(1:1)+COLUMN(A:A)-2,COUNTA($A$2:$A$100))+1,) fill sang rh , xuống
 
Nếu được cho em hỏi cách sắp xếp sau khi có được kết quả như trên, em có dữ liệu bảng như sau và muốn sắp xếp dữ liệu như thứ tự ban đầu như vậy thì làm thế nào, em làm đủ từ vlookup, hlookup vẫn ko ra cột giống vậy (file đính kèm)

Kết quả
ADG
BEH
CFI
DGJ
EHK
FIL
GJM
HKN
ILO
JMP
KNQ
LOR
MPA
NQB
ORC
PAD
QBE
RCF

[TD="bgcolor: #274e13"]K1[/TD]
[TD="bgcolor: #274e13"]K2[/TD]
[TD="bgcolor: #274e13"]K3[/TD]
[TD="bgcolor: #274e13"]K4[/TD]
[TD="bgcolor: #274e13"]K5[/TD]
[TD="bgcolor: #274e13"]K6[/TD]

[TD="bgcolor: #f3f3f3"]A[/TD]
[TD="bgcolor: #f3f3f3"]D[/TD]
[TD="bgcolor: #f3f3f3"]G[/TD]
[TD="bgcolor: #f3f3f3"]J[/TD]
[TD="bgcolor: #f3f3f3"]M[/TD]
[TD="bgcolor: #f3f3f3"]P[/TD]

[TD="bgcolor: #f3f3f3"]B[/TD]
[TD="bgcolor: #f3f3f3"]E[/TD]
[TD="bgcolor: #f3f3f3"]H[/TD]
[TD="bgcolor: #f3f3f3"]K[/TD]
[TD="bgcolor: #f3f3f3"]N[/TD]
[TD="bgcolor: #f3f3f3"]Q[/TD]

[TD="bgcolor: #f3f3f3"]C[/TD]
[TD="bgcolor: #f3f3f3"]F[/TD]
[TD="bgcolor: #f3f3f3"]I[/TD]
[TD="bgcolor: #f3f3f3"]L[/TD]
[TD="bgcolor: #f3f3f3"]O[/TD]
[TD="bgcolor: #f3f3f3"]R[/TD]
bạn chọn 1 trong 2 công thức
Mã:
=INDEX($A$2:$F$4,MOD(ROW(1:1)-1,3)+1,MOD(INT((ROW(1:1)-1)/3+COLUMN(A:A))-1,6)+1)

Mã:
=IF(ROW(1:1)>COUNTA($A$2:$F$4),"",INDEX($A$2:$F$4,MOD(ROW(1:1)-1,3)+1,MOD(INT((ROW(1:1)-1)/3+COLUMN(A:A))-1,6)+1))
 

File đính kèm

Web KT

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

Back
Top Bottom