I am trying to convert table 1 to the format in table 2. How can I do it in google sheets ? Thank you very much.
Table 1 -
Table 2 -
CodePudding user response:
use:
=ARRAYFORMULA(QUERY(TO_TEXT(SPLIT(FLATTEN(
A3:A&"×"&B2:E2&"×"&TEXT(B1:E1, "dd/mm")&"×"&B3:E), "×")),
"where Col4 is not null", ))