In sheet1, I have something like this (A to D are headers - sample sheet here):
| A | B | C | D |
|---|---|---|---|
| X | X1 | X2 | |
| Y | Y1 | Y2 | Y3 |
| Z | Z1 |
And in sheet2, I want something like this:
| A | B |
|---|---|
| X | X1 |
| X2 | |
| Y | Y1 |
| Y1 | |
| Y1 | |
| Z | Z1 |
*Values in column A exists only on the first instance (it's not merged with the cells below it)
Sheet1 data comes from google form submissions, but we want to structure them as to the table sample in sheet2, where sheet1 columns B to D are stacked in sheet2 column B.
For now, we're using the following to merge columns B to D in a single cell aligned with the values in column A:
=ArrayFormula(Sheet1!A:A&CHAR(10)&Sheet1!B:B&CHAR(10)&Sheet1!C:C&CHAR(10)&Sheet1!C:C&CHAR(10)Sheet1!D:D)
However, this presents a lot of problems since line breaks would still be there even when there's no supposed second line, and that we have to manually update status of these items (since they're used for monitoring).
If we can have it line by line as what is expected, we'd be able to automate some of the tasks. We tried playing with QUERY, but to no avail (although I think it's possible via that function... not sure).
Hoping to get ideas from the community. Thanks!