Hello,
voice une petite ligne de code :
If Abs(TOTL1.Cells(i).Value) <= (10 / 100) * TOT.Cells(i).Value And Abs(LR1.Cells(i).Value) >= 1000 Then Show.Cells(i).Value = Round((10 / 100) * TOT.Cells(i).Value + (10 / 100) * TOTL1.Cells(i).Value, 0)
Je cherche a ce que show.cells(i).value soit egale au maximum entre Round((10 / 100) * TOT.Cells(i).Value + (10 / 100) * TOTL1.Cells(i).Value, 0) et 5000 je test avec la function MIN mais ca ne marche pas
Show.Cells(i).Value = MIN(Round((10 / 100) * TOT.Cells(i).Value + (10 / 100) * TOTL1.Cells(i).Value, 0), 5000)
Donc ci show= 3000 je garde 3000 mais si c est egale a 7000 alors show doit etre egale a 5000
A savoir que je travail sur un excel en anglais
Pouvez vous m'aider svp ?