Closed Thread
Results 1 to 2 of 2

Formule pour calculer les heures majorées

  1. #1
    Registered User
    Join Date
    10-10-2021
    Location
    Guadeloupe
    MS-Off Ver
    365
    Posts
    4

    Formule pour calculer les heures majorées

    Bonsoir

    Je suis sur une formule qui me donner les heures majorées sur une période qui est de 5h à 7h et 20h à 22h, j ai calculé en 2 fois car trop compliqué pour moi de faire ca en 1 seule formule

    1ère formule faite si l'employé à travailler dans la période entre 5h et 7h : avec $S$6 = 05h et $T$6 = 07h alors
    =SIERREUR(SI(ET(C5<D5;C5<$S$6;D5<=$T$6);MOD(D5-$S$6;1);SI(ET(C5<D5;C5<$S$6;D5>=$T$6);MOD($T$6-$S$6;1);SI(ET(C5<D5;C5>=$S$6;D5<=$T$6);MOD(D5-C5;1);SI(ET(C5<D5;C5<$T$6;D5>=$T$6);MOD($T$6-C5;1);0))));0)

    2ème formule faite si l'employé à travailler dans la période entre 20h et 22h : avec $S$5 = 20h et $T$5 = 22h alors
    =SIERREUR(SI(ET(C5<D5;C5<$S$5;D5<=$T$5);MOD(D5-$S$5;1);SI(ET(C5<D5;C5<$S$5;D5>=$T$5);MOD($T$5-$S$5;1);SI(ET(C5<D5;C5>=$S$5;D5<=$T$5);MOD(D5-C5;1);SI(ET(C5<D5;C5<$T$5;D5>=$T$5);MOD($T$5-C5;1);0))));0)

    Problème si les heures sont effectuées avant la période alors mon calcul n est pas correct.
    Ex si l'employé travail de 01h à 4h du matin alors 1er formule fausse elle me donne 23h au lieux de 0h et 2eme formule fausse aussi donne 8h au lieux de 0h !!!!!
    Ex................................01h à 7h.......................................correcte....................2h...............................................fausse..................11h............... 0h
    Ex................................12h à 19h......................................correcte...................0h...............................................fausse...................23h................0h

    Cordialement

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,458

    Re: Formule pour calculer les heures majorées

    Administrative Note:

    Welcome to the forum.

    Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here.

    Please see Forum Rule #5 about thread duplication.

    I am closing this thread, but you may continue here in the original thread: https://www.excelforum.com/excel-pro...-majorees.html
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Formule pour calculer les heures majorées
    By Rémy971 in forum Non English Excel
    Replies: 4
    Last Post: 10-10-2021, 11:24 PM
  2. Heures de travail VS delais
    By beann in forum Non English Excel
    Replies: 1
    Last Post: 06-05-2019, 05:00 PM
  3. SVP ! aide pour créer une application excel VBA .
    By ben.61 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-26-2015, 09:00 PM
  4. Problème pour executer un .bat
    By marcom in forum Non English Excel
    Replies: 2
    Last Post: 10-08-2008, 09:14 AM
  5. [SOLVED] Code pour suppression module
    By tip.tiptop in forum Excel General
    Replies: 1
    Last Post: 03-16-2006, 05:35 PM
  6. Listbox-Merci pour votre aide
    By Charly in forum Excel General
    Replies: 0
    Last Post: 11-29-2005, 11:25 AM
  7. [SOLVED] je voudrait la formule pour mettre 12,78 heures en valeur h:mm
    By tedwynnie in forum Excel General
    Replies: 2
    Last Post: 09-26-2005, 02:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1