I want to change the data from table on the left to table on the right by using formula or function. I already try some formulas but it only work for one column.
All help is welcome! Thank you.
I want to change the data from table on the left to table on the right by using formula or function. I already try some formulas but it only work for one column.
All help is welcome! Thank you.
Give a try to this formula-
=CHOOSECOLS(LAMBDA(UnpivotCol,AdjucentCols,QUERY(REDUCE(,REDUCE(,UnpivotCol,LAMBDA(a,x,VSTACK(a,TOCOL(INDEX(JOIN("|",INDEX(AdjucentCols,ROW(x)-(INDEX(ROW(UnpivotCol),1)-1))) & "|" & SPLIT(x,";")))))),LAMBDA(t,g,VSTACK(t,SPLIT(g,"|")))),"offset 2",0))(B2:B4,HSTACK(A2:A4,C2:C4)),1,3,2)
1,3,2 of CHOOSECOLS().