Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Converting Table To Columns

I have a table here where I need to populate in in columns for charting purposes, but it needs to be automated so the formula needs too be there waiting for the data.

I have already found a formula for that:

=ARRAYFORMULA(SPLIT(FLATTEN(C3:C1000&"|"&D2:J2&"|"&D3:J1000),"|"))

but it seems like it is repeating the headers, see sample sheet: https://docs.google.com/spreadsheets/d/1-XIvAUt8b8atv37YvItvWUaa8HAmF3VaOUQUqVkff3E/edit#gid=0

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Formula is in Column G.

Is there a way to modify the formula into a much cleaner result where it doesn’t repeats the header at the bottom?

>Solution :

use:

=ARRAYFORMULA(QUERY(SPLIT(FLATTEN(A2:A1000&"|"&B1:E1&"|"&B2:E1000),"|"), 
 "where Col3 is not null", ))
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading