Sub Macro1()
'
' Macro1 Macro
'
'
Range("R10").Select
ActiveCell.FormulaR1C1 = "=IF(COUNTIF(R10C3:RC[-15],RC[-15])>1,"""",RC[-15])"
Range("R10").Select
Selection.AutoFill Destination:=Range("R10:R2650"), Type:=xlFillDefault
Range("R10:R2650").Select
Selection.AutoFilter
ActiveSheet.Range("$R$10:$R$2650").AutoFilter Field:=1, Criteria1:=Array( _
"5-T-TP-DDK", "8-TCLT-TP-DDK", "A300", "A300- viê`n khung bao", _
"C101A-T0.9 (18.2x16)", "C1687 (60x14.2)", "C1697 (60x25.3)", "C3033", _
"C3033 (51x52.4x1.4)", "C3202 (54.8x76)", "C3202A-T1.2 (54.8x76)", _
"C3203 (54.8x68)", "C3203-T1.2 (54.8x68)", "C3209 (54.8x50)", _
"C3209-T1.2 (54.8x50)", "C3295 (37.3x23.5)", "C3303 (54.8x87)", _
"C3303-T1.2 (54.8x87)", "C3304 (54.5x138)", "C3304-T1.2 (54.5x138)", _
"C3313 (54.8x68)", "C3313-T1.2 (54.8x68)", "C3318 (54.8x50)", _
"C3318-T1.2 (54.8x50)", "C3323-T1.2 (50x57.2)", "C3328-T1.2 (54.8x66)", _
"C3329 (40.7x21.6)", "C3332 (54.8x87)", "D1541A-T1.2(93.4x40)", _
"D1541A-T2.0 (93.4x40)", "D1543A-T1.2 (98x34)", "D1543A-T2.0 (98x34)", _
"D1544A-T1.2 (28.9x50)", "D1544A-T2.0 (28.9x50)", "D1545A-T1.2(28.9x61.5)", _
"D1546A-T1.2 (62x33.7)", "D1546A-T2.0 (62x33.7)", "D1546C-T2.0 (85x33.7)", _
"D1547A-T1.2 (50x39.2)", "D1547A-T2.0 (50x39.2)", "D1547C-T2.0 (85x39.2)", _
"D1548A-T2.0 (39.5x20)", "D1549A-T2.0 (98x21.3)", "D1551A-T1.8 (93.4x62.8)", _
"D1555A-T1.2 (28.9x71.5)", "D1555A-T2.0 (28.9x71.5)", "D1559A-T2.0 (93.4x38.8)", _
"D17182-T1.2 (93.4x25.5)", "D17182-T2.0 (93.4x25.5)", "D17182-T2.0 (93.4x40)", _
"D2618A-T2.0 (92.4x50.6)", "DA2006 (19x19x0.8)", "DA3001 (100.3X9.8)", _
"ÐGCBG-HH,L,T", "DK-5", "DLM", "EP041K", "EP163K", "F347 (95x31.6)", "GO-GC55", _
"GO-GC56", "KB", "KEG", "KTC", "MTC-UK", "NBM3.9", "NC-UK", "NDV", "NRS", "TCVLD-5", _
"Vi3,9x19", "Vi3,9x40", "VN-M5x70", "ZL.3x9 (SP3x9)", "ZL.7x5 (SP7x5)"), Operator _
:=xlFilterValues
Selection.Copy
Sheets("THVT").Select
Range("C9").Select
ActiveSheet.Paste
ActiveWindow.SmallScroll Down:=-6
Sheets("PTVT").Select
Application.CutCopyMode = False
Selection.ClearContents
Selection.ClearContents
Selection.ClearContents
ActiveWindow.SmallScroll Down:=-24
Sheets("THVT").Select
Range("G9").Select
ActiveCell.FormulaR1C1 = "=SUMIF(PTVT!C3,THVT!RC[-4],THVT!C[2])"
Range("G9").Select
ActiveCell.FormulaR1C1 = "=SUMIF(PTVT!C3,THVT!RC[-4],PTVT!C[2])"
Range("G9").Select
Selection.AutoFill Destination:=Range("G9:G84"), Type:=xlFillDefault
Range("G9:G84").Select
ActiveWindow.SmallScroll Down:=-54
Range("H9").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-5],PTVT!R10C3:R2650C17,8,0)"
Range("H9").Select
Selection.AutoFill Destination:=Range("H9:H84"), Type:=xlFillDefault
Range("H9:H84").Select
ActiveWindow.SmallScroll Down:=-57
Range("I9").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-6],PTVT!R9C3:R2650C17,1,0)"
Range("I9").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-6],PTVT!R9C3:R2650C17,10,0)"
Range("I9").Select
Selection.AutoFill Destination:=Range("I9:I84"), Type:=xlFillDefault
Range("I9:I84").Select
ActiveWindow.SmallScroll Down:=-39
Range("J9").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-7],PTVT!R9C3:R2650C17,12,0)"
Range("J9").Select
Selection.AutoFill Destination:=Range("J9:J84"), Type:=xlFillDefault
Range("J9:J84").Select
ActiveWindow.SmallScroll Down:=-84
Range("K9").Select
ActiveCell.FormulaR1C1 = ""
Range("L9").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-9],PTVT!R10C3:R2650C17,14,0)"
Range("L9").Select
Selection.AutoFill Destination:=Range("L9:L84"), Type:=xlFillDefault
Range("L9:L84").Select
ActiveWindow.SmallScroll Down:=-39
Range("J25").Select
End Sub