Sub TimKhoangCach()
Dim Rng As Range, sRng As Range
Dim MyAdd As String: Dim W As Long
Set Rng = [B2].CurrentRegion
W = Rng.Rows.Count + Rng.Columns.Count
ReDim Arr(1 To W, 1 To 1)
[J2].Resize(W, 3).Value = ""
Set sRng = Rng.Find(1, , xlFormulas, xlWhole)
W = 1: Arr(W, 1) = "Tìm Ra Dòng"
If sRng Is Nothing Then
Else
MyAdd = sRng.Address
Do
W = W + 1: Arr(W, 1) = sRng.Row
Set sRng = Rng.FindNext(sRng)
Loop While Not sRng Is Nothing And sRng.Address <> MyAdd
End If
If W Then
[k2].Resize(W).Value = Arr()
End If
End Sub