Jul 05 2022 04:31 AM
How do I consolidate and analyse data from five sheets, all with the heading project but with some entries missing on some sheets? The spreadsheet has 215 rows in total but when I consolidate with missing information I'm only presented with 206 rows from sheet 2, 210 from sheet 3 etc.... Is there a way around that without manually entering the missing information? Thanks
Jul 05 2022 05:18 AM
Jul 05 2022 05:50 AM
There are two obvious routes. The first is to use Power Query and Join the Tables by the Project. This will refresh on demand. The other option is to use a lookup formula
= XLOOKUP(Table1[Project],Table2[Project],Table2[Manager],"")
This calculates immediately any change is made to one of the input Tables.
Jul 05 2022 05:59 AM
et
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Project", type text}, {"Start", type date}, {"End", type date}}),
#"Merged Queries" = Table.NestedJoin(#"Changed Type", {"Project"}, Table2, {"Project"}, "Table2", JoinKind.LeftOuter),
#"Expanded Table2" = Table.ExpandTableColumn(#"Merged Queries", "Table2", {"Manager"}, {"Table2.Manager"})
in
#"Expanded Table2"