
Sub intervallo()
Dim r As Integer
r = 1
Do Until Cells(r, 2) = ""
Columns("C").Replace Cells(r, 1), Cells(r, 2), xlWhole
r = r + 1
Loop
End Sub
|
Sub Formula()
Dim x As String
With Range("C2:C" & Range("C" & Rows.Count).End(xlUp).Row)
x = .Address
.Offset(, 0) = Evaluate("VLOOKUP( " & x & " ,A:B" & ",2,FALSE)")
End With
End Sub |
