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.


Bạn kiểm tra file đính kèmChào các anh/chị,
Các anh chị giúp em trích xuất dữ liệu sau khi nhập 2 đối tượng cần thì nó sẽ cho ra kết quả tương ứng với bảng dữ liệu cho trước, em có file ví dụ sau các anh chị giúp đỡ ạ
Sub TimKiem()
Dim Rng As Range, sRng As Range
Dim MyAdd As String: Const TB As String = "Không Có"
Dim Rws As Long
Rws = [C2].CurrentRegion.Rows.Count
Set Rng = [C1].Resize(Rws)
[I2:J2].Value = TB
[M2].Resize(, 2).Value = Space(0)
Set sRng = Rng.Find([K2].Value, , xlFormulas, xlWhole)
If Not sRng Is Nothing Then
MyAdd = sRng.Address
Do
If sRng.Offset(, 1).Value = [L2].Value Then
[I2:J2].Value = sRng.Offset(, -2).Resize(, 2).Value
[M2:N2].Value = sRng.Offset(, 2).Resize(, 2).Value
Exit Do
End If
Set sRng = Rng.FindNext(sRng)
Loop While Not sRng Is Nothing And sRng.Address <> MyAdd
Else
[K2].Value = TB
End If
End Sub
Em cảm ơn, em làm được rồi ạBạn kiểm tra file đính kèm

Bạn cũng có thể tham khảo thêm công thức này :Em cảm ơn, em làm được rồi ạ