Search code examples
google-sheetsgoogle-sheets-formulaarray-formulasgoogle-sheets-querygs-vlookup

How to consolidate tables in Google Sheets


I need to consolidate 2 sheets in the same Google Sheets file. Both have a column in common, which I can use to relate them. However, it is possible that in one of the files the column has values that are not present in the 2nd sheet, which is correct. When I consolidate both sheets, I need to see all the values from the 1st sheet, showing blanks in the other columns of the 2nd file. Does anyone know how to do that?


Solution

  • paste in A1 cell:

    =ARRAYFORMULA({QUERY(IFERROR(VLOOKUP('Refined scope'!C:C, Epics!A:D, {1,2,3,4}, 0)), 
     "where Col1 is not null", 0); 
     FILTER(Epics!A:D, NOT(COUNTIF('Refined scope'!C1:C, Epics!A1:A)))})
    

    0


    paste in E1 cell:

    =ARRAYFORMULA('Refined scope'!A:E)
    

    0