
Option Explicit
Public Function WD(d As String) As Byte
Dim ArrW, i As Byte
ArrW = Application.GetCustomListContents(2)
For i = 1 To UBound(ArrW)
If UCase(ArrW(i)) = UCase(d) Then WD = i
Next
End Function |
=CONFRONTA(A1;Giorni;0)-1 |
=CONFRONTA(A1;Giorni;0) |
