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

How to combine two tables with common headers in google sheets?

I am trying to combine two tables with common headers. The formula below only properly works, if I define the exact start and end row. How can I adjust the formula below to dynamically fetch non blank rows from both the tables.

=iferror({A1:C50;ArrayFormula(hlookup(A1:C1,'Settings'!A1:C50,row(A2:A50),0))})

Sample Input:

Table 1

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

col 1 col2 col 3
abc 123 789
def 456 1212

Table 2

col 1 col2 col 3
ghi 453 78849
jkl 256 1298

Desired Output:

Table 3

col 1 col2 col 3
abc 123 789
def 456 1212
ghi 453 78849
jkl 256 1298

>Solution :

Use OUERY:

=QUERY({A1:C1;A2:C;E2:G},"WHERE Col1 IS NOT NULL")

enter image description here

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