Google Sheets – Rotate and Duplicate Row Values

concatenateformulasgoogle sheetsgoogle-sheets-arrayformulagoogle-sheets-query

I'm trying to rotate values in a sheet and then duplicate the first value in the row as a header. For example:

a | b | c | d

would become:

a | b
-----
a | c
-----
a | d

Is there any way to do this with just Google Sheets commands, or do I need to use a script?

Best Answer

=ARRAYFORMULA(TRIM(SPLIT(TRANSPOSE(SPLIT(QUERY(
 TRANSPOSE("♥"&A1&"♦"&B1:D1), , 999^99), "♥")), "♦")))

enter image description here