Function Nber(Row) As Single
'Creation of parameters
Dim PA, PB, PC, SystemNbr, LastRow As Single
Dim I, NB As Integer
Dim Name As String
'Set up of the initial values
Sheets("Data").Activate
LastRow = Rows.Count
Sheets("Sheet1").Activate
NB = 0
Row = ActiveCell.Row
SystemNbr = Cells(Row, 14).Value
PA = Cells(Row, 6).Value
PB = Cells(Row, 7).Value
PC = Cells(Row, 8).Value
Name = Cells(Row, 9).Value
'Coding
'Activate page DATA
Sheets("Data").Activate
'Count similar lines
For I = 1 To LastRow
If Cells(I, 14) = SystemNbr And Cells(I, 6) = PA And Cells(I, 7) = PB And Cells(I, 8) = PC And Cells(I, 9) = Name Then
NB = NB + 1
End If
Next I
Nber = NB
End Function