Ich berechne in Zelle C2 die bereits geleistete Arbeitszeit.
Ab 11:00 Stunden soll der Zellhintergrund gelb sein und ab 12:00 Stunden rot.
Kann mir jemand helfen. Ich bedanke mich schonmal dafür!
Viele Grüße Marin
Sub Aktualisieren()
Range("D2").Value = Range("D2").Value + 1
End Sub
Gruß WernerC | |
1 | Differenz |
2 | 11:56 |
3 | 12:02 |
verwendete Formeln | |||
Zelle | Formel | Bereich | N/A |
C2:C3 | =REST(B2-A2;1) |
Zahlenformate | |||
Zelle | Format | Inhalt | |
C2 | 'h:mm;@ | 0,4977907407374 | |
C3 | 'h:mm;@ | 0,501388888888889 |
Bedingte Formatierung Haupttabelle 1 | |||||||||||
Wird angewendet auf | Nr. Bed. Regeltyp | Operator | Formel1 | Formel2 | Format Schrift Füll-farbe | Unterstrichen | Schrift- farbe | Muster | Muster-farbe | Typ | Bereich |
$C:$C | 01.Bed.: Formel ist | =UND(ZEILE()>1;C1*24>12) | 255 | 2 | $C:$C | ||||||
$C:$C | 02.Bed.: Formel ist | =UND(ZEILE()>1;C1*24>11) | 65535 | 2 | $C:$C |
Bedingte Formatierung Haupttabelle 2 | oberere/unterer Bereich | ||||||||
Wird angewendet auf | Nr. Bed. | Format Zelle | Anhalten | Auswahl | Anzeige | Anzahl | Durchschnitt | Typ | Bereich |
$C:$C | 01.Bed. | Falsch | 2 | $C:$C | |||||
$C:$C | 02.Bed. | Falsch | 2 | $C:$C |
Schriftformate | |||||||||
Zelle | Rot | Grün | Blau | Color | Stil | Unterstreichung | Effekte | Durchgestrichen | Schriftart |
C1 | 0 | 0 | 0 | 0 | Fett | Calibri | |||
C2:C3 | 0 | 0 | 0 | 0 | Calibri |