Bonjour,
Je souhaite réaliser une fonction if en boucle continue jusqu'a son arrêt mais je n'ai pas réussis.
If Lifetime < Lifetime * Application.WorksheetFunction.RoundUp(remplacement, 0) Then
Range("B14") = Lifetime - Lifetime
End If
If Lifetime * 2 < Lifetime * Application.WorksheetFunction.RoundUp(remplacement, 0) Then
Range("C14") = Lifetime
End If
If 3 * Lifetime < Lifetime * Application.WorksheetFunction.RoundUp(remplacement, 0) Then
Range("D14") = 3 * Lifetime - Lifetime
End If
If 4 * Lifetime < Lifetime * Application.WorksheetFunction.RoundUp(remplacement, 0) Then
Range("E14") = 4 * Lifetime - Lifetime
End If
If 5 * Lifetime < Lifetime * Application.WorksheetFunction.RoundUp(remplacement, 0) Then
Range("F14") = 5 * Lifetime - Lifetime
End If
If 6 * Lifetime < Lifetime * Application.WorksheetFunction.RoundUp(remplacement, 0) Then
Range("G14") = 6 * Lifetime - Lifetime
End If
If 7 * Lifetime < Lifetime * Application.WorksheetFunction.RoundUp(remplacement, 0) Then
Range("H14") = 7 * Lifetime - Lifetime
End If
If 8 * Lifetime < Lifetime * Application.WorksheetFunction.RoundUp(remplacement, 0) Then
Range("I14") = 8 * Lifetime - Lifetime
End If
If 9 * Lifetime < Lifetime * Application.WorksheetFunction.RoundUp(remplacement, 0) Then
Range("J14") = 9 * Lifetime - Lifetime
End If
If 10 * Lifetime < Lifetime * Application.WorksheetFunction.RoundUp(remplacement, 0) Then
Range("K14") = 10 * Lifetime - Lifetime
End If
If 10 * Lifetime < Lifetime * Application.WorksheetFunction.RoundUp(remplacement, 0) Then
Range("L14") = 10 * Lifetime - Lifetime
End If
Voici le seul moyen que j'ai touvé mais évidemment je sais qu'il est possible d'automatiser tout ça.
De plus j'aimerais avoir le résultat dans une case séparé par des virgules mais je ne sais pas comment faire.
Auriez-vous une solution à ce problème?