Help needed: Conditional formatting in Gantt chart based on task status (Excel - German)

Anonym
2025-04-22T18:01:26+00:00

![](https://learn-attachment.microsoft.com/api/attachments/3577625f-a343-452d-9009-d05f8d00aefa?platform=QnAHello everyone,

I’m working on a project plan (Workplan) in Excel with a Gantt chart layout. The Excel file is in German, but I hope someone can still help me.

Here’s the situation:

  • I have start and end dates in columns D and E.
  • Task status (“Nicht begonnen”, “In Abklärung”, “Erledigt”) is in column F.
  • The Gantt bars (from G7:BF21) are currently generated with the formula:

=UND(NICHT(ISTLEER(D7));(G$6-WOCHENTAG(G$6;2)+7)>=(D7-WOCHENTAG(D7;2)+7);(G$6-WOCHENTAG(G$6;2)+7)<=(E7-WOCHENTAG(E7;2)+7))

What I want to achieve:

  • I want the Gantt bars to change color based on the task status.
  • For example:
    • “Nicht begonnen” → Red
    • “In Abklärung” → Yellow
    • “Erledigt” → Green

I have tried several approaches (including combining the bar formula with the status check using UND()), but it doesn’t seem to work properly.

Either the bars disappear or all bars are the same color.

I will attach the Excel file. (edit: i cannot upload the Excel File, but a Screenshot is attached)

Any help or suggestion would be highly appreciated!

Thanks in advance,

Roland :)

Microsoft 365 und Office | Excel | Andere | Windows

Gesperrte Frage. Diese Frage wurde aus der Microsoft-Support-Community migriert. Sie können darüber abstimmen, ob sie hilfreich ist, aber Sie können keine Kommentare oder Antworten hinzufügen oder der Frage folgen.

0 Kommentare Keine Kommentare
Antwort, die vom Frageautor angenommen wurde
Andreas Killer 144.1K Zuverlässigkeitspunkte Volunteer Moderator
2025-04-23T10:06:18+00:00

Ist das nicht logisch? Dann steht in F7 nicht "Nicht begonnen" drin.

BTW, die Formel (oder der Aufbau der Daten) ist eh merkwürdig, über dem Gantt steht doch ein Datum und links steht Anfang und Ende.

Warum prüfst Du dann nicht ganz einfach UND(Datum >= Anfang; Datum <= Ende; Status = "WasAuchImmer")

Andreas.

War diese Antwort hilfreich?

Eine Person fand diese Antwort hilfreich.
0 Kommentare Keine Kommentare

4 zusätzliche Antworten

Sortieren nach: Am hilfreichsten
  1. Anonym
    2025-04-29T05:52:39+00:00

    Lieber Andreas,

    ich muss meine Antwort von vorhin revidieren. Die Formel hat super geklappt, ich hatte vermutlich einen Denkfehler der sich jetzt aber erledigt hat.

    Danke dir für die Hilfe!

    Lg, Roland :)

    War diese Antwort hilfreich?

    0 Kommentare Keine Kommentare
  2. Anonym
    2025-04-29T05:12:02+00:00

    Lieber Andreas,

    danke nochmal für die Rückmeldung. Deine Formel habe ich probiert aber leider ändert sich die Farbe vom Balken immer noch nicht abhängig vom Status in Spalte F.

    Der Balken wird zwar mit deiner Formel richtig entsprechend von Start und Enddatum angezeigt sber die Farbe ist immer dieselbe.

    Kannst du mir bitte nochmal weitehelfen :)

    Liebe Grüße, Roland

    War diese Antwort hilfreich?

    0 Kommentare Keine Kommentare
  3. Anonym
    2025-04-23T07:49:48+00:00

    Lieber Andreas,

    vielen Dank für deine schnelle Antwort und den Hinweis ;)

    Die Formel für die bedingte Formatierung habe ich ausprobiert, aber leider ohne Ergebnis. Jetzt zeigt es mir gar keinen Balken mehr an.

    Hast du eine Idee woran das liegen könnte?

    Lg, Roland

    War diese Antwort hilfreich?

    0 Kommentare Keine Kommentare
  4. Andreas Killer 144.1K Zuverlässigkeitspunkte Volunteer Moderator
    2025-04-23T03:45:29+00:00

    In einem deutschen Forum sollte man auf Deutsch fragen, was auch sinnvoll ist wenn man zu einer deutschen Excelversion eine Frage hat. ;-)

    =UND(NICHT(ISTLEER(D7));(G$6-WOCHENTAG(G$6;2)+7)>=(D7-WOCHENTAG(D7;2)+7);(G$6-WOCHENTAG(G$6;2)+7)<=(E7-WOCHENTAG(E7;2)+7) ;$F7="Nicht begonnen")

    Andreas.

    War diese Antwort hilfreich?

    0 Kommentare Keine Kommentare