={"ID", "Task", "Weekday";
ARRAYFORMULA(TRIM(SPLIT(TRANSPOSE(SPLIT(QUERY(IF(LEN(A3:A),
"♦"&B3:B&"♥"&A3:A&"♥"&A1&"♦"&D3:D&"♥"&C3:C&"♥"&C1&
"♦"&F3:F&"♥"&E3:E&"♥"&E1&"♦"&H3:H&"♥"&G3:G&"♥"&G1&
"♦"&J3:J&"♥"&I3:I&"♥"&I1&"♦"&L3:L&"♥"&K3:K&"♥"&K1&
"♦"&N3:N&"♥"&M3:M&"♥"&M1, ), , 999^99), "♦")), "♥")))}