Function GET_WL(xA, Va, Vb) As String
Dim Arr, AA, j&, Jm%, T$
Arr = xA.Value
For j = 1 To UBound(Arr)
If Arr(j, 2) <> "" Then
Jm = 0: AA = Split(Arr(j, 2) & "~", "~")
If Va > Val(AA(0)) And Va <= Val(AA(1)) Then T = Arr(j, 1): Jm = 1
End If
If Jm = 1 Then
AA = Split(Arr(j, 4) & "~", "~")
If Vb > Val(AA(0)) And Vb <= Val(AA(1)) Then GET_WL = T & "_" & Arr(j, 3): Exit For
End If
Next j
End Function