Bonjour,
En faite voila,ma page html:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
<html>
<head>
<title>fact 1.0</title>
<script type="text/vbscript">
sub ok_onclick
document.commande.total.value = document.commande.depart.value - document.commande.debut.value
msgbox "alerte"
end sub
</script>
</head>
<body>
<form name="commande">
<table align="center">
<tr>
<td align="center"><input type="text" name="debut"/><input type="text" name="depart"/><input type="button" name="ok" value="calculer"/><input type="text" name="total"/></td>
</tr>
</table>
</form>
</body>
</html> |
Et je voudrais remplacer ma formule qui est à l'intérieur c'est à dire :
document.commande.total.value = document.commande.depart.value - document.commande.debut.value
Par :
=MOD(D6-C6;1)-SI(D6>=C6;MAX(0;MIN(D6;"21:")-MAX(C6;"6:"));MAX(0;"21:"-MAX(C6;"6:"))+MAX(0;MIN(D6;"21:")-"6:"))
en remplaçant la cellule D6 par mon champ depart et C6 par mon champ debut.
Enfin c'est ce que je demande, mais maintenant quand je vois la formule je me dis c'est peu pas fesable ???
enfin c'est ce que je me dis mais merci d'avance d'avoir pencher sur mon probleme bbil
Partager