Look at screenshot pls
I have two tables, I need to merge them into Table 3
Two tables:
Some rules of Table 3 (result):
Help pls, I dont know how can I use query here... Or maybe smth else..
Thanks!
This should meet all your requirements:
={
FILTER(D3:E,MATCH(D3:D,A3:A,0)>0);
FILTER(A3:B,ISNA(MATCH(A3:A,D3:D,0)))
}
This filters out all rows that don't have keys in table 1, then concatenates that with the rows in table 1 that don't have instances in table 2.
The only downside is that this does not preserve any ordering, but you can sort by ID after this.