Column G just identifies the employee selected in Sheet2 and for every matching record the formula generates a sequential number, or a hyphen if it doesn't match. The formula in column H identifies unique clients for the selected employee, and again gives them a sequential number. These formulae can be copied down way beyond your data in order to accommodate new data being added.

The formulae in the other sheet just make use of those helper columns to pick up the appropriate data. The clients are listed using an INDEX/MATCH combination looking for those sequential numbers in column H (by means of the ROWS($1:1) function, which increments as it is copied down). The formula in B4 uses a SUMIFS function to add column E on Sheet1 IF column F is the department in B3 AND column C matches the client name in A4 AND column B is the employee selected in the drop-down. The formula is copied across for the other departments, then the block of formulae from A to F can be copied down as far as you may need it. I've used a custom format of General;; to hide any zeros, so that the hours stand out more.

Hope this explains things, and that you can apply it to your real data.

Pete

P.S. If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

Also, since you are relatively new to the forum, I would like to inform you that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

Pete