Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
dùng công thức sauMình muốn dùng Validiation lọc số liệu theo tổ ở sheet Du lieu đưa vào sheet xuat mà không biết dùng hàm gì, mong các bác chỉ giáo. 4888
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, [A1]) Is Nothing Then
Dim Sh As Worksheet, Rng As Range, sRng As Range, Cls As Range
[A4].CurrentRegion.Offset(2).ClearContents
Set Sh = Sheets("Du Lieu"): Set Rng = Sh.Columns("A:A")
Set sRng = Rng.Find(Target.Value, , xlFormulas, xlWhole)
If Not sRng Is Nothing Then
Set Cls = sRng.CurrentRegion
Cls.Cells(4, 1).Resize(Cls.Rows.Count - 3, Cls.Columns.Count).Copy _
Destination:=[A65500].End(xlUp).Offset(1)
End If
End If
End Sub
dùng công thức sau
A6=INDEX('Du lieu'!$A$1:$C$50,MATCH($A$1,'Du lieu'!$A$1:$A$50,0)+ROWS(A$4:A6),COLUMNS($A6:A6))
bạn đã thử chưa ?Ý mình là muốn khi chọn tổ 1 thì ngay lập tức các thjoong số của tổ 1 bên sheet Dữ liệu tự động điền vào