google-sheetsgoogle-sheets-formulaspreadsheetunpivot

Google Sheets Transpose Formula


How can I convert the data in the red cell to the data in the green cell?

enter image description here


Solution

  • Try this

    =query(arrayformula(split(flatten(A2:A3&"|"&B2:F3),"|")),"select * where Col2 is not null")
    

    If you have an undefined number of rows, try

    =query(arrayformula(split(flatten(A2:A&"|"&B2:F),"|")),"select * where Col2 is not null")
    

    but limit the rows of the sheet to prevent long calculation

    enter image description here