From 630800e709947cf141716858a387841a3192c2aa Mon Sep 17 00:00:00 2001 From: Paul580710 Date: Wed, 7 Oct 2026 14:09:10 +0200 Subject: [PATCH] changed second to thrid for more clearness --- formula/SheetFormel_Working2.s | 2 +- formula/SheetFormel_Working3.s | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/formula/SheetFormel_Working2.s b/formula/SheetFormel_Working2.s index 5daa674..bed2572 100644 --- a/formula/SheetFormel_Working2.s +++ b/formula/SheetFormel_Working2.s @@ -2,7 +2,7 @@ IMPORTRANGE("https://docs.google.com/spreadsheets/d/1MPCIXoBqguYu9oRnwQ2tfYMqY_vY4tS5dJzNF7by3aY/edit?usp=sharing";"'"&Cell("Sheet";date)&"'!B1:S1"); INDEX(IMPORTRANGE("https://docs.google.com/spreadsheets/d/1MPCIXoBqguYu9oRnwQ2tfYMqY_vY4tS5dJzNF7by3aY/edit?usp=sharing";"'"&Cell("Sheet";date)&"'!B2:S40");Day(date)) =job); - If(second="--"; + If(third="--"; SWITCH(true; COUNTA(work) = 1; "Not enough workers planned"; COUNTA(work) >= 2; TEXTJOIN(", ";true;CHOOSECOLS(work;SEQUENCE(1;COUNTA(work)-1;2))); diff --git a/formula/SheetFormel_Working3.s b/formula/SheetFormel_Working3.s index 87a3f18..f28195c 100644 --- a/formula/SheetFormel_Working3.s +++ b/formula/SheetFormel_Working3.s @@ -2,7 +2,7 @@ IMPORTRANGE("https://docs.google.com/spreadsheets/d/1MPCIXoBqguYu9oRnwQ2tfYMqY_vY4tS5dJzNF7by3aY/edit?usp=sharing";"'"&Cell("Sheet";date)&"'!B1:S1"); INDEX(IMPORTRANGE("https://docs.google.com/spreadsheets/d/1MPCIXoBqguYu9oRnwQ2tfYMqY_vY4tS5dJzNF7by3aY/edit?usp=sharing";"'"&Cell("Sheet";date)&"'!B2:S40");Day(date)) =job); - If(second="--";"Course not possible"; + If(third="--";"Course not possible"; SWITCH(true; COUNTA(work) = 1; "Not enough workers planned"; COUNTA(work) = 2; TEXTJOIN(", ";true;CHOOSECOLS(work;2));