I have two tables of data in Excel that were exported from our HR system. One contains estimated/planned workhours, the other contains actual worked hours. Each line has a date, hours worked, and the employee name. This is the same for both tables.
I've been asked to make an overview of staff workhours, by combining the actual worked hours with the estimated hours. That is to say: if hours were logged for that date, use the real hours table. If not, use the estimate table.
I have no idea where to start with this. I can make a pivottable, based on a table, that nicely shows the hours per date per employee, but I have no idea how to combine the two tables with the specific requirement to only include a row from table 2 if no corresponding row from table 1.
I cannot just merge them manually. It needs to be automatic so our software can spit out an overview regularly.
Edit: Since I've been asked to elaborate my clearly: I have one excel file containing two tables in separate worksheets. Both are data exports from our system. Both are indeed exported as tables, not just raw data. I control the export and can decide what columns to add/remove. Currently, both tables look like this:
As I explained, I need to combine the two into one pivottable that only counts the estimated hours when there are no actual hours for that employee on that date.